concisecss 0.0.1
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 +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE +26 -0
- data/README.md +44 -0
- data/Rakefile +8 -0
- data/app/assets/javascripts/concisecss/close.js +6 -0
- data/app/assets/javascripts/concisecss/dropdown.js +33 -0
- data/app/assets/javascripts/concisecss/naver.js +358 -0
- data/app/assets/javascripts/concisecss/navigation.js +23 -0
- data/app/assets/javascripts/concisecss/non-responsive.js +51 -0
- data/app/assets/javascripts/concisecss.js +1 -0
- data/app/assets/stylesheets/_defaults.scss +190 -0
- data/app/assets/stylesheets/base/_blockquotes.scss +36 -0
- data/app/assets/stylesheets/base/_container.scss +14 -0
- data/app/assets/stylesheets/base/_forms.scss +125 -0
- data/app/assets/stylesheets/base/_grid.scss +67 -0
- data/app/assets/stylesheets/base/_headings.scss +155 -0
- data/app/assets/stylesheets/base/_lists.scss +125 -0
- data/app/assets/stylesheets/base/_main.scss +29 -0
- data/app/assets/stylesheets/base/_selection.scss +21 -0
- data/app/assets/stylesheets/base/_tables.scss +83 -0
- data/app/assets/stylesheets/base/_type.scss +64 -0
- data/app/assets/stylesheets/concise.scss +104 -0
- data/app/assets/stylesheets/generic/_clearfix.scss +12 -0
- data/app/assets/stylesheets/generic/_conditional.scss +122 -0
- data/app/assets/stylesheets/generic/_debug.scss +98 -0
- data/app/assets/stylesheets/generic/_helper.scss +117 -0
- data/app/assets/stylesheets/generic/_mixins.scss +122 -0
- data/app/assets/stylesheets/generic/_normalize.scss +191 -0
- data/app/assets/stylesheets/generic/_print.scss +109 -0
- data/app/assets/stylesheets/generic/_shared.scss +37 -0
- data/app/assets/stylesheets/objects/_badges.scss +53 -0
- data/app/assets/stylesheets/objects/_breadcrumbs.scss +35 -0
- data/app/assets/stylesheets/objects/_buttons.scss +287 -0
- data/app/assets/stylesheets/objects/_colors.scss +45 -0
- data/app/assets/stylesheets/objects/_dropdowns.scss +167 -0
- data/app/assets/stylesheets/objects/_groups.scss +102 -0
- data/app/assets/stylesheets/objects/_navigation.scss +377 -0
- data/app/assets/stylesheets/objects/_progress.scss +102 -0
- data/app/assets/stylesheets/objects/_wells.scss +103 -0
- data/concisecss.gemspec +25 -0
- data/lib/concisecss/concisecss_source.rb +63 -0
- data/lib/concisecss/engine.rb +6 -0
- data/lib/concisecss/version.rb +3 -0
- data/lib/concisecss.rb +7 -0
- metadata +155 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
@if $use-main == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $MAIN
|
4
|
+
//------------------------------------//
|
5
|
+
@if $global-border-box == true {
|
6
|
+
*{
|
7
|
+
&,
|
8
|
+
&:before,
|
9
|
+
&:after {
|
10
|
+
@include vendor(box-sizing, border-box);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
html,
|
16
|
+
body {
|
17
|
+
background-color: #fff;
|
18
|
+
color: $base-font-color;
|
19
|
+
font: normal normal #{($base-font-size/16px)*1em}/#{$line-height-ratio} $base-font-family;
|
20
|
+
margin: 0;
|
21
|
+
|
22
|
+
font-smooth: always;
|
23
|
+
|
24
|
+
-webkit-font-smoothing: antialiased;
|
25
|
+
-moz-font-smoothing: antialiased;
|
26
|
+
}
|
27
|
+
|
28
|
+
html[dir="rtl"] { direction: rtl; }
|
29
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@if $use-selection == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $SELECTION
|
4
|
+
//------------------------------------//
|
5
|
+
* {
|
6
|
+
&::-webkit-selection {
|
7
|
+
background-color: $selection-background;
|
8
|
+
color: $selection-color;
|
9
|
+
}
|
10
|
+
|
11
|
+
&::-moz-selection {
|
12
|
+
background-color: $selection-background;
|
13
|
+
color: $selection-color;
|
14
|
+
}
|
15
|
+
|
16
|
+
&::selection {
|
17
|
+
background-color: $selection-background;
|
18
|
+
color: $selection-color;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
@if $use-tables == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $TABLES
|
4
|
+
//------------------------------------//
|
5
|
+
table {
|
6
|
+
&.table {
|
7
|
+
empty-cells: show;
|
8
|
+
width: 100%;
|
9
|
+
|
10
|
+
caption {
|
11
|
+
color: #000;
|
12
|
+
font: italic 85%/1 arial, sans-serif;
|
13
|
+
padding: 1em 0;
|
14
|
+
text-align: center;
|
15
|
+
}
|
16
|
+
|
17
|
+
thead { border-bottom: 2px solid #ededed; }
|
18
|
+
|
19
|
+
th { padding: 12px 15px; }
|
20
|
+
|
21
|
+
td {
|
22
|
+
padding: 12px 15px;
|
23
|
+
border-top: 1px solid #ededed;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// Background colors
|
29
|
+
.bg-light-green { color: $color-green; }
|
30
|
+
|
31
|
+
.bg-light-blue { color: $color-blue; }
|
32
|
+
|
33
|
+
.bg-light-yellow { color: $color-yellow; }
|
34
|
+
|
35
|
+
.bg-light-red { color: $color-red; }
|
36
|
+
|
37
|
+
|
38
|
+
// Full-width table
|
39
|
+
&.table-full,
|
40
|
+
&.table.table-full { width: 100%; }
|
41
|
+
|
42
|
+
|
43
|
+
// Borders
|
44
|
+
&.table-border-all, &.table-border-outer { border: 1px solid #ededed; }
|
45
|
+
|
46
|
+
&.table-border-all {
|
47
|
+
th,
|
48
|
+
td { border-right: 1px solid #ededed; }
|
49
|
+
}
|
50
|
+
|
51
|
+
&.table-border-inner {
|
52
|
+
th,
|
53
|
+
td { border-right: 1px solid #ededed; }
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Hovers
|
58
|
+
&.table-hover-row tr:hover td,
|
59
|
+
&.table-hover-cell td:hover { background-color: #f9f9f9; }
|
60
|
+
|
61
|
+
|
62
|
+
// Striped
|
63
|
+
&.table-fill-even tbody tr:nth-child(even),
|
64
|
+
&.table-fill-odd tbody tr:nth-child(odd) { background-color: #f9f9f9; }
|
65
|
+
}
|
66
|
+
|
67
|
+
@include breakpoint(extra-small) {
|
68
|
+
table.table {
|
69
|
+
width: auto;
|
70
|
+
|
71
|
+
th, td { padding: 10px 50px 10px 25px; }
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
// Responsive tables
|
77
|
+
.table-responsive {
|
78
|
+
overflow: auto;
|
79
|
+
width: 100%;
|
80
|
+
|
81
|
+
table { margin-bottom: 0; }
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
@if $use-typography == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $TYPE
|
4
|
+
//------------------------------------//
|
5
|
+
// Links
|
6
|
+
a {
|
7
|
+
color: $base-link-color;
|
8
|
+
text-decoration: none;
|
9
|
+
|
10
|
+
&:hover,
|
11
|
+
&:visited {
|
12
|
+
color: lighten($base-link-color, 10%);
|
13
|
+
cursor: pointer;
|
14
|
+
text-decoration: underline;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
p a {
|
19
|
+
line-height: inherit;
|
20
|
+
|
21
|
+
&:visited { line-height: inherit; }
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
// Sizing
|
26
|
+
small,
|
27
|
+
.small {
|
28
|
+
@include font-size($small-size);
|
29
|
+
}
|
30
|
+
|
31
|
+
.micro {
|
32
|
+
@include font-size($micro-size);
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
// Addresses
|
37
|
+
address {
|
38
|
+
font-style: normal;
|
39
|
+
|
40
|
+
> strong { display: block; }
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
// Other elements
|
45
|
+
abbr {
|
46
|
+
&[title], &[data-original-title] {
|
47
|
+
cursor: help;
|
48
|
+
border-bottom: 1px dotted #999;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
acronym {
|
53
|
+
cursor: help;
|
54
|
+
border-bottom: 1px dashed blue;
|
55
|
+
}
|
56
|
+
|
57
|
+
kbd {
|
58
|
+
background-color: #333;
|
59
|
+
border-radius: 4px;
|
60
|
+
color: #fff;
|
61
|
+
font-size: 90%;
|
62
|
+
padding: 1px 4px;
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
/**
|
2
|
+
* # Concise.CSS
|
3
|
+
* http://github.com/ConciseCSS/concise.css
|
4
|
+
*
|
5
|
+
*
|
6
|
+
* Copyright 2014 Contributors
|
7
|
+
* Released under the MIT license
|
8
|
+
* http://opensource.org/licenses/MIT
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
//------------------------------------//
|
16
|
+
// $CONTENTS
|
17
|
+
//------------------------------------//
|
18
|
+
//
|
19
|
+
// CONTENTS
|
20
|
+
// IMPORTS
|
21
|
+
//
|
22
|
+
// MIXINS
|
23
|
+
// NORMALIZE
|
24
|
+
// CLEARFIX
|
25
|
+
// SHARED
|
26
|
+
//
|
27
|
+
// MAIN
|
28
|
+
// SELECTION
|
29
|
+
// CONTAINER
|
30
|
+
// TYPE
|
31
|
+
// HEADINGS
|
32
|
+
// BLOCKQUOTES
|
33
|
+
// LISTS
|
34
|
+
// TABLES
|
35
|
+
// FORMS
|
36
|
+
// GRID
|
37
|
+
//
|
38
|
+
// COLORS
|
39
|
+
// BUTTONS
|
40
|
+
// GROUPS
|
41
|
+
// DROPDOWNS
|
42
|
+
// NAVIGATION
|
43
|
+
// BREADCRUMBS
|
44
|
+
// WELLS
|
45
|
+
// BADGES
|
46
|
+
// PROGRESS
|
47
|
+
//
|
48
|
+
// HELPER
|
49
|
+
// CONDITIONAL
|
50
|
+
// PRINT
|
51
|
+
// DEBUG
|
52
|
+
//
|
53
|
+
//
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
//------------------------------------//
|
59
|
+
// $IMPORTS
|
60
|
+
//------------------------------------//
|
61
|
+
// Generic utility styles
|
62
|
+
@import "defaults";
|
63
|
+
@import "generic/mixins";
|
64
|
+
@import "generic/normalize";
|
65
|
+
@import "generic/clearfix";
|
66
|
+
@import "generic/shared";
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
// Base styles
|
72
|
+
@import "base/main";
|
73
|
+
@import "base/selection";
|
74
|
+
@import "base/container";
|
75
|
+
@import "base/type";
|
76
|
+
@import "base/headings";
|
77
|
+
@import "base/blockquotes";
|
78
|
+
@import "base/lists";
|
79
|
+
@import "base/tables";
|
80
|
+
@import "base/forms";
|
81
|
+
@import "base/grid";
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
// Objects and abstractions
|
87
|
+
@import "objects/colors";
|
88
|
+
@import "objects/buttons";
|
89
|
+
@import "objects/groups";
|
90
|
+
@import "objects/dropdowns";
|
91
|
+
@import "objects/navigation";
|
92
|
+
@import "objects/breadcrumbs";
|
93
|
+
@import "objects/wells";
|
94
|
+
@import "objects/badges";
|
95
|
+
@import "objects/progress";
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
// Helper classes
|
101
|
+
@import "generic/helper";
|
102
|
+
@import "generic/conditional";
|
103
|
+
@import "generic/print";
|
104
|
+
@import "generic/debug";
|
@@ -0,0 +1,122 @@
|
|
1
|
+
@if $use-conditional == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $CONDITIONAL
|
4
|
+
//------------------------------------//
|
5
|
+
.show-extra-small,
|
6
|
+
.hide-small,
|
7
|
+
.hide-medium,
|
8
|
+
.hide-large,
|
9
|
+
.hide-extra-large,
|
10
|
+
.hide-print,
|
11
|
+
.hide-hd {
|
12
|
+
display: block;
|
13
|
+
visibility: visible;
|
14
|
+
}
|
15
|
+
|
16
|
+
.hide-extra-small,
|
17
|
+
.show-small,
|
18
|
+
.show-medium,
|
19
|
+
.show-large,
|
20
|
+
.show-extra-large,
|
21
|
+
.show-print,
|
22
|
+
.show-hd {
|
23
|
+
display: none;
|
24
|
+
visibility: hidden;
|
25
|
+
}
|
26
|
+
|
27
|
+
@include breakpoint(small) {
|
28
|
+
.show-small,
|
29
|
+
.hide-extra-small,
|
30
|
+
.hide-medium,
|
31
|
+
.hide-large,
|
32
|
+
.hide-extra-large {
|
33
|
+
display: block;
|
34
|
+
visibility: visible;
|
35
|
+
}
|
36
|
+
|
37
|
+
.hide-small,
|
38
|
+
.show-extra-small,
|
39
|
+
.show-medium,
|
40
|
+
.show-large,
|
41
|
+
.show-extra-large {
|
42
|
+
display: none;
|
43
|
+
visibility: hidden;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@include breakpoint(medium) {
|
48
|
+
.show-medium,
|
49
|
+
.hide-small,
|
50
|
+
.hide-extra-small,
|
51
|
+
.hide-large,
|
52
|
+
.hide-extra-large {
|
53
|
+
display: block;
|
54
|
+
visibility: visible;
|
55
|
+
}
|
56
|
+
|
57
|
+
.hide-medium,
|
58
|
+
.show-small,
|
59
|
+
.show-extra-small,
|
60
|
+
.show-large,
|
61
|
+
.show-extra-large {
|
62
|
+
display: none;
|
63
|
+
visibility: hidden;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
@include breakpoint(large) {
|
68
|
+
.show-large,
|
69
|
+
.hide-extra-small,
|
70
|
+
.hide-small,
|
71
|
+
.hide-medium,
|
72
|
+
.hide-extra-large {
|
73
|
+
display: block;
|
74
|
+
visibility: visible;
|
75
|
+
}
|
76
|
+
|
77
|
+
.hide-large,
|
78
|
+
.show-extra-small,
|
79
|
+
.show-small,
|
80
|
+
.show-medium,
|
81
|
+
.show-extra-large {
|
82
|
+
display: none;
|
83
|
+
visibility: hidden;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
@include breakpoint(extra-large) {
|
88
|
+
.show-extra-large,
|
89
|
+
.hide-extra-small,
|
90
|
+
.hide-small,
|
91
|
+
.hide-medium,
|
92
|
+
.hide-large {
|
93
|
+
display: block;
|
94
|
+
visibility: visible;
|
95
|
+
}
|
96
|
+
|
97
|
+
.hide-extra-large,
|
98
|
+
.show-extra-small,
|
99
|
+
.show-small,
|
100
|
+
.show-medium,
|
101
|
+
.show-large {
|
102
|
+
display: none;
|
103
|
+
visibility: hidden;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
// HiDPI and retina
|
108
|
+
@media only screen and (-moz-min-device-pixel-ratio: 1.5),
|
109
|
+
only screen and (-o-min-device-pixel-ratio: 3 / 2),
|
110
|
+
only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
111
|
+
only screen and (min-device-pixel-ratio: 1.5) {
|
112
|
+
.show-hd {
|
113
|
+
display: block;
|
114
|
+
visibility: visible;
|
115
|
+
}
|
116
|
+
|
117
|
+
.hide-hd {
|
118
|
+
display: none;
|
119
|
+
visibility: hidden;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
@if $debug-mode == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $DEBUG
|
4
|
+
//------------------------------------//
|
5
|
+
// Big thanks to Harry Roberts of CSS Wizardry for this great
|
6
|
+
// tool. https://github.com/csswizardry/inuit.css/blob/master/_inuit.scss
|
7
|
+
|
8
|
+
//
|
9
|
+
// Enable this stylesheet to visually detect any improperly nested or
|
10
|
+
// potentially invalid markup, or any potentially inaccessible code.
|
11
|
+
//
|
12
|
+
// Red == definite error
|
13
|
+
// Yellow == double-check
|
14
|
+
// None == should be fine
|
15
|
+
//
|
16
|
+
// Please note that this method of checking markup quality should not be relied
|
17
|
+
// upon entirely. Validate your markup!
|
18
|
+
//
|
19
|
+
|
20
|
+
|
21
|
+
// Are there any empty elements in your page?
|
22
|
+
:empty { outline: 5px solid yellow; }
|
23
|
+
|
24
|
+
|
25
|
+
// Images require `alt` attributes, empty `alt`s are fine but should be
|
26
|
+
// double-checked, no `alt` is bad and is flagged red.
|
27
|
+
img { outline:5px solid red; }
|
28
|
+
|
29
|
+
img[alt] { outline:none; }
|
30
|
+
|
31
|
+
img[alt=""] { outline:5px solid yellow; }
|
32
|
+
|
33
|
+
|
34
|
+
// Links sometimes, though not always, benefit from `title` attributes. Links
|
35
|
+
// without are never invalid but it’s a good idea to check.
|
36
|
+
a { outline:5px solid yellow; }
|
37
|
+
|
38
|
+
a[title] { outline:none; }
|
39
|
+
|
40
|
+
|
41
|
+
// Double-check any links whose `href` is something questionable.
|
42
|
+
a[href="#"],
|
43
|
+
a[href*="javascript"] { outline:5px solid yellow; }
|
44
|
+
|
45
|
+
|
46
|
+
// The `target` attribute ain’t too nice...
|
47
|
+
a[target] { outline:5px solid yellow; }
|
48
|
+
|
49
|
+
|
50
|
+
// Ensure any lists only contain `li`s as children.
|
51
|
+
ul,
|
52
|
+
ol {
|
53
|
+
> *:not(li) { outline:5px solid red; }
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// It’s always nice to give `th`s `scope` attributes.
|
58
|
+
th { outline:5px solid yellow; }
|
59
|
+
|
60
|
+
th[scope] { outline:none; }
|
61
|
+
|
62
|
+
|
63
|
+
// `tr`s as children of `table`s ain’t great, did you need a `thead`/`tbody`?
|
64
|
+
table > tr { outline:5px solid yellow; }
|
65
|
+
|
66
|
+
|
67
|
+
// `tfoot` needs to come *before* `tbody`.
|
68
|
+
tbody + tfoot { outline:5px solid yellow; }
|
69
|
+
|
70
|
+
|
71
|
+
// Forms require `action` attributes
|
72
|
+
form { outline:5px solid red; }
|
73
|
+
|
74
|
+
form[action] { outline:none; }
|
75
|
+
|
76
|
+
|
77
|
+
// Various form-field types have required attributes. `input`s need `type`
|
78
|
+
// attributes, `textarea`s need `rows` and `cols` attributes and submit buttons
|
79
|
+
// need a `value` attribute.
|
80
|
+
textarea,
|
81
|
+
input { outline:5px solid red; }
|
82
|
+
|
83
|
+
input[type] { outline:none; }
|
84
|
+
|
85
|
+
textarea[rows][cols] { outline:none; }
|
86
|
+
|
87
|
+
input[type=submit] { outline:5px solid red; }
|
88
|
+
|
89
|
+
input[type=submit][value] { outline:none; }
|
90
|
+
|
91
|
+
|
92
|
+
// Avoid inline styles where possible.
|
93
|
+
[style] { outline:5px solid yellow; }
|
94
|
+
|
95
|
+
|
96
|
+
// You should avoid using IDs for CSS, is this doing any styling?
|
97
|
+
[id]{ outline:5px solid yellow; }
|
98
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
@if $use-helper == true {
|
2
|
+
//------------------------------------//
|
3
|
+
// $HELPER
|
4
|
+
//------------------------------------//
|
5
|
+
// Add/remove floats
|
6
|
+
.float-left { float: left !important; }
|
7
|
+
|
8
|
+
.float-right { float: right !important; }
|
9
|
+
|
10
|
+
.float-none { float: none !important; }
|
11
|
+
|
12
|
+
|
13
|
+
// Position elements
|
14
|
+
.align-center {
|
15
|
+
display: block;
|
16
|
+
margin-left: auto;
|
17
|
+
margin-right: auto;
|
18
|
+
}
|
19
|
+
|
20
|
+
.no-margin { margin: 0 !important; }
|
21
|
+
|
22
|
+
.icon-alone { display: inline-block; }
|
23
|
+
|
24
|
+
|
25
|
+
// Displaying content
|
26
|
+
.inline { display: block; }
|
27
|
+
|
28
|
+
@include breakpoint(extra-small) { .inline { display: inline; } }
|
29
|
+
|
30
|
+
.show {
|
31
|
+
display: block;
|
32
|
+
visibility: visible;
|
33
|
+
}
|
34
|
+
|
35
|
+
.hide {
|
36
|
+
display: none;
|
37
|
+
visibility: hidden;
|
38
|
+
}
|
39
|
+
|
40
|
+
.screen-reader {
|
41
|
+
border: 0;
|
42
|
+
clip: rect(0 0 0 0);
|
43
|
+
height: 1px;
|
44
|
+
margin: -1px;
|
45
|
+
overflow: hidden;
|
46
|
+
padding: 0;
|
47
|
+
position: absolute;
|
48
|
+
width: 1px;
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
// Full-width elements
|
53
|
+
.full { width: 100%; }
|
54
|
+
|
55
|
+
img.full {
|
56
|
+
max-width: 100%;
|
57
|
+
height: auto;
|
58
|
+
display: block;
|
59
|
+
width: auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
// Text alignment
|
64
|
+
.text-left { text-align: left; }
|
65
|
+
|
66
|
+
.text-right { text-align: right; }
|
67
|
+
|
68
|
+
.text-center { text-align: center; }
|
69
|
+
|
70
|
+
.text-justify { text-align: justify; }
|
71
|
+
|
72
|
+
|
73
|
+
// Font weights
|
74
|
+
.weight-light { font-weight: 300 !important; }
|
75
|
+
|
76
|
+
.weight-normal { font-weight: 400 !important; }
|
77
|
+
|
78
|
+
.weight-semibold { font-weight: 600 !important; }
|
79
|
+
|
80
|
+
|
81
|
+
// All-caps text
|
82
|
+
.text-uppercase { text-transform: uppercase; }
|
83
|
+
|
84
|
+
|
85
|
+
// Stylized ampersand
|
86
|
+
.amp { font: italic 110% Baskerville, "Goudy Old Style", "Palatino", "Book Antiqua", serif !important; }
|
87
|
+
|
88
|
+
|
89
|
+
// Hide text
|
90
|
+
.text-hide {
|
91
|
+
border: 0;
|
92
|
+
background-color: transparent;
|
93
|
+
color: transparent;
|
94
|
+
font: 0 / 0 a;
|
95
|
+
text-shadow: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
// Caret icon
|
100
|
+
.caret {
|
101
|
+
border-top: 5px solid;
|
102
|
+
border-right: 5px solid transparent;
|
103
|
+
border-left: 5px solid transparent;
|
104
|
+
display: inline-block;
|
105
|
+
margin: 0 0 3px 4px;
|
106
|
+
vertical-align: middle;
|
107
|
+
width: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
// Border radius
|
112
|
+
.border-radius { border-radius: $border-radius; }
|
113
|
+
|
114
|
+
|
115
|
+
// Pill style
|
116
|
+
.pill { border-radius: 25px; }
|
117
|
+
}
|