concisecss 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/concisecss/close.js +4 -4
- data/app/assets/javascripts/concisecss/dropdown.js +30 -30
- data/app/assets/javascripts/concisecss/naver.js +348 -348
- data/app/assets/javascripts/concisecss/navigation.js +18 -18
- data/app/assets/javascripts/concisecss/non-responsive.js +46 -46
- data/app/assets/stylesheets/_defaults.scss +55 -58
- data/app/assets/stylesheets/base/_blockquotes.scss +32 -32
- data/app/assets/stylesheets/base/_container.scss +8 -8
- data/app/assets/stylesheets/base/_forms.scss +83 -81
- data/app/assets/stylesheets/base/_grid.scss +63 -59
- data/app/assets/stylesheets/base/_headings.scss +137 -134
- data/app/assets/stylesheets/base/_lists.scss +109 -109
- data/app/assets/stylesheets/base/_main.scss +28 -25
- data/app/assets/stylesheets/base/_selection.scss +18 -18
- data/app/assets/stylesheets/base/_tables.scss +78 -76
- data/app/assets/stylesheets/base/_type.scss +50 -50
- data/app/assets/stylesheets/concise.scss +7 -12
- data/app/assets/stylesheets/generic/_clearfix.scss +9 -9
- data/app/assets/stylesheets/generic/_conditional.scss +111 -107
- data/app/assets/stylesheets/generic/_helper.scss +81 -81
- data/app/assets/stylesheets/generic/_mixins.scss +73 -66
- data/app/assets/stylesheets/generic/_normalize.scss +189 -189
- data/app/assets/stylesheets/generic/_print.scss +105 -104
- data/app/assets/stylesheets/generic/_shared.scss +36 -32
- data/app/assets/stylesheets/objects/_badges.scss +43 -43
- data/app/assets/stylesheets/objects/_breadcrumbs.scss +30 -30
- data/app/assets/stylesheets/objects/_buttons.scss +264 -264
- data/app/assets/stylesheets/objects/_colors.scss +28 -25
- data/app/assets/stylesheets/objects/_dropdowns.scss +153 -153
- data/app/assets/stylesheets/objects/_groups.scss +82 -82
- data/app/assets/stylesheets/objects/_navigation.scss +330 -325
- data/app/assets/stylesheets/objects/_progress.scss +92 -88
- data/app/assets/stylesheets/objects/_wells.scss +93 -93
- data/lib/concisecss/concisecss_source.rb +1 -6
- data/lib/concisecss/version.rb +1 -1
- metadata +2 -3
- data/app/assets/stylesheets/generic/_debug.scss +0 -98
@@ -1,23 +1,23 @@
|
|
1
1
|
(function($){
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
2
|
+
/**
|
3
|
+
* Determine if responsive navigation text needs to be added.
|
4
|
+
*
|
5
|
+
* @method responsiveNav
|
6
|
+
* @return {Object} naver A naver plugin instantiation
|
7
|
+
*/
|
8
|
+
$.fn.responsiveNav = function() {
|
9
|
+
// Loop through each instance of responsive navigation
|
10
|
+
this.each(function(index) {
|
11
|
+
var labelState = $(this).hasClass( "nav-responsive-text" );
|
12
|
+
|
13
|
+
return $(this).naver({
|
14
|
+
maxWidth: "768px",
|
15
|
+
label: labelState
|
16
|
+
});
|
17
|
+
});
|
18
|
+
};
|
19
19
|
}(jQuery));
|
20
20
|
|
21
21
|
jQuery(document).ready(function() {
|
22
|
-
|
22
|
+
jQuery(".nav-responsive, .nav-responsive-left, .nav-responsive-center").responsiveNav();
|
23
23
|
});
|
@@ -1,51 +1,51 @@
|
|
1
|
-
(function($){
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
(function($){
|
2
|
+
/**
|
3
|
+
* Calculate object width
|
4
|
+
*
|
5
|
+
*/
|
6
|
+
$.fn.calculateWidth = function() {
|
7
|
+
return $(this).width();
|
8
|
+
};
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
gutterWidth = columnWidth * 0.02;
|
10
|
+
/**
|
11
|
+
* Calculates proper widths for non-responsive websites.
|
12
|
+
*
|
13
|
+
* @method nonResponsive
|
14
|
+
* @note Only necessary for non-responsive websites.
|
15
|
+
*/
|
16
|
+
$.fn.nonResponsive = function() {
|
17
|
+
|
18
|
+
// Loop through each instance of the `.non-responsive` class
|
19
|
+
this.each(function(index) {
|
20
|
+
if ($(this).hasClass("non-responsive")) {
|
21
|
+
// Get container width
|
22
|
+
var containerWidth = $(".container").width(),
|
23
|
+
i = 1,
|
24
|
+
max = 24;
|
25
|
+
|
26
|
+
// Set pixel-based alternatives for grid styles
|
27
|
+
// But first we need to know if our row has class `gutters`
|
28
|
+
if($(this).hasClass("gutters")) {
|
29
|
+
for (; i <= max; i++ ) {
|
30
|
+
// Column width for row with gutters
|
31
|
+
var columnWidth = ($('.column-'+i).calculateWidth()),
|
32
|
+
gutterWidth = columnWidth * 0.02;
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
};
|
34
|
+
$('.gutters .column-'+i).css("width", columnWidth - gutterWidth + "px");
|
35
|
+
}
|
36
|
+
} else {
|
37
|
+
for (; i <= max ; i++ ) {
|
38
|
+
// Column width for normal row
|
39
|
+
var columnWidth = ($('.column-'+i).calculateWidth() - 1);
|
40
|
+
|
41
|
+
$('.column-'+i).css("width", columnWidth + "px");
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
});
|
46
|
+
};
|
47
47
|
}(jQuery));
|
48
48
|
|
49
|
-
jQuery(document).ready(function() {
|
50
|
-
|
49
|
+
jQuery(document).ready(function() {
|
50
|
+
jQuery("body, .row").nonResponsive();
|
51
51
|
});
|
@@ -1,26 +1,13 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
//------------------------------------//
|
4
|
-
// Set to `false` if you do not wish to adopt
|
5
|
-
// global `box-sizing: border-box;`
|
6
|
-
$global-border-box: true !default;
|
1
|
+
// Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
|
2
|
+
// for the inspiration to create a default file for variables
|
7
3
|
|
8
4
|
|
9
5
|
|
10
6
|
|
11
|
-
|
12
|
-
//
|
13
|
-
|
14
|
-
// Enabling debug mode allows for potential issues
|
15
|
-
// to be visually displayed in the browser.
|
16
|
-
$debug-mode: false !default;
|
7
|
+
//------------------------------------
|
8
|
+
// BASE
|
9
|
+
//------------------------------------
|
17
10
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
//------------------------------------//
|
22
|
-
// $BASE
|
23
|
-
//------------------------------------//
|
24
11
|
// Base font sizes and colors
|
25
12
|
$base-font-size: 16px !default;
|
26
13
|
$base-line-height: 24px !default;
|
@@ -40,9 +27,10 @@ $line-height-ratio: $base-line-height / $base-font-size;
|
|
40
27
|
|
41
28
|
|
42
29
|
|
43
|
-
|
44
|
-
//
|
45
|
-
|
30
|
+
//------------------------------------
|
31
|
+
// RESPONSIVE
|
32
|
+
//------------------------------------
|
33
|
+
|
46
34
|
// Breakpoints
|
47
35
|
$extra-small-start: 30em !default;
|
48
36
|
$small-start: 48em !default;
|
@@ -53,9 +41,10 @@ $extra-large-start: 80em !default;
|
|
53
41
|
|
54
42
|
|
55
43
|
|
56
|
-
|
57
|
-
//
|
58
|
-
|
44
|
+
//------------------------------------
|
45
|
+
// FONT-SIZES
|
46
|
+
//------------------------------------
|
47
|
+
|
59
48
|
// Font-sizes (in pixels)
|
60
49
|
$giga-size: 96px !default;
|
61
50
|
$mega-size: 72px !default;
|
@@ -74,9 +63,10 @@ $micro-size: 10px !default;
|
|
74
63
|
|
75
64
|
|
76
65
|
|
77
|
-
|
78
|
-
//
|
79
|
-
|
66
|
+
//------------------------------------
|
67
|
+
// COLORS
|
68
|
+
//------------------------------------
|
69
|
+
|
80
70
|
// Background colors
|
81
71
|
$bg-white: #ffffff !default;
|
82
72
|
$bg-black: #222222 !default;
|
@@ -117,9 +107,10 @@ $object-ui-color: #ededed !default;
|
|
117
107
|
|
118
108
|
|
119
109
|
|
120
|
-
|
121
|
-
//
|
122
|
-
|
110
|
+
//------------------------------------
|
111
|
+
// OBJECTS
|
112
|
+
//------------------------------------
|
113
|
+
|
123
114
|
// Gutter size
|
124
115
|
$gutters: 2% !default;
|
125
116
|
|
@@ -140,12 +131,17 @@ $border-radius: 4px !default;
|
|
140
131
|
|
141
132
|
|
142
133
|
|
143
|
-
|
144
|
-
//
|
145
|
-
|
134
|
+
//------------------------------------
|
135
|
+
// INCLUDE
|
136
|
+
//------------------------------------
|
137
|
+
|
146
138
|
// Set whatever components you want included
|
147
139
|
// in your project to `true` and any components
|
148
140
|
// you do not wish to be included to `false`
|
141
|
+
//
|
142
|
+
// Thanks to inuitcss (https://github.com/csswizardry/inuit.css/blob/master/_defaults.scss)
|
143
|
+
// for the idea to use feature switches in a framework. It's an absolutely brilliant idea
|
144
|
+
// that makes customization so much easier.
|
149
145
|
|
150
146
|
|
151
147
|
// Utility
|
@@ -155,33 +151,34 @@ $use-shared: true !default;
|
|
155
151
|
|
156
152
|
|
157
153
|
// Base
|
158
|
-
$use-main:
|
159
|
-
$use-selection:
|
160
|
-
$use-container:
|
161
|
-
$use-typography:
|
162
|
-
$use-headings:
|
163
|
-
$use-blockquotes:
|
164
|
-
$use-lists:
|
165
|
-
$use-tables:
|
166
|
-
$use-
|
167
|
-
$use-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
$use-
|
172
|
-
$use-pull: false !default;
|
154
|
+
$use-main: true !default;
|
155
|
+
$use-selection: true !default;
|
156
|
+
$use-container: true !default;
|
157
|
+
$use-typography: true !default;
|
158
|
+
$use-headings: true !default;
|
159
|
+
$use-blockquotes: true !default;
|
160
|
+
$use-lists: true !default;
|
161
|
+
$use-tables: true !default;
|
162
|
+
$use-table-styles: true !default;
|
163
|
+
$use-forms: true !default;
|
164
|
+
$use-form-styles: true !default;
|
165
|
+
$use-grid: true !default;
|
166
|
+
$use-push: false !default;
|
167
|
+
$use-pull: false !default;
|
173
168
|
|
174
169
|
|
175
|
-
// Objects
|
176
|
-
$use-colors:
|
177
|
-
$use-
|
178
|
-
$use-
|
179
|
-
$use-
|
180
|
-
$use-
|
181
|
-
$use-
|
182
|
-
$use-
|
183
|
-
$use-
|
184
|
-
$use-
|
170
|
+
// Objects
|
171
|
+
$use-type-colors: true !default;
|
172
|
+
$use-bg-colors: true !default;
|
173
|
+
$use-buttons: true !default;
|
174
|
+
$use-groups: true !default;
|
175
|
+
$use-dropdowns: true !default;
|
176
|
+
$use-navigation: true !default;
|
177
|
+
$use-responsive-navigation: true !default;
|
178
|
+
$use-breadcrumbs: true !default;
|
179
|
+
$use-wells: true !default;
|
180
|
+
$use-badges: true !default;
|
181
|
+
$use-progress: true !default;
|
185
182
|
|
186
183
|
|
187
184
|
// Helpers
|
@@ -1,36 +1,36 @@
|
|
1
1
|
@if $use-blockquotes == true {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
//------------------------------------
|
3
|
+
// BLOCKQUOTES
|
4
|
+
//------------------------------------
|
5
|
+
blockquote {
|
6
|
+
border-left: 1px solid #ddd;
|
7
|
+
color: #777;
|
8
|
+
font-style: italic;
|
9
|
+
margin: 1em 2em;
|
10
|
+
padding-left: 1em;
|
11
|
+
text-align: left;
|
12
|
+
|
13
|
+
cite {
|
14
|
+
color: #555;
|
15
|
+
display: block;
|
16
|
+
@include font-size(14px);
|
17
|
+
|
18
|
+
&:before { content: "\2014 \0020"; }
|
19
|
+
|
20
|
+
a {
|
21
|
+
color: #555;
|
12
22
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
// Reversed blockquote
|
29
|
-
&.blockquote-reverse {
|
30
|
-
border-left: none;
|
31
|
-
border-right: 1px solid #ddd;
|
32
|
-
padding: 0 1em 0 0;
|
33
|
-
text-align: right;
|
34
|
-
}
|
23
|
+
&:visited { color: #555; }
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// Reversed blockquote
|
29
|
+
&.blockquote-reverse {
|
30
|
+
border-left: none;
|
31
|
+
border-right: 1px solid #ddd;
|
32
|
+
padding: 0 1em 0 0;
|
33
|
+
text-align: right;
|
35
34
|
}
|
35
|
+
}
|
36
36
|
}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
@if $use-container == true {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
//------------------------------------
|
3
|
+
// CONTAINER
|
4
|
+
//------------------------------------
|
5
|
+
.container { width: 90%; }
|
6
6
|
|
7
|
-
|
7
|
+
@include breakpoint(small) { .container { width: 620px; } }
|
8
8
|
|
9
|
-
|
9
|
+
@include breakpoint(medium) { .container { width: 768px; } }
|
10
10
|
|
11
|
-
|
11
|
+
@include breakpoint(large) { .container { width: 960px; } }
|
12
12
|
|
13
|
-
|
13
|
+
@include breakpoint(extra-large) { .container { width: 1140px; } }
|
14
14
|
}
|
@@ -1,80 +1,81 @@
|
|
1
1
|
@if $use-forms == true {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
//------------------------------------
|
3
|
+
// FORMS
|
4
|
+
//------------------------------------
|
5
|
+
label { display: block; }
|
6
|
+
|
7
|
+
input,
|
8
|
+
select,
|
9
|
+
textarea {
|
10
|
+
border: 1px solid #ddd;
|
11
|
+
height: 37px;
|
12
|
+
padding: 5px;
|
13
|
+
width: 100%;
|
14
|
+
|
15
|
+
@include vendor(box-sizing, border-box);
|
16
|
+
}
|
17
|
+
|
18
|
+
@include breakpoint(extra-small) {
|
7
19
|
input,
|
8
20
|
select,
|
9
|
-
textarea {
|
10
|
-
|
11
|
-
height: 37px;
|
12
|
-
padding: 5px;
|
13
|
-
width: 100%;
|
14
|
-
|
15
|
-
@include vendor(box-sizing, border-box);
|
16
|
-
}
|
17
|
-
|
18
|
-
@include breakpoint(extra-small) {
|
19
|
-
input,
|
20
|
-
select,
|
21
|
-
textarea { width: 90%; }
|
22
|
-
}
|
21
|
+
textarea { width: 90%; }
|
22
|
+
}
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
}
|
50
|
-
|
51
|
-
&[disabled] {
|
52
|
-
cursor: not-allowed;
|
53
|
-
background-color: #f6f6f6;
|
54
|
-
}
|
24
|
+
@include breakpoint(small) {
|
25
|
+
input,
|
26
|
+
select { width: 300px; }
|
27
|
+
}
|
28
|
+
|
29
|
+
input:focus,
|
30
|
+
select:focus,
|
31
|
+
textarea:focus,
|
32
|
+
button:focus,
|
33
|
+
[contenteditable="true"]:focus {
|
34
|
+
outline: none;
|
35
|
+
outline: thin dotted \9;
|
36
|
+
}
|
37
|
+
|
38
|
+
textarea { height: auto; }
|
39
|
+
|
40
|
+
input {
|
41
|
+
&[type="checkbox"],
|
42
|
+
&[type="file"],
|
43
|
+
&[type="image"],
|
44
|
+
&[type="radio"] {
|
45
|
+
background: auto !important;
|
46
|
+
border: auto !important;
|
47
|
+
height: auto !important;
|
48
|
+
width: auto !important;
|
55
49
|
}
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
textarea { width: 400px; }
|
50
|
+
|
51
|
+
&[disabled] {
|
52
|
+
cursor: not-allowed;
|
53
|
+
background-color: #f6f6f6;
|
61
54
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
55
|
+
}
|
56
|
+
|
57
|
+
@include breakpoint(small) {
|
58
|
+
input[type="submit"] { width: auto; }
|
59
|
+
|
60
|
+
textarea { width: 400px; }
|
61
|
+
}
|
62
|
+
|
63
|
+
select[disabled],
|
64
|
+
textarea[disabled] { background-color: #f6f6f6; }
|
65
|
+
|
66
|
+
fieldset {
|
67
|
+
border: 1px solid #ededed;
|
68
|
+
padding: 10px 25px;
|
69
|
+
|
70
|
+
legend {
|
71
|
+
font-weight: bold;
|
72
|
+
@include font-size(13px);
|
73
|
+
padding: 0 10px;
|
75
74
|
}
|
75
|
+
}
|
76
76
|
|
77
77
|
|
78
|
+
@if $use-form-styles == true {
|
78
79
|
// Validation
|
79
80
|
input.required:required:valid,
|
80
81
|
textarea.required:required:valid { border-color: #2ecc71; }
|
@@ -85,17 +86,17 @@
|
|
85
86
|
|
86
87
|
// Block-level form items
|
87
88
|
.form-item {
|
88
|
-
|
89
|
-
|
89
|
+
display: block;
|
90
|
+
padding: 14px 0;
|
90
91
|
}
|
91
92
|
|
92
93
|
|
93
94
|
// Rounded corners
|
94
95
|
form.border-radius {
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
input,
|
97
|
+
select,
|
98
|
+
textarea,
|
99
|
+
fieldset { border-radius: $border-radius; }
|
99
100
|
}
|
100
101
|
|
101
102
|
|
@@ -103,14 +104,14 @@
|
|
103
104
|
.form-inline label { width: auto; }
|
104
105
|
|
105
106
|
@include breakpoint(small) {
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
}
|
111
|
-
|
112
|
-
textarea { width: auto; }
|
107
|
+
.form-inline {
|
108
|
+
label {
|
109
|
+
display: inline-block;
|
110
|
+
width: 100px;
|
113
111
|
}
|
112
|
+
|
113
|
+
textarea { width: auto; }
|
114
|
+
}
|
114
115
|
}
|
115
116
|
|
116
117
|
|
@@ -122,4 +123,5 @@
|
|
122
123
|
::-moz-placeholder { color: $placeholder-color; }
|
123
124
|
|
124
125
|
:-moz-placeholder { color: $placeholder-color; }
|
126
|
+
}
|
125
127
|
}
|