piecss 0.1.0.alpha.01
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/README.md +7 -0
- data/lib/piecss.rb +6 -0
- data/sass/piecss/behavior.scss +11 -0
- data/sass/piecss/behavior/anchor.scss +30 -0
- data/sass/piecss/behavior/base.scss +4 -0
- data/sass/piecss/behavior/base/normalize.scss +458 -0
- data/sass/piecss/behavior/base/preset.scss +57 -0
- data/sass/piecss/behavior/form.scss +120 -0
- data/sass/piecss/behavior/grid.scss +4 -0
- data/sass/piecss/behavior/grid/layout.scss +170 -0
- data/sass/piecss/behavior/grid/rhythm.scss +54 -0
- data/sass/piecss/behavior/list.scss +189 -0
- data/sass/piecss/settings.scss +18 -0
- data/sass/piecss/settings/base.scss +177 -0
- data/sass/piecss/settings/breakpoint.scss +32 -0
- data/sass/piecss/settings/constants.scss +147 -0
- data/sass/piecss/settings/fonts.scss +31 -0
- data/sass/piecss/settings/fonts/_asap.scss +44 -0
- data/sass/piecss/settings/fonts/_bree-serif.scss +23 -0
- data/sass/piecss/settings/fonts/_example.scss +43 -0
- data/sass/piecss/settings/fonts/_lato.scss +32 -0
- data/sass/piecss/settings/fonts/_monospace.scss +39 -0
- data/sass/piecss/settings/fonts/_pt-sans.scss +40 -0
- data/sass/piecss/settings/fonts/_raleway.scss +31 -0
- data/sass/piecss/settings/fonts/_righteous.scss +23 -0
- data/sass/piecss/settings/fonts/_roboto.scss +34 -0
- data/sass/piecss/settings/fonts/_sans-serif.scss +39 -0
- data/sass/piecss/settings/fonts/_serif.scss +39 -0
- data/sass/piecss/settings/fonts/_sofia-pro.scss +40 -0
- data/sass/piecss/settings/fonts/_varela-round.scss +24 -0
- data/sass/piecss/settings/fonts/_verdana.scss +40 -0
- data/sass/piecss/settings/fonts/icon-fonts/_fontawesome.scss +33 -0
- data/sass/piecss/settings/fonts/icon-fonts/_foundation-accessability.scss +75 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_core.scss +129 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_path.scss +14 -0
- data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
- data/sass/piecss/settings/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
- data/sass/piecss/settings/form.scss +664 -0
- data/sass/piecss/settings/grid.scss +157 -0
- data/sass/piecss/settings/list.scss +216 -0
- data/sass/piecss/utilities.scss +16 -0
- data/sass/piecss/utilities/README.md +105 -0
- data/sass/piecss/utilities/breakpoint.scss +46 -0
- data/sass/piecss/utilities/cache.scss +74 -0
- data/sass/piecss/utilities/elements.scss +182 -0
- data/sass/piecss/utilities/image.scss +58 -0
- data/sass/piecss/utilities/layout.scss +367 -0
- data/sass/piecss/utilities/list.scss +26 -0
- data/sass/piecss/utilities/miscellaneous.scss +260 -0
- data/sass/piecss/utilities/rhythm.scss +173 -0
- data/sass/piecss/utilities/sides.scss +376 -0
- data/sass/piecss/utilities/typography.scss +295 -0
- data/sass/piecss/utilities/units.scss +166 -0
- data/templates/project/_settings.scss +24 -0
- data/templates/project/examples.html +224 -0
- data/templates/project/manifest.rb +13 -0
- data/templates/project/screen.scss +96 -0
- metadata +133 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
-----------------------------------------------------------------------------
|
|
6
|
+
Miscellaneous - consider movin to reset
|
|
7
|
+
-----------------------------------------------------------------------------
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
abbr[title] {
|
|
11
|
+
border-bottom: 1px dotted;
|
|
12
|
+
}
|
|
13
|
+
hr {
|
|
14
|
+
height: 0;
|
|
15
|
+
}
|
|
16
|
+
code,
|
|
17
|
+
kbd,
|
|
18
|
+
pre,
|
|
19
|
+
samp {
|
|
20
|
+
@include font-family($monospace-regular);
|
|
21
|
+
@include font-size($default-font-size);
|
|
22
|
+
}
|
|
23
|
+
pre {
|
|
24
|
+
white-space: pre-wrap;
|
|
25
|
+
}
|
|
26
|
+
small {
|
|
27
|
+
font-size: 80%;
|
|
28
|
+
}
|
|
29
|
+
sub,
|
|
30
|
+
sup {
|
|
31
|
+
font-size: 75%;
|
|
32
|
+
line-height: 0;
|
|
33
|
+
position: relative;
|
|
34
|
+
vertical-align: baseline;
|
|
35
|
+
}
|
|
36
|
+
sup {
|
|
37
|
+
top: -0.5em;
|
|
38
|
+
}
|
|
39
|
+
sub {
|
|
40
|
+
bottom: -0.25em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@if $base-quote-quotes
|
|
44
|
+
{
|
|
45
|
+
/*
|
|
46
|
+
* Set consistent quote types.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
q {
|
|
50
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
ul {
|
|
55
|
+
padding: 0;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// select,
|
|
5
|
+
// textarea,
|
|
6
|
+
// input[type="date"],
|
|
7
|
+
// input[type="datetime"],
|
|
8
|
+
// input[type="datetime-local"],
|
|
9
|
+
// input[type="email"],
|
|
10
|
+
// input[type="month"],
|
|
11
|
+
// input[type="number"],
|
|
12
|
+
// input[type="password"],
|
|
13
|
+
// input[type="search"],
|
|
14
|
+
// input[type="tel"],
|
|
15
|
+
// input[type="text"],
|
|
16
|
+
// input[type="time"],
|
|
17
|
+
// input[type="url"],
|
|
18
|
+
// input[type="week"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
// $form-form-selector: "%form" !default;
|
|
22
|
+
// $form-fieldset-selector: "%fieldset" !default;
|
|
23
|
+
// $form-legend-selector: "%legend" !default;
|
|
24
|
+
// $form-field-base-selector: "%field-base" !default;
|
|
25
|
+
// $form-field-base-selector--focus: "%field-base--focus" !default;
|
|
26
|
+
// $form-field-selector: "%field" !default;
|
|
27
|
+
// $form-field-color-selector: "%field--color" !default;
|
|
28
|
+
// $form-field-range-selector: "%field--range" !default;
|
|
29
|
+
// $form-field-search-selector: "%field--search" !default;
|
|
30
|
+
// $form-checkbox-selector: "%checkbox" !default;
|
|
31
|
+
// $form-radio-selector: "%radio" !default;
|
|
32
|
+
// $form-textarea-selector: "%textarea" !default;
|
|
33
|
+
// $form-select-selector: "%select" !default;
|
|
34
|
+
// $form-select-dropdown-selector: "%select--dropdown" !default;
|
|
35
|
+
// $form-select-box-selector: "%select--box" !default;
|
|
36
|
+
// $form-select-multiple-selector: "%select--multiple" !default;
|
|
37
|
+
// $form-label-selector: "%label" !default;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
-----------------------------------------------------------------------------
|
|
43
|
+
Field base
|
|
44
|
+
-----------------------------------------------------------------------------
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@include elements($form-elements);
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
#{$form-field-base-selector} {
|
|
52
|
+
&:focus {
|
|
53
|
+
@extend #{$form-field-base-selector--focus} !optional;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#{$form-field-selector} {
|
|
58
|
+
@extend #{$form-field-base-selector} !optional;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
select,
|
|
62
|
+
textarea,
|
|
63
|
+
input[type="date"],
|
|
64
|
+
input[type="datetime"],
|
|
65
|
+
input[type="datetime-local"],
|
|
66
|
+
input[type="email"],
|
|
67
|
+
input[type="month"],
|
|
68
|
+
input[type="number"],
|
|
69
|
+
input[type="password"],
|
|
70
|
+
input[type="search"],
|
|
71
|
+
input[type="tel"],
|
|
72
|
+
input[type="text"],
|
|
73
|
+
input[type="time"],
|
|
74
|
+
input[type="url"],
|
|
75
|
+
input[type="week"] {
|
|
76
|
+
@extend #{$form-field-selector} !optional;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
input[type="color"] {
|
|
80
|
+
@extend #{$form-field-color-selector} !optional;
|
|
81
|
+
}
|
|
82
|
+
input[type="range"] {
|
|
83
|
+
@extend #{$form-field-range-selector} !optional;
|
|
84
|
+
}
|
|
85
|
+
input[type="search"] {
|
|
86
|
+
@extend #{$form-field-search-selector} !optional;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
select:not([size]) {
|
|
90
|
+
@extend #{$form-select-dropdown-selector} !optional;
|
|
91
|
+
@if to-bool($select-appearance) {
|
|
92
|
+
@include reset-appearance($select-appearance);
|
|
93
|
+
}
|
|
94
|
+
@if $select-webkit {
|
|
95
|
+
@at-root .webkit {
|
|
96
|
+
// background: $input-background-color url("/assets/images/icons/icon-sort.svg") no-repeat 1% center;
|
|
97
|
+
// background-size: 10px auto;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
select[size] {
|
|
103
|
+
@extend #{$form-select-box-selector} !optional;
|
|
104
|
+
}
|
|
105
|
+
select[multiple] {
|
|
106
|
+
@extend #{$form-select-box-selector} !optional;
|
|
107
|
+
@extend #{$form-select-multiple-selector} !optional;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.editor--small,
|
|
111
|
+
textarea {
|
|
112
|
+
@extend #{$form-textarea-selector} !optional;
|
|
113
|
+
@at-root .editor--medium {
|
|
114
|
+
@extend #{$form-textarea-selector}--medium !optional;
|
|
115
|
+
}
|
|
116
|
+
@at-root .editor--large {
|
|
117
|
+
@extend #{$form-textarea-selector}--large !optional;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// ==========================================================================
|
|
5
|
+
//
|
|
6
|
+
// CONTENT
|
|
7
|
+
//
|
|
8
|
+
// ==========================================================================
|
|
9
|
+
//
|
|
10
|
+
// 1. Placeholders
|
|
11
|
+
// %root
|
|
12
|
+
// %column
|
|
13
|
+
// %gutters
|
|
14
|
+
// %gutters--right
|
|
15
|
+
// %gutters--left
|
|
16
|
+
// %bleed
|
|
17
|
+
// %bleed--right
|
|
18
|
+
// %bleed--left
|
|
19
|
+
// 2. Selectors
|
|
20
|
+
// Column widths
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// ==========================================================================
|
|
24
|
+
//
|
|
25
|
+
// 1. PLACEHOLDERS
|
|
26
|
+
//
|
|
27
|
+
// ==========================================================================
|
|
28
|
+
//
|
|
29
|
+
// Example usage of a placeholder:
|
|
30
|
+
// .root {
|
|
31
|
+
// @extend %root;
|
|
32
|
+
// }
|
|
33
|
+
//
|
|
34
|
+
// --------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// ==========================================================================
|
|
38
|
+
// Placeholder %root
|
|
39
|
+
// --------------------------------------------------------------------------
|
|
40
|
+
// Sets a maximum width on a container
|
|
41
|
+
// ==========================================================================
|
|
42
|
+
|
|
43
|
+
%root {
|
|
44
|
+
@include root();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ==========================================================================
|
|
48
|
+
// Placeholder %column
|
|
49
|
+
// --------------------------------------------------------------------------
|
|
50
|
+
// Column or region, but excluding gutters (padding or margin)
|
|
51
|
+
// ==========================================================================
|
|
52
|
+
|
|
53
|
+
%column {
|
|
54
|
+
@include column-behavior();
|
|
55
|
+
@include column-width();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// ==========================================================================
|
|
60
|
+
// Placeholder %gutters
|
|
61
|
+
// --------------------------------------------------------------------------
|
|
62
|
+
// Adds responsive padding left and right
|
|
63
|
+
// ==========================================================================
|
|
64
|
+
|
|
65
|
+
%gutters {
|
|
66
|
+
@include gutters();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// ==========================================================================
|
|
70
|
+
// Placeholder %gutters--right
|
|
71
|
+
// --------------------------------------------------------------------------
|
|
72
|
+
// Adds responsive padding right
|
|
73
|
+
// ==========================================================================
|
|
74
|
+
|
|
75
|
+
%gutters-right {
|
|
76
|
+
@include gutters((false 1/2));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ==========================================================================
|
|
80
|
+
// Placeholder %gutters--left
|
|
81
|
+
// --------------------------------------------------------------------------
|
|
82
|
+
// Adds responsive padding left
|
|
83
|
+
// ==========================================================================
|
|
84
|
+
|
|
85
|
+
%gutters-left {
|
|
86
|
+
@include gutters((1/2 false));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// ==========================================================================
|
|
90
|
+
// Placeholder %bleed
|
|
91
|
+
// --------------------------------------------------------------------------
|
|
92
|
+
// Responsive bleed padding left and right
|
|
93
|
+
// ==========================================================================
|
|
94
|
+
|
|
95
|
+
%bleed {
|
|
96
|
+
@include bleed();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ==========================================================================
|
|
100
|
+
// Placeholder %bleed--right
|
|
101
|
+
// --------------------------------------------------------------------------
|
|
102
|
+
// Responsive bleed padding right
|
|
103
|
+
// ==========================================================================
|
|
104
|
+
|
|
105
|
+
%bleed--right {
|
|
106
|
+
@include bleed((false 1/2));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ==========================================================================
|
|
110
|
+
// Placeholder %bleed--left
|
|
111
|
+
// --------------------------------------------------------------------------
|
|
112
|
+
// Responsive bleed padding left
|
|
113
|
+
// ==========================================================================
|
|
114
|
+
|
|
115
|
+
%bleed-left {
|
|
116
|
+
@include bleed((1/2 false));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// ==========================================================================
|
|
121
|
+
//
|
|
122
|
+
// 2. SELECTORS
|
|
123
|
+
//
|
|
124
|
+
// ==========================================================================
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
// ==========================================================================
|
|
128
|
+
// Column widths
|
|
129
|
+
// --------------------------------------------------------------------------
|
|
130
|
+
//
|
|
131
|
+
// Outputs columns for different breakpoints.
|
|
132
|
+
// Columns and breakpoints can be set from your project's settings:
|
|
133
|
+
//
|
|
134
|
+
// $small_handheld: "(max-width: #{to-unit(480px,$unit,$default-font-size)})" !default;
|
|
135
|
+
// $small_desktop: "(min-width: #{to-unit(1024px,$unit,$default-font-size)})" !default;
|
|
136
|
+
//
|
|
137
|
+
// $column-widths: (
|
|
138
|
+
// $small_handheld: (main: 1/1, side: 1/1),
|
|
139
|
+
// $small_desktop: (main: 2/3, side: 1/3) );
|
|
140
|
+
//
|
|
141
|
+
// Will output:
|
|
142
|
+
//
|
|
143
|
+
// @media only screen and (max-width: 30em) {
|
|
144
|
+
// .main {
|
|
145
|
+
// width: 100%; }
|
|
146
|
+
// .side {
|
|
147
|
+
// width: 100%; } }
|
|
148
|
+
// @media only screen and (min-width: 64em) {
|
|
149
|
+
// .main {
|
|
150
|
+
// width: 66.66667%; }
|
|
151
|
+
// .side {
|
|
152
|
+
// width: 33.33333%; } }
|
|
153
|
+
//
|
|
154
|
+
// ==========================================================================
|
|
155
|
+
|
|
156
|
+
@each $breakpoint in map-keys($column-widths) {
|
|
157
|
+
$widths: map-get($column-widths, $breakpoint);
|
|
158
|
+
@each $selector in map-keys($widths){
|
|
159
|
+
%#{$selector} {
|
|
160
|
+
@extend %column;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
@include breakpoint($breakpoint) {
|
|
164
|
+
@each $selector in map-keys($widths){
|
|
165
|
+
%#{$selector} {
|
|
166
|
+
@include column-width( map-get($widths, $selector) );
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
-----------------------------------------------------------------------------
|
|
6
|
+
Debug helpers
|
|
7
|
+
-----------------------------------------------------------------------------
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
%debug {
|
|
11
|
+
/*
|
|
12
|
+
* Mixin debug-rhythm to display the vertical rhythm units
|
|
13
|
+
*/
|
|
14
|
+
@include debug-rhythm;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@if $debug-rhythm {
|
|
18
|
+
body {
|
|
19
|
+
@extend %debug;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%rhythm-padding {
|
|
24
|
+
@include vrhythm(1, padding-top);
|
|
25
|
+
@include vrhythm(1, padding-bottom);
|
|
26
|
+
&--top {
|
|
27
|
+
@include vrhythm(1, padding-top);
|
|
28
|
+
}
|
|
29
|
+
&--bottom {
|
|
30
|
+
@include vrhythm(1, padding-bottom);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
%rhythm-margin {
|
|
35
|
+
@include vrhythm(0, margin-top);
|
|
36
|
+
@include vrhythm(1, margin-bottom);
|
|
37
|
+
&--top {
|
|
38
|
+
@include vrhythm(1, margin-top);
|
|
39
|
+
}
|
|
40
|
+
&--bottom {
|
|
41
|
+
@include vrhythm(1, margin-bottom);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
$single-direction-selector: '';
|
|
46
|
+
@if length($single-direction-elements) > 0 and $single-direction-elements != '' {
|
|
47
|
+
@each $element in $single-direction-elements {
|
|
48
|
+
// This leaves the last element with a comma, but the compiler will strip that out anyway so leave for now and revisit later
|
|
49
|
+
$single-direction-selector: $single-direction-selector + $element + ',' !global;
|
|
50
|
+
}
|
|
51
|
+
#{$single-direction-selector} {
|
|
52
|
+
@extend %rhythm-margin;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// ==========================================================================
|
|
5
|
+
//
|
|
6
|
+
// CONTENT
|
|
7
|
+
//
|
|
8
|
+
// ==========================================================================
|
|
9
|
+
//
|
|
10
|
+
// 1. Reset
|
|
11
|
+
// 2. Placeholders
|
|
12
|
+
// %list--incognito
|
|
13
|
+
// %list--inline
|
|
14
|
+
// %list--outside
|
|
15
|
+
// %list--inside
|
|
16
|
+
// %list--{type}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// ==========================================================================
|
|
20
|
+
//
|
|
21
|
+
// 1. RESET
|
|
22
|
+
//
|
|
23
|
+
// ==========================================================================
|
|
24
|
+
//
|
|
25
|
+
// If $reset-list-style equals true (see settings/list) all lists are reset.
|
|
26
|
+
// Applying a class of list to a ul or ol will restore the default behavior.
|
|
27
|
+
//
|
|
28
|
+
// 1. Remove default list behavior
|
|
29
|
+
// 2. Restore default list behavior when a class of list is applied
|
|
30
|
+
// 3. Ensure list items inherit from their parent list
|
|
31
|
+
//
|
|
32
|
+
// --------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
@if $reset-list {
|
|
35
|
+
ol,ul {
|
|
36
|
+
@extend %#{$list-selector}--incognito !optional;
|
|
37
|
+
}
|
|
38
|
+
ol {
|
|
39
|
+
&.#{$list-selector} {
|
|
40
|
+
@extend %#{$list-selector}--#{$list-ol-default} !optional;
|
|
41
|
+
}
|
|
42
|
+
@extend %#{$list-selector}--inside;
|
|
43
|
+
}
|
|
44
|
+
ul {
|
|
45
|
+
&.#{$list-selector} {
|
|
46
|
+
@extend %#{$list-selector}--#{$list-ul-default} !optional;
|
|
47
|
+
}
|
|
48
|
+
@extend %#{$list-selector}--inside;
|
|
49
|
+
}
|
|
50
|
+
li {
|
|
51
|
+
list-style-type: inherit;
|
|
52
|
+
list-style-position: inherit;
|
|
53
|
+
list-style-image: inherit;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// ==========================================================================
|
|
59
|
+
//
|
|
60
|
+
// 2. PLACEHOLDERS
|
|
61
|
+
//
|
|
62
|
+
// ==========================================================================
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// ==========================================================================
|
|
66
|
+
// Placeholder %list--incognito
|
|
67
|
+
// --------------------------------------------------------------------------
|
|
68
|
+
// Remove default list behavior
|
|
69
|
+
// ==========================================================================
|
|
70
|
+
|
|
71
|
+
%#{$list-selector}--incognito {
|
|
72
|
+
padding: 0;
|
|
73
|
+
list-style-type: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// ==========================================================================
|
|
78
|
+
// Placeholder %list--inline
|
|
79
|
+
// --------------------------------------------------------------------------
|
|
80
|
+
// List all items inline
|
|
81
|
+
// ==========================================================================
|
|
82
|
+
|
|
83
|
+
%#{$list-selector}--inline {
|
|
84
|
+
&>li {
|
|
85
|
+
display: inline;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
// ==========================================================================
|
|
91
|
+
// Placeholder %list--outside
|
|
92
|
+
// --------------------------------------------------------------------------
|
|
93
|
+
// Moves bullets outside of the left text margin
|
|
94
|
+
// ==========================================================================
|
|
95
|
+
|
|
96
|
+
%#{$list-selector}--outside {
|
|
97
|
+
list-style-position: outside;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
// ==========================================================================
|
|
102
|
+
// Placeholder %list--incognito
|
|
103
|
+
// --------------------------------------------------------------------------
|
|
104
|
+
// Moves bullets inside of the left text margin
|
|
105
|
+
// ==========================================================================
|
|
106
|
+
|
|
107
|
+
%#{$list-selector}--inside {
|
|
108
|
+
list-style-position: inside;
|
|
109
|
+
padding-left: 1em;
|
|
110
|
+
text-indent: -1em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
// ==========================================================================
|
|
115
|
+
// List bullet types
|
|
116
|
+
// --------------------------------------------------------------------------
|
|
117
|
+
// All bullet types:
|
|
118
|
+
// %list--circle,
|
|
119
|
+
// %list--decimal,
|
|
120
|
+
// %list--lower-alpha,
|
|
121
|
+
// etc.
|
|
122
|
+
// ==========================================================================
|
|
123
|
+
|
|
124
|
+
@if $list-style-type-armenian {
|
|
125
|
+
@include list-style-type(armenian);
|
|
126
|
+
}
|
|
127
|
+
@if $list-style-type-circle {
|
|
128
|
+
@include list-style-type(circle);
|
|
129
|
+
}
|
|
130
|
+
@if $list-style-type-cjk-ideographic {
|
|
131
|
+
@include list-style-type(armenian);
|
|
132
|
+
}
|
|
133
|
+
@if $list-style-type-decimal {
|
|
134
|
+
@include list-style-type(decimal);
|
|
135
|
+
}
|
|
136
|
+
@if $list-style-type-decimal-leading-zero {
|
|
137
|
+
@include list-style-type(decimal-leading-zero);
|
|
138
|
+
}
|
|
139
|
+
@if $list-style-type-disc {
|
|
140
|
+
@include list-style-type(disc);
|
|
141
|
+
}
|
|
142
|
+
@if $list-style-type-georgian {
|
|
143
|
+
@include list-style-type(georgian);
|
|
144
|
+
}
|
|
145
|
+
@if $list-style-type-hebrew {
|
|
146
|
+
@include list-style-type(hebrew);
|
|
147
|
+
}
|
|
148
|
+
@if $list-style-type-hiragana {
|
|
149
|
+
@include list-style-type(hiragana);
|
|
150
|
+
}
|
|
151
|
+
@if $list-style-type-hiragana-iroha {
|
|
152
|
+
@include list-style-type(hiragana-iroha);
|
|
153
|
+
}
|
|
154
|
+
@if $list-style-type-inherit {
|
|
155
|
+
@include list-style-type(inherit);
|
|
156
|
+
}
|
|
157
|
+
@if $list-style-type-katakana {
|
|
158
|
+
@include list-style-type(katakana);
|
|
159
|
+
}
|
|
160
|
+
@if $list-style-type-katakana-iroha {
|
|
161
|
+
@include list-style-type(katakana-iroha);
|
|
162
|
+
}
|
|
163
|
+
@if $list-style-type-lower-alpha {
|
|
164
|
+
@include list-style-type(lower-alpha);
|
|
165
|
+
}
|
|
166
|
+
@if $list-style-type-lower-greek {
|
|
167
|
+
@include list-style-type(lower-greek);
|
|
168
|
+
}
|
|
169
|
+
@if $list-style-type-lower-latin {
|
|
170
|
+
@include list-style-type(lower-latin);
|
|
171
|
+
}
|
|
172
|
+
@if $list-style-type-lower-roman {
|
|
173
|
+
@include list-style-type(lower-roman);
|
|
174
|
+
}
|
|
175
|
+
@if $list-style-type-none {
|
|
176
|
+
@include list-style-type(none);
|
|
177
|
+
}
|
|
178
|
+
@if $list-style-type-square {
|
|
179
|
+
@include list-style-type(square);
|
|
180
|
+
}
|
|
181
|
+
@if $list-style-type-upper-alpha {
|
|
182
|
+
@include list-style-type(upper-alpha);
|
|
183
|
+
}
|
|
184
|
+
@if $list-style-type-upper-latin {
|
|
185
|
+
@include list-style-type(upper-latin);
|
|
186
|
+
}
|
|
187
|
+
@if $list-style-type-upper-roman {
|
|
188
|
+
@include list-style-type(upper-roman);
|
|
189
|
+
}
|