concisecss 0.0.5 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -8
- data/app/assets/javascripts/concisecss/dropdown.js +17 -8
- data/app/assets/javascripts/concisecss/naver.js +8 -8
- data/app/assets/javascripts/concisecss/navigation.js +5 -5
- data/app/assets/javascripts/concisecss/non-responsive.js +8 -8
- data/app/assets/stylesheets/base/_headings.scss +129 -119
- data/app/assets/stylesheets/base/_main.scss +15 -13
- data/app/assets/stylesheets/{generic → base}/_print.scss +38 -56
- data/app/assets/stylesheets/base/_selection.scss +15 -9
- data/app/assets/stylesheets/base/_type.scss +21 -19
- data/app/assets/stylesheets/{generic/_shared.scss → base/_vertical-rhythm.scss} +9 -10
- data/app/assets/stylesheets/components/_buttons.scss +174 -0
- data/app/assets/stylesheets/components/_colors.scss +25 -0
- data/app/assets/stylesheets/{objects → components}/_dropdowns.scss +67 -79
- data/app/assets/stylesheets/components/_navigation.scss +133 -0
- data/app/assets/stylesheets/concise.scss +31 -31
- data/app/assets/stylesheets/{generic → helpers}/_clearfix.scss +2 -6
- data/app/assets/stylesheets/helpers/_conditional.scss +128 -0
- data/app/assets/stylesheets/helpers/_functions.scss +32 -0
- data/app/assets/stylesheets/{generic/_helper.scss → helpers/_helpers.scss} +29 -38
- data/app/assets/stylesheets/helpers/_mixins.scss +315 -0
- data/app/assets/stylesheets/{generic → helpers}/_normalize.scss +35 -35
- data/app/assets/stylesheets/{_defaults.scss → helpers/_variables.scss} +68 -78
- data/app/assets/stylesheets/layout/_container.scss +17 -0
- data/app/assets/stylesheets/layout/_forms.scss +103 -0
- data/app/assets/stylesheets/layout/_grid.scss +71 -0
- data/app/assets/stylesheets/layout/_lists.scss +88 -0
- data/app/assets/stylesheets/layout/tables.scss +63 -0
- data/lib/concisecss/concisecss_source.rb +30 -40
- data/lib/concisecss/version.rb +1 -1
- metadata +21 -20
- data/app/assets/stylesheets/generic/_conditional.scss +0 -126
- data/app/assets/stylesheets/generic/_mixins.scss +0 -157
- data/app/assets/stylesheets/objects/_badges.scss +0 -53
- data/app/assets/stylesheets/objects/_breadcrumbs.scss +0 -35
- data/app/assets/stylesheets/objects/_buttons.scss +0 -287
- data/app/assets/stylesheets/objects/_colors.scss +0 -48
- data/app/assets/stylesheets/objects/_groups.scss +0 -102
- data/app/assets/stylesheets/objects/_navigation.scss +0 -382
- data/app/assets/stylesheets/objects/_progress.scss +0 -106
- data/app/assets/stylesheets/objects/_wells.scss +0 -103
@@ -1,10 +1,10 @@
|
|
1
1
|
@if $use-normalize == true {
|
2
2
|
//------------------------------------
|
3
|
-
// NORMALIZE
|
4
|
-
//------------------------------------
|
3
|
+
// NORMALIZE
|
4
|
+
//------------------------------------
|
5
5
|
html {
|
6
6
|
font-size: 100%;
|
7
|
-
@include vendor(text-size-adjust, 100
|
7
|
+
@include vendor(text-size-adjust, 100%, webkit moz ms o official);
|
8
8
|
}
|
9
9
|
|
10
10
|
article,
|
@@ -20,9 +20,9 @@
|
|
20
20
|
section,
|
21
21
|
summary { display: block; }
|
22
22
|
|
23
|
-
audio,
|
24
|
-
canvas,
|
25
|
-
progress,
|
23
|
+
audio,
|
24
|
+
canvas,
|
25
|
+
progress,
|
26
26
|
video {
|
27
27
|
display: inline-block;
|
28
28
|
vertical-align: baseline;
|
@@ -33,21 +33,21 @@
|
|
33
33
|
height: 0;
|
34
34
|
}
|
35
35
|
|
36
|
-
[hidden],
|
36
|
+
[hidden],
|
37
37
|
template { display: none; }
|
38
38
|
|
39
39
|
a {
|
40
40
|
background: transparent;
|
41
|
-
|
41
|
+
|
42
42
|
&:focus { outline: thin dotted; }
|
43
|
-
|
44
|
-
&:active,
|
43
|
+
|
44
|
+
&:active,
|
45
45
|
&:hover { outline: 0; }
|
46
46
|
}
|
47
47
|
|
48
48
|
abbr[title] { border-bottom: 1px dotted; }
|
49
49
|
|
50
|
-
b,
|
50
|
+
b,
|
51
51
|
strong { font-weight: bold; }
|
52
52
|
|
53
53
|
dfn { font-style: italic; }
|
@@ -69,8 +69,8 @@
|
|
69
69
|
|
70
70
|
sub { bottom: -0.25em; }
|
71
71
|
|
72
|
-
img {
|
73
|
-
border: 0;
|
72
|
+
img {
|
73
|
+
border: 0;
|
74
74
|
-ms-interpolation-mode: bicubic;
|
75
75
|
}
|
76
76
|
|
@@ -83,8 +83,8 @@
|
|
83
83
|
border-width: 1px 0 0;
|
84
84
|
clear: both;
|
85
85
|
height: 0;
|
86
|
-
|
87
|
-
@include vendor(box-sizing, content-box);
|
86
|
+
|
87
|
+
@include vendor(box-sizing, content-box, official);
|
88
88
|
}
|
89
89
|
|
90
90
|
pre {
|
@@ -93,9 +93,9 @@
|
|
93
93
|
word-wrap: break-word;
|
94
94
|
}
|
95
95
|
|
96
|
-
code,
|
97
|
-
kbd,
|
98
|
-
pre,
|
96
|
+
code,
|
97
|
+
kbd,
|
98
|
+
pre,
|
99
99
|
samp {
|
100
100
|
font-family: monospace, monospace;
|
101
101
|
@include font-size($base-font-size);
|
@@ -103,7 +103,7 @@
|
|
103
103
|
|
104
104
|
q {
|
105
105
|
quotes: none;
|
106
|
-
|
106
|
+
|
107
107
|
&:before,
|
108
108
|
&:after {
|
109
109
|
content: '';
|
@@ -113,10 +113,10 @@
|
|
113
113
|
|
114
114
|
form { margin: 0; }
|
115
115
|
|
116
|
-
button,
|
117
|
-
input,
|
118
|
-
optgroup,
|
119
|
-
select,
|
116
|
+
button,
|
117
|
+
input,
|
118
|
+
optgroup,
|
119
|
+
select,
|
120
120
|
textarea {
|
121
121
|
color: inherit;
|
122
122
|
font: inherit;
|
@@ -137,7 +137,7 @@
|
|
137
137
|
cursor: pointer;
|
138
138
|
}
|
139
139
|
|
140
|
-
button[disabled],
|
140
|
+
button[disabled],
|
141
141
|
html input[disabled] { cursor: default; }
|
142
142
|
|
143
143
|
button::-moz-focus-inner,
|
@@ -148,23 +148,23 @@
|
|
148
148
|
|
149
149
|
input {
|
150
150
|
line-height: normal;
|
151
|
-
|
152
|
-
&[type="checkbox"],
|
151
|
+
|
152
|
+
&[type="checkbox"],
|
153
153
|
&[type="radio"] {
|
154
154
|
box-sizing: border-box;
|
155
155
|
padding: 0;
|
156
156
|
}
|
157
|
-
|
157
|
+
|
158
158
|
&[type="number"] {
|
159
|
-
&::-webkit-inner-spin-button,
|
159
|
+
&::-webkit-inner-spin-button,
|
160
160
|
&::-webkit-outer-spin-button { height: auto; }
|
161
161
|
}
|
162
|
-
|
162
|
+
|
163
163
|
&[type="search"] {
|
164
|
-
-webkit-appearance: textfield;
|
165
|
-
@include vendor(box-sizing, content-box);
|
166
|
-
|
167
|
-
&::-webkit-search-cancel-button,
|
164
|
+
-webkit-appearance: textfield;
|
165
|
+
@include vendor(box-sizing, content-box, official);
|
166
|
+
|
167
|
+
&::-webkit-search-cancel-button,
|
168
168
|
&::-webkit-search-decoration { -webkit-appearance: none; }
|
169
169
|
}
|
170
170
|
}
|
@@ -186,6 +186,6 @@
|
|
186
186
|
border-spacing: 0;
|
187
187
|
}
|
188
188
|
|
189
|
-
td,
|
189
|
+
td,
|
190
190
|
th { padding: 0; }
|
191
|
-
}
|
191
|
+
}
|
@@ -1,22 +1,28 @@
|
|
1
|
-
|
2
|
-
//
|
1
|
+
//------------------------------------
|
2
|
+
// BASE
|
3
|
+
//------------------------------------
|
3
4
|
|
5
|
+
// Website background (can use color or image)
|
6
|
+
$website-bg-color: #ffffff !default;
|
4
7
|
|
5
8
|
|
9
|
+
// Enable font smoothing?
|
10
|
+
$enable-font-smoothing: true !default;
|
6
11
|
|
7
|
-
//------------------------------------
|
8
|
-
// BASE
|
9
|
-
//------------------------------------
|
10
12
|
|
11
13
|
// Base font sizes and colors
|
12
|
-
$base-font-size:
|
13
|
-
$base-line-height:
|
14
|
-
$base-font-color:
|
15
|
-
$base-link-color:
|
14
|
+
$base-font-size: 16px !default;
|
15
|
+
$base-line-height: 24px !default;
|
16
|
+
$base-font-color: #333333 !default;
|
17
|
+
$base-link-color: #62b3e7 !default;
|
18
|
+
$base-heading-color: #181818 !default;
|
19
|
+
$base-sub-heading-color: #808080 !default;
|
16
20
|
|
17
21
|
|
18
22
|
// Base font-family
|
19
23
|
$base-font-family: "Droid Sans", Helvetica, Arial, sans-serif !default;
|
24
|
+
$base-heading-font-family: "Droid Sans", Helvetica, Arial, sans-serif !default;
|
25
|
+
$base-print-font-family: Georgia, "Times New Roman", Times, serif !default;
|
20
26
|
|
21
27
|
|
22
28
|
// Element spacing and line-height ratio
|
@@ -32,33 +38,13 @@ $line-height-ratio: $base-line-height / $base-font-size;
|
|
32
38
|
//------------------------------------
|
33
39
|
|
34
40
|
// Breakpoints
|
35
|
-
$
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
//------------------------------------
|
45
|
-
// FONT-SIZES
|
46
|
-
//------------------------------------
|
47
|
-
|
48
|
-
// Font-sizes (in pixels)
|
49
|
-
$giga-size: 96px !default;
|
50
|
-
$mega-size: 72px !default;
|
51
|
-
$kilo-size: 64px !default;
|
52
|
-
|
53
|
-
$h1-size: 36px !default;
|
54
|
-
$h2-size: 30px !default;
|
55
|
-
$h3-size: 24px !default;
|
56
|
-
$h4-size: 20px !default;
|
57
|
-
$h5-size: 16px !default;
|
58
|
-
$h6-size: 14px !default;
|
59
|
-
|
60
|
-
$small-size: 12px !default;
|
61
|
-
$micro-size: 10px !default;
|
41
|
+
$breakpoint-map: (
|
42
|
+
"extra-small": 30em,
|
43
|
+
"small": 48em,
|
44
|
+
"medium": 60em,
|
45
|
+
"large": 70em,
|
46
|
+
"extra-large": 80em
|
47
|
+
);
|
62
48
|
|
63
49
|
|
64
50
|
|
@@ -68,47 +54,59 @@ $micro-size: 10px !default;
|
|
68
54
|
//------------------------------------
|
69
55
|
|
70
56
|
// Background colors
|
71
|
-
$bg-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
$bg-yellow: #ed9c28 !default;
|
81
|
-
$bg-light-red: #f2dede !default;
|
82
|
-
$bg-red: #d9534f !default;
|
57
|
+
$bg-colors: (
|
58
|
+
"white": #ffffff,
|
59
|
+
"black": #222222,
|
60
|
+
"gray": #999999,
|
61
|
+
"green": #5cb85c,
|
62
|
+
"blue": #5bc0de,
|
63
|
+
"yellow": #ed9c28,
|
64
|
+
"red": #d9534f
|
65
|
+
);
|
83
66
|
|
84
67
|
|
85
68
|
// Type colors
|
86
|
-
$
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
69
|
+
$type-colors: (
|
70
|
+
"white": #ffffff,
|
71
|
+
"black": #222222,
|
72
|
+
"gray": #999999,
|
73
|
+
"green": #468847,
|
74
|
+
"blue": #3a87ad,
|
75
|
+
"yellow": #c09853,
|
76
|
+
"red": #d2322d
|
77
|
+
);
|
93
78
|
|
94
79
|
|
95
80
|
// Selection colors
|
96
|
-
$selection-background:
|
97
|
-
$selection-color:
|
81
|
+
$selection-background: #666666 !default;
|
82
|
+
$selection-color: #ffffff !default;
|
98
83
|
|
99
84
|
|
100
85
|
// Form placeholder colors
|
101
|
-
$placeholder-color:
|
86
|
+
$placeholder-color: #bbbbbb !default;
|
102
87
|
|
103
88
|
|
104
89
|
// Colors used for our objects' borders, etc
|
105
|
-
$object-ui-color:
|
90
|
+
$object-ui-color: #cccccc !default;
|
91
|
+
|
92
|
+
|
93
|
+
// Dropdown colors
|
94
|
+
$dropdown-bg-color: #ffffff !default;
|
95
|
+
$dropdown-border-color: #ededed !default;
|
96
|
+
$dropdown-hover-color: #f3f8f8 !default;
|
97
|
+
$dropdown-header-color: #aaaaaa !default;
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
// Button font color
|
102
|
+
$button-font-color: #ffffff !default;
|
103
|
+
$button-hover-font-color: #ffffff !default;
|
106
104
|
|
107
105
|
|
108
106
|
|
109
107
|
|
110
108
|
//------------------------------------
|
111
|
-
//
|
109
|
+
// Components
|
112
110
|
//------------------------------------
|
113
111
|
|
114
112
|
// Gutter size
|
@@ -122,11 +120,7 @@ $column-prefix: 'column-' !default;
|
|
122
120
|
|
123
121
|
// Dictate how many columns you would like your
|
124
122
|
// grid system to use. Default is 16.
|
125
|
-
$column-number:
|
126
|
-
|
127
|
-
|
128
|
-
// Border radius value for `.border-radius` class
|
129
|
-
$border-radius: 4px !default;
|
123
|
+
$column-number: 16 !default;
|
130
124
|
|
131
125
|
|
132
126
|
|
@@ -143,11 +137,10 @@ $border-radius: 4px !default;
|
|
143
137
|
// for the idea to use feature switches in a framework. It's an absolutely brilliant idea
|
144
138
|
// that makes customization so much easier.
|
145
139
|
|
146
|
-
|
147
140
|
// Utility
|
148
|
-
$use-normalize:
|
149
|
-
$use-clearfix:
|
150
|
-
$use-
|
141
|
+
$use-normalize: true !default;
|
142
|
+
$use-clearfix: true !default;
|
143
|
+
$use-vertical-rhythm: true !default;
|
151
144
|
|
152
145
|
|
153
146
|
// Base
|
@@ -156,29 +149,26 @@ $use-selection: true !default;
|
|
156
149
|
$use-container: true !default;
|
157
150
|
$use-typography: true !default;
|
158
151
|
$use-headings: true !default;
|
159
|
-
$use-blockquotes: true !default;
|
160
152
|
$use-lists: true !default;
|
153
|
+
$use-list-styles: true !default;
|
161
154
|
$use-tables: true !default;
|
162
155
|
$use-table-styles: true !default;
|
163
156
|
$use-forms: true !default;
|
164
157
|
$use-form-styles: true !default;
|
165
158
|
$use-grid: true !default;
|
166
|
-
$use-push:
|
167
|
-
$use-pull:
|
159
|
+
$use-push: true !default;
|
160
|
+
$use-pull: true !default;
|
168
161
|
|
169
162
|
|
170
|
-
//
|
163
|
+
// Components
|
171
164
|
$use-type-colors: true !default;
|
172
165
|
$use-bg-colors: true !default;
|
173
166
|
$use-buttons: true !default;
|
174
|
-
$use-
|
167
|
+
$use-button-bg-colors: true !default;
|
168
|
+
$use-button-styles: true !default;
|
175
169
|
$use-dropdowns: true !default;
|
176
170
|
$use-navigation: true !default;
|
177
171
|
$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;
|
182
172
|
|
183
173
|
|
184
174
|
// Helpers
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@if $use-container == true {
|
2
|
+
//------------------------------------
|
3
|
+
// CONTAINER
|
4
|
+
//------------------------------------
|
5
|
+
.container {
|
6
|
+
margin: 0 auto;
|
7
|
+
|
8
|
+
@include responsive("width", 90%,
|
9
|
+
(
|
10
|
+
"small" : 620px,
|
11
|
+
"medium" : 768px,
|
12
|
+
"large" : 960px,
|
13
|
+
"extra-large" : 1140px
|
14
|
+
)
|
15
|
+
);
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
@if $use-forms == true {
|
2
|
+
//------------------------------------
|
3
|
+
// FORMS
|
4
|
+
//------------------------------------
|
5
|
+
input {
|
6
|
+
&[type="checkbox"],
|
7
|
+
&[type="file"],
|
8
|
+
&[type="image"],
|
9
|
+
&[type="radio"] {
|
10
|
+
background: auto;
|
11
|
+
border: auto;
|
12
|
+
height: auto;
|
13
|
+
width: auto;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
input[disabled],
|
18
|
+
select[disabled],
|
19
|
+
textarea[disabled] {
|
20
|
+
background-color: #f6f6f6;
|
21
|
+
cursor: not-allowed;
|
22
|
+
}
|
23
|
+
|
24
|
+
label { display: block; }
|
25
|
+
|
26
|
+
textarea { height: auto; }
|
27
|
+
|
28
|
+
|
29
|
+
@if $use-form-styles == true {
|
30
|
+
// Form styling
|
31
|
+
.form {
|
32
|
+
input,
|
33
|
+
select,
|
34
|
+
textarea {
|
35
|
+
border: 1px solid $object-ui-color;
|
36
|
+
height: 37px;
|
37
|
+
padding: 5px;
|
38
|
+
width: 100%;
|
39
|
+
|
40
|
+
@include vendor(box-sizing, border-box, official);
|
41
|
+
|
42
|
+
@include breakpoint(extra-small) {
|
43
|
+
& { width: 300px; }
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
textarea { height: auto; }
|
48
|
+
|
49
|
+
@include breakpoint(extra-small) {
|
50
|
+
input[type="submit"] {
|
51
|
+
display: block;
|
52
|
+
width: auto;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
input:focus,
|
57
|
+
select:focus,
|
58
|
+
textarea:focus,
|
59
|
+
button:focus,
|
60
|
+
[contenteditable="true"]:focus { outline: 1px solid darken($object-ui-color, 15%); }
|
61
|
+
|
62
|
+
fieldset {
|
63
|
+
border: 1px solid $object-ui-color;
|
64
|
+
padding: 10px 25px;
|
65
|
+
|
66
|
+
legend {
|
67
|
+
font-weight: bold;
|
68
|
+
@include font-size(13px);
|
69
|
+
padding: 0 10px;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
// Block-level form items
|
76
|
+
.form-item { display: block; }
|
77
|
+
|
78
|
+
|
79
|
+
// Inline Form
|
80
|
+
.form-inline {
|
81
|
+
label { width: auto; }
|
82
|
+
|
83
|
+
@include breakpoint(small) {
|
84
|
+
label {
|
85
|
+
display: inline-block;
|
86
|
+
width: 100px;
|
87
|
+
}
|
88
|
+
|
89
|
+
textarea { width: auto; }
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
// Placeholder text
|
95
|
+
::-webkit-input-placeholder { color: $placeholder-color; }
|
96
|
+
|
97
|
+
:-ms-input-placeholder { color: $placeholder-color; }
|
98
|
+
|
99
|
+
::-moz-placeholder { color: $placeholder-color; }
|
100
|
+
|
101
|
+
:-moz-placeholder { color: $placeholder-color; }
|
102
|
+
}
|
103
|
+
}
|