concisecss 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/concisecss/close.js +4 -4
  4. data/app/assets/javascripts/concisecss/dropdown.js +30 -30
  5. data/app/assets/javascripts/concisecss/naver.js +348 -348
  6. data/app/assets/javascripts/concisecss/navigation.js +18 -18
  7. data/app/assets/javascripts/concisecss/non-responsive.js +46 -46
  8. data/app/assets/stylesheets/_defaults.scss +55 -58
  9. data/app/assets/stylesheets/base/_blockquotes.scss +32 -32
  10. data/app/assets/stylesheets/base/_container.scss +8 -8
  11. data/app/assets/stylesheets/base/_forms.scss +83 -81
  12. data/app/assets/stylesheets/base/_grid.scss +63 -59
  13. data/app/assets/stylesheets/base/_headings.scss +137 -134
  14. data/app/assets/stylesheets/base/_lists.scss +109 -109
  15. data/app/assets/stylesheets/base/_main.scss +28 -25
  16. data/app/assets/stylesheets/base/_selection.scss +18 -18
  17. data/app/assets/stylesheets/base/_tables.scss +78 -76
  18. data/app/assets/stylesheets/base/_type.scss +50 -50
  19. data/app/assets/stylesheets/concise.scss +7 -12
  20. data/app/assets/stylesheets/generic/_clearfix.scss +9 -9
  21. data/app/assets/stylesheets/generic/_conditional.scss +111 -107
  22. data/app/assets/stylesheets/generic/_helper.scss +81 -81
  23. data/app/assets/stylesheets/generic/_mixins.scss +73 -66
  24. data/app/assets/stylesheets/generic/_normalize.scss +189 -189
  25. data/app/assets/stylesheets/generic/_print.scss +105 -104
  26. data/app/assets/stylesheets/generic/_shared.scss +36 -32
  27. data/app/assets/stylesheets/objects/_badges.scss +43 -43
  28. data/app/assets/stylesheets/objects/_breadcrumbs.scss +30 -30
  29. data/app/assets/stylesheets/objects/_buttons.scss +264 -264
  30. data/app/assets/stylesheets/objects/_colors.scss +28 -25
  31. data/app/assets/stylesheets/objects/_dropdowns.scss +153 -153
  32. data/app/assets/stylesheets/objects/_groups.scss +82 -82
  33. data/app/assets/stylesheets/objects/_navigation.scss +330 -325
  34. data/app/assets/stylesheets/objects/_progress.scss +92 -88
  35. data/app/assets/stylesheets/objects/_wells.scss +93 -93
  36. data/lib/concisecss/concisecss_source.rb +1 -6
  37. data/lib/concisecss/version.rb +1 -1
  38. metadata +2 -3
  39. data/app/assets/stylesheets/generic/_debug.scss +0 -98
