| 1 |
/** |
| 2 |
* Editor Styles |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
|
| 6 |
.editor-styles-wrapper { |
| 7 |
/** |
| 8 |
* Reset default offsets. |
| 9 |
*/ |
| 10 |
.is-style-none, |
| 11 |
.is-style-styled, |
| 12 |
.is-style-icon { |
| 13 |
&, |
| 14 |
ol, |
| 15 |
ul { |
| 16 |
padding-left: 0; |
| 17 |
list-style: none; |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
.is-style-styled, |
| 22 |
.is-style-icon { |
| 23 |
ol, |
| 24 |
ul { |
| 25 |
margin-left: 0; |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* Styled. |
| 31 |
*/ |
| 32 |
ol.is-style-styled, |
| 33 |
ul.is-style-styled { |
| 34 |
line-height: var(--gkt-styled-lists__line-height); |
| 35 |
|
| 36 |
li { |
| 37 |
margin-left: 0; |
| 38 |
list-style: none; |
| 39 |
|
| 40 |
> ul, |
| 41 |
> ol { |
| 42 |
width: 100%; |
| 43 |
margin: var(--gkt-styled-lists--inner-lists__padding-v) var(--gkt-styled-lists--inner-lists__padding-h); |
| 44 |
} |
| 45 |
|
| 46 |
+ li { |
| 47 |
margin-top: var(--gkt-styled-lists--items__gap); |
| 48 |
} |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
ol.is-style-styled, |
| 53 |
.is-style-styled ol { |
| 54 |
counter-reset: li; |
| 55 |
|
| 56 |
> li { |
| 57 |
position: relative; |
| 58 |
padding-left: var(--gkt-styled-lists-numbered__padding-left); |
| 59 |
|
| 60 |
&::before { |
| 61 |
position: absolute; |
| 62 |
top: var(--gkt-styled-lists-numbered--decoration__top); |
| 63 |
left: var(--gkt-styled-lists-numbered--decoration__left); |
| 64 |
display: flex; |
| 65 |
flex: 0 0 var(--gkt-styled-lists-numbered--decoration__width); |
| 66 |
align-items: center; |
| 67 |
align-self: flex-start; |
| 68 |
justify-content: center; |
| 69 |
width: var(--gkt-styled-lists-numbered--decoration__width); |
| 70 |
height: var(--gkt-styled-lists-numbered--decoration__height); |
| 71 |
font-size: var(--gkt-styled-lists-numbered--decoration__font-size); |
| 72 |
font-weight: var(--gkt-styled-lists-numbered--decoration__font-weight); |
| 73 |
line-height: var(--gkt-styled-lists-numbered--decoration__line-height); |
| 74 |
color: var(--gkt-styled-lists-numbered--decoration__color); |
| 75 |
content: counter(li); |
| 76 |
counter-increment: li; |
| 77 |
background-color: var(--gkt-styled-lists-numbered--decoration__background-color); |
| 78 |
border-radius: var(--gkt-styled-lists-numbered--decoration__border-radius); |
| 79 |
} |
| 80 |
} |
| 81 |
|
| 82 |
// reversed |
| 83 |
&[reversed]] > li::before { |
| 84 |
counter-increment: li -1; |
| 85 |
} |
| 86 |
} |
| 87 |
|
| 88 |
ul.is-style-styled, |
| 89 |
.is-style-styled ul { |
| 90 |
> li { |
| 91 |
position: relative; |
| 92 |
padding-left: var(--gkt-styled-lists-dotted__padding-left); |
| 93 |
|
| 94 |
&::before { |
| 95 |
position: absolute; |
| 96 |
top: var(--gkt-styled-lists-dotted--decoration__top); |
| 97 |
left: var(--gkt-styled-lists-dotted--decoration__left); |
| 98 |
width: var(--gkt-styled-lists-dotted--decoration__width); |
| 99 |
height: var(--gkt-styled-lists-dotted--decoration__height); |
| 100 |
content: ""; |
| 101 |
background-color: var(--gkt-styled-lists-dotted--decoration__background-color); |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
/** |
| 107 |
* Icon. |
| 108 |
*/ |
| 109 |
ul.is-style-icon, |
| 110 |
ol.is-style-icon { |
| 111 |
line-height: var(--gkt-icon-lists--items__line-height); |
| 112 |
|
| 113 |
li { |
| 114 |
position: relative; |
| 115 |
padding-left: var(--gkt-icon-lists--items__padding-left); |
| 116 |
margin-left: 0; |
| 117 |
list-style: none; |
| 118 |
|
| 119 |
&::before { |
| 120 |
position: absolute; |
| 121 |
top: var(--gkt-icon-lists--decoration__top); |
| 122 |
left: var(--gkt-icon-lists--decoration__left); |
| 123 |
flex: 0 0 var(--gkt-icon-lists--decoration__width); |
| 124 |
width: var(--gkt-icon-lists--decoration__width); |
| 125 |
height: var(--gkt-icon-lists--decoration__height); |
| 126 |
content: ""; |
| 127 |
background-color: var(--gkt-icon-lists--decoration__color); |
| 128 |
mask-image: var(--gkt-icon-lists--decoration); |
| 129 |
mask-position: 50%; |
| 130 |
mask-repeat: no-repeat; |
| 131 |
mask-size: 100%; |
| 132 |
} |
| 133 |
|
| 134 |
> ul, |
| 135 |
> ol { |
| 136 |
width: 100%; |
| 137 |
margin: var(--gkt-icon-lists--inner-lists__padding-v) var(--gkt-icon-lists--inner-lists__padding-h); |
| 138 |
} |
| 139 |
|
| 140 |
+ li { |
| 141 |
margin-top: var(--gkt-icon-lists--items__gap); |
| 142 |
} |
| 143 |
} |
| 144 |
} |
| 145 |
|
| 146 |
/** |
| 147 |
* Columns. |
| 148 |
*/ |
| 149 |
$list_columns_max: 6 !default; |
| 150 |
@each $breakpoint in map-keys($grid-breakpoints) { |
| 151 |
@include media-breakpoint-down($breakpoint) { |
| 152 |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); |
| 153 |
|
| 154 |
@for $i from 1 through $list_columns_max { |
| 155 |
.ghostkit-list-columns#{$infix}-#{ $i } $i } { |
| 156 |
column-count: $i; |
| 157 |
} |
| 158 |
} |
| 159 |
} |
| 160 |
} |
| 161 |
} |
| 162 |
|