@@ -1,191 +1,191 @@
1
1
  @if $use-normalize == true {
2
- //------------------------------------//
3
- // $NORMALIZE
4
- //------------------------------------//
5
- html {
6
- font-size: 100%;
7
- @include vendor(text-size-adjust, 100%);
8
- }
9
-
10
- article,
11
- aside,
12
- details,
13
- figcaption,
14
- figure,
15
- footer,
16
- header,
17
- hgroup,
18
- main,
19
- nav,
20
- section,
21
- summary { display: block; }
22
-
23
- audio,
24
- canvas,
25
- progress,
26
- video {
27
- display: inline-block;
28
- vertical-align: baseline;
29
- }
30
-
31
- audio:not([controls]) {
32
- display: none;
33
- height: 0;
34
- }
35
-
36
- [hidden],
37
- template { display: none; }
38
-
39
- a {
40
- background: transparent;
41
-
42
- &:focus { outline: thin dotted; }
43
-
44
- &:active,
45
- &:hover { outline: 0; }
46
- }
47
-
48
- abbr[title] { border-bottom: 1px dotted; }
49
-
50
- b,
51
- strong { font-weight: bold; }
52
-
53
- dfn { font-style: italic; }
54
-
55
- mark {
56
- background: #ff0;
57
- color: #000;
58
- }
59
-
60
- sub,
61
- sup {
62
- font-size: 75%;
63
- line-height: 0;
64
- position: relative;
65
- vertical-align: baseline;
66
- }
67
-
68
- sup { top: -0.5em; }
69
-
70
- sub { bottom: -0.25em; }
71
-
72
- img {
73
- border: 0;
74
- -ms-interpolation-mode: bicubic;
75
- }
76
-
77
- svg:not(:root) { overflow: hidden; }
78
-
79
- figure { margin: 1em 40px; }
80
-
81
- hr {
82
- border: solid #eee;
83
- border-width: 1px 0 0;
84
- clear: both;
85
- height: 0;
86
-
87
- @include vendor(box-sizing, content-box);
88
- }
89
-
90
- pre {
91
- white-space: pre;
92
- white-space: pre-wrap;
93
- word-wrap: break-word;
94
- }
95
-
96
- code,
97
- kbd,
98
- pre,
99
- samp {
100
- font-family: monospace, monospace;
101
- @include font-size($base-font-size);
102
- }
103
-
104
- q {
105
- quotes: none;
106
-
107
- &:before,
108
- &:after {
109
- content: '';
110
- content: none;
111
- }
112
- }
113
-
114
- form { margin: 0; }
115
-
116
- button,
117
- input,
118
- optgroup,
119
- select,
120
- textarea {
121
- color: inherit;
122
- font: inherit;
123
- margin: 0;
124
- vertical-align: baseline;
125
- }
126
-
127
- button { overflow: visible; }
128
-
129
- button,
130
- select { text-transform: none; }
131
-
132
- button,
133
- html input[type="button"],
134
- input[type="reset"],
135
- input[type="submit"] {
136
- -webkit-appearance: button;
137
- cursor: pointer;
138
- }
139
-
140
- button[disabled],
141
- html input[disabled] { cursor: default; }
142
-
143
- button::-moz-focus-inner,
144
- input::-moz-focus-inner {
145
- border: 0;
146
- padding: 0;
147
- }
148
-
149
- input {
150
- line-height: normal;
151
-
152
- &[type="checkbox"],
153
- &[type="radio"] {
154
- box-sizing: border-box;
155
- padding: 0;
156
- }
157
-
158
- &[type="number"] {
159
- &::-webkit-inner-spin-button,
160
- &::-webkit-outer-spin-button { height: auto; }
161
- }
162
-
163
- &[type="search"] {
164
- -webkit-appearance: textfield;
165
- @include vendor(box-sizing, content-box);
166
-
167
- &::-webkit-search-cancel-button,
168
- &::-webkit-search-decoration { -webkit-appearance: none; }
169
- }
170
- }
171
-
172
- fieldset { margin: 0 2px; }
173
-
174
- legend {
175
- border: 0;
176
- padding: 0;
177
- white-space: normal;
178
- }
179
-
180
- textarea { overflow: auto; }
181
-
182
- optgroup { font-weight: bold; }
183
-
184
- table {
185
- border-collapse: collapse;
186
- border-spacing: 0;
187
- }
188
-
189
- td,
190
- th { padding: 0; }
2
+ //------------------------------------
3
+ // NORMALIZE
4
+ //------------------------------------
5
+ html {
6
+ font-size: 100%;
7
+ @include vendor(text-size-adjust, 100%);
8
+ }
9
+
10
+ article,
11
+ aside,
12
+ details,
13
+ figcaption,
14
+ figure,
15
+ footer,
16
+ header,
17
+ hgroup,
18
+ main,
19
+ nav,
20
+ section,
21
+ summary { display: block; }
22
+
23
+ audio,
24
+ canvas,
25
+ progress,
26
+ video {
27
+ display: inline-block;
28
+ vertical-align: baseline;
29
+ }
30
+
31
+ audio:not([controls]) {
32
+ display: none;
33
+ height: 0;
34
+ }
35
+
36
+ [hidden],
37
+ template { display: none; }
38
+
39
+ a {
40
+ background: transparent;
41
+
42
+ &:focus { outline: thin dotted; }
43
+
44
+ &:active,
45
+ &:hover { outline: 0; }
46
+ }
47
+
48
+ abbr[title] { border-bottom: 1px dotted; }
49
+
50
+ b,
51
+ strong { font-weight: bold; }
52
+
53
+ dfn { font-style: italic; }
54
+
55
+ mark {
56
+ background: #ff0;
57
+ color: #000;
58
+ }
59
+
60
+ sub,
61
+ sup {
62
+ font-size: 75%;
63
+ line-height: 0;
64
+ position: relative;
65
+ vertical-align: baseline;
66
+ }
67
+
68
+ sup { top: -0.5em; }
69
+
70
+ sub { bottom: -0.25em; }
71
+
72
+ img {
73
+ border: 0;
74
+ -ms-interpolation-mode: bicubic;
75
+ }
76
+
77
+ svg:not(:root) { overflow: hidden; }
78
+
79
+ figure { margin: 1em 40px; }
80
+
81
+ hr {
82
+ border: solid #eee;
83
+ border-width: 1px 0 0;
84
+ clear: both;
85
+ height: 0;
86
+
87
+ @include vendor(box-sizing, content-box);
88
+ }
89
+
90
+ pre {
91
+ white-space: pre;
92
+ white-space: pre-wrap;
93
+ word-wrap: break-word;
94
+ }
95
+
96
+ code,
97
+ kbd,
98
+ pre,
99
+ samp {
100
+ font-family: monospace, monospace;
101
+ @include font-size($base-font-size);
102
+ }
103
+
104
+ q {
105
+ quotes: none;
106
+
107
+ &:before,
108
+ &:after {
109
+ content: '';
110
+ content: none;
111
+ }
112
+ }
113
+
114
+ form { margin: 0; }
115
+
116
+ button,
117
+ input,
118
+ optgroup,
119
+ select,
120
+ textarea {
121
+ color: inherit;
122
+ font: inherit;
123
+ margin: 0;
124
+ vertical-align: baseline;
125
+ }
126
+
127
+ button { overflow: visible; }
128
+
129
+ button,
130
+ select { text-transform: none; }
131
+
132
+ button,
133
+ html input[type="button"],
134
+ input[type="reset"],
135
+ input[type="submit"] {
136
+ -webkit-appearance: button;
137
+ cursor: pointer;
138
+ }
139
+
140
+ button[disabled],
141
+ html input[disabled] { cursor: default; }
142
+
143
+ button::-moz-focus-inner,
144
+ input::-moz-focus-inner {
145
+ border: 0;
146
+ padding: 0;
147
+ }
148
+
149
+ input {
150
+ line-height: normal;
151
+
152
+ &[type="checkbox"],
153
+ &[type="radio"] {
154
+ box-sizing: border-box;
155
+ padding: 0;
156
+ }
157
+
158
+ &[type="number"] {
159
+ &::-webkit-inner-spin-button,
160
+ &::-webkit-outer-spin-button { height: auto; }
161
+ }
162
+
163
+ &[type="search"] {
164
+ -webkit-appearance: textfield;
165
+ @include vendor(box-sizing, content-box);
166
+
167
+ &::-webkit-search-cancel-button,
168
+ &::-webkit-search-decoration { -webkit-appearance: none; }
169
+ }
170
+ }
171
+
172
+ fieldset { margin: 0 2px; }
173
+
174
+ legend {
175
+ border: 0;
176
+ padding: 0;
177
+ white-space: normal;
178
+ }
179
+
180
+ textarea { overflow: auto; }
181
+
182
+ optgroup { font-weight: bold; }
183
+
184
+ table {
185
+ border-collapse: collapse;
186
+ border-spacing: 0;
187
+ }
188
+
189
+ td,
190
+ th { padding: 0; }
191
191
  }
@@ -1,109 +1,110 @@
1
1
  @if $use-print == true {
2
- //------------------------------------//
3
- // $PRINT
4
- //------------------------------------//
5
- @media print {
6
- @page { margin: 0.5cm; }
2
+ //------------------------------------
3
+ // PRINT
4
+ //------------------------------------
5
+ @media print {
6
+ @page { margin: 0.5cm; }
7
7
 
8
- * {
9
- background: transparent !important;
10
- color: black !important;
11
- text-shadow: none !important;
12
-
13
- @include vendor(filter, none !important);
14
-
15
- &:before, &:after {
16
- background: transparent !important;
17
- color: black !important;
18
- text-shadow: none !important;
19
-
20
- @include vendor(filter, none !important);
21
- }
22
- }
8
+ * {
9
+ background: transparent !important;
10
+ color: black !important;
11
+ text-shadow: none !important;
12
+
13
+ @include vendor(filter, none !important);
14
+
15
+ &:before,
16
+ &:after {
17
+ background: transparent !important;
18
+ color: black !important;
19
+ text-shadow: none !important;
23
20
 
24
- body {
25
- background-color: #fff;
26
- color: #000;
27
- font: 0.57em / 1.3 Georgia, "Times New Roman", Times, serif;
28
- }
29
-
30
- img { max-width: 100% !important; }
31
-
32
- .show-print {
33
- display: block;
34
- visibility: visible;
35
- }
36
-
37
- .hide-print,
38
- video,
39
- audio,
40
- object,
41
- embed,
42
- nav,
43
- footer,
44
- a[href^="#"]:after {
45
- display: none;
46
- visibility: hidden;
47
- }
48
-
49
- p,
50
- h2,
51
- h3 {
52
- orphans: 3;
53
- widows: 3;
54
- }
55
-
56
- h2,
57
- h3 { page-break-after: avoid; }
58
-
59
- a {
60
- color: #000;
61
- text-decoration: underline;
62
- word-wrap: break-word;
63
-
64
- &:visited {
65
- color: #000;
66
- text-decoration: underline;
67
- word-wrap: break-word;
68
- }
69
-
70
- &[href]:after {
71
- content: " (" attr(href) ")";
72
- font-size: smaller;
73
- }
74
- }
75
-
76
- q:after { content: " (Source: " attr(cite) ")"; }
77
-
78
- abbr[title]:after { content: " (" attr(title) ")"; }
79
-
80
- a {
81
- &:after,
82
- &[href^="javascript:"]:after,
83
- &[href^="#"]:after { content: ""; }
84
- }
85
-
86
- pre,
87
- blockquote {
88
- border: 1px solid #ededed;
89
- page-break-inside: avoid;
90
- }
91
-
92
- thead { display: table-header-group; }
93
-
94
- tr,
95
- img { page-break-inside: avoid; }
96
-
97
- ul {
98
- list-style: none;
99
-
100
- li { content: "» "; }
101
- }
102
-
103
- .label,
104
- .badge {
105
- border: 1px solid #000;
106
- color: #000;
107
- }
21
+ @include vendor(filter, none !important);
22
+ }
23
+ }
24
+
25
+ body {
26
+ background-color: #fff;
27
+ color: #000;
28
+ font: 0.57em / 1.3 Georgia, "Times New Roman", Times, serif;
29
+ }
30
+
31
+ img { max-width: 100% !important; }
32
+
33
+ .show-print {
34
+ display: block;
35
+ visibility: visible;
36
+ }
37
+
38
+ .hide-print,
39
+ video,
40
+ audio,
41
+ object,
42
+ embed,
43
+ nav,
44
+ footer,
45
+ a[href^="#"]:after {
46
+ display: none;
47
+ visibility: hidden;
48
+ }
49
+
50
+ p,
51
+ h2,
52
+ h3 {
53
+ orphans: 3;
54
+ widows: 3;
55
+ }
56
+
57
+ h2,
58
+ h3 { page-break-after: avoid; }
59
+
60
+ a {
61
+ color: #000;
62
+ text-decoration: underline;
63
+ word-wrap: break-word;
64
+
65
+ &:visited {
66
+ color: #000;
67
+ text-decoration: underline;
68
+ word-wrap: break-word;
69
+ }
70
+
71
+ &[href]:after {
72
+ content: " (" attr(href) ")";
73
+ font-size: smaller;
74
+ }
75
+ }
76
+
77
+ q:after { content: " (Source: " attr(cite) ")"; }
78
+
79
+ abbr[title]:after { content: " (" attr(title) ")"; }
80
+
81
+ a {
82
+ &:after,
83
+ &[href^="javascript:"]:after,
84
+ &[href^="#"]:after { content: ""; }
85
+ }
86
+
87
+ pre,
88
+ blockquote {
89
+ border: 1px solid #ededed;
90
+ page-break-inside: avoid;
91
+ }
92
+
93
+ thead { display: table-header-group; }
94
+
95
+ tr,
96
+ img { page-break-inside: avoid; }
97
+
98
+ ul {
99
+ list-style: none;
100
+
101
+ li { content: "» "; }
102
+ }
103
+
104
+ .label,
105
+ .badge {
106
+ border: 1px solid #000;
107
+ color: #000;
108
108
  }
109
+ }
109
110
  }
@@ -1,37 +1,41 @@
1
1
  @if $use-shared == true {
2
- //------------------------------------//
3
- // $SHARED
4
- //------------------------------------//
5
- // Declare a common bottom margin for most elements
6
- // to maintain a consistent vertical rhythm.
7
- h1, h2, h3, h4, h5, h6,
8
- .h1, .h2, .h3, .h4, .h5, .h6,
9
- .giga, .mega, .kilo,
10
- hgroup,
11
- ul, ol, dl,
12
- blockquote, p, address,
13
- table,
14
- fieldset, figure,
15
- pre,
16
- .row,
17
- .well {
18
- margin-bottom: $base-spacing-unit;
19
- margin-bottom: ($base-spacing-unit / $base-font-size) * 1rem;
20
- }
2
+ //------------------------------------
3
+ // SHARED
4
+ //------------------------------------
5
+
6
+ // Thanks to inuitcss for some simple ways to help maintain
7
+ // vertical rhythm (https://github.com/csswizardry/inuit.css/edit/master/generic/_shared.scss)
8
+
9
+ // Declare a common bottom margin for most elements
10
+ // to maintain a consistent vertical rhythm.
11
+ h1, h2, h3, h4, h5, h6,
12
+ .h1, .h2, .h3, .h4, .h5, .h6,
13
+ .giga, .mega, .kilo,
14
+ hgroup,
15
+ ul, ol, dl,
16
+ blockquote, p, address,
17
+ table,
18
+ fieldset, figure,
19
+ pre,
20
+ .row,
21
+ .well {
22
+ margin-bottom: $base-spacing-unit;
23
+ margin-bottom: ($base-spacing-unit / $base-font-size) * 1rem;
24
+ }
21
25
 
22
26
 
23
- // Spacing for <hr> tags
24
- hr {
25
- margin-bottom: $base-spacing-unit - 2px;
26
- margin-bottom: (($base-spacing-unit - 2px) / $base-font-size) * 1rem;
27
- }
27
+ // Spacing for <hr> tags
28
+ hr {
29
+ margin-bottom: $base-spacing-unit - 2px;
30
+ margin-bottom: (($base-spacing-unit - 2px) / $base-font-size) * 1rem;
31
+ }
28
32
 
29
33
 
30
- // Left margin for lists
31
- ul,
32
- ol,
33
- dd {
34
- margin-left: 2 * $base-spacing-unit;
35
- margin-left: (2 * $base-spacing-unit / $base-font-size) * 1rem;
36
- }
37
- }
34
+ // Left margin for lists
35
+ ul,
36
+ ol,
37
+ dd {
38
+ margin-left: 2 * $base-spacing-unit;
39
+ margin-left: (2 * $base-spacing-unit / $base-font-size) * 1rem;
40
+ }
41
+ }