| 1 |
/* ========================================================================== |
| 2 |
#EDITOR STYLES GRID |
| 3 |
========================================================================== */ |
| 4 |
/* Grid Layout |
| 5 |
========================================================================== */ |
| 6 |
.gridable { |
| 7 |
margin-left: -1em; |
| 8 |
margin-right: -1em; } |
| 9 |
.gridable, .gridable *, .gridable *:before, .gridable *:after { |
| 10 |
box-sizing: border-box; } |
| 11 |
|
| 12 |
/** |
| 13 |
* Grid Row |
| 14 |
*/ |
| 15 |
.row { |
| 16 |
display: flex; |
| 17 |
flex-flow: row wrap; |
| 18 |
justify-content: space-between; |
| 19 |
-webkit-touch-callout: none; |
| 20 |
-webkit-user-select: none; |
| 21 |
-moz-user-select: none; |
| 22 |
-ms-user-select: none; |
| 23 |
user-select: none; } |
| 24 |
|
| 25 |
/** |
| 26 |
* Grid Columns |
| 27 |
*/ |
| 28 |
.col { |
| 29 |
flex: 0 0 100%; |
| 30 |
max-width: 100%; |
| 31 |
max-width: 100%; } |
| 32 |
|
| 33 |
/** |
| 34 |
* Grid Columns |
| 35 |
*/ |
| 36 |
[data-sh-column-attr-size='1'] { |
| 37 |
flex-basis: calc(8.33333%); |
| 38 |
width: 8.33333%; } |
| 39 |
|
| 40 |
[data-sh-column-attr-size='2'] { |
| 41 |
flex-basis: calc(16.66667%); |
| 42 |
width: 16.66667%; } |
| 43 |
|
| 44 |
[data-sh-column-attr-size='3'] { |
| 45 |
flex-basis: calc(25%); |
| 46 |
width: 25%; } |
| 47 |
|
| 48 |
[data-sh-column-attr-size='4'] { |
| 49 |
flex-basis: calc(33.33333%); |
| 50 |
width: 33.33333%; } |
| 51 |
|
| 52 |
[data-sh-column-attr-size='5'] { |
| 53 |
flex-basis: calc(41.66667%); |
| 54 |
width: 41.66667%; } |
| 55 |
|
| 56 |
[data-sh-column-attr-size='6'] { |
| 57 |
flex-basis: calc(50%); |
| 58 |
width: 50%; } |
| 59 |
|
| 60 |
[data-sh-column-attr-size='7'] { |
| 61 |
flex-basis: calc(58.33333%); |
| 62 |
width: 58.33333%; } |
| 63 |
|
| 64 |
[data-sh-column-attr-size='8'] { |
| 65 |
flex-basis: calc(66.66667%); |
| 66 |
width: 66.66667%; } |
| 67 |
|
| 68 |
[data-sh-column-attr-size='9'] { |
| 69 |
flex-basis: calc(75%); |
| 70 |
width: 75%; } |
| 71 |
|
| 72 |
[data-sh-column-attr-size='10'] { |
| 73 |
flex-basis: calc(83.33333%); |
| 74 |
width: 83.33333%; } |
| 75 |
|
| 76 |
[data-sh-column-attr-size='11'] { |
| 77 |
flex-basis: calc(91.66667%); |
| 78 |
width: 91.66667%; } |
| 79 |
|
| 80 |
[data-sh-column-attr-size='12'] { |
| 81 |
flex-basis: calc(100%); |
| 82 |
width: 100%; } |
| 83 |
|
| 84 |
/* UI Interactions |
| 85 |
========================================================================== */ |
| 86 |
.row:after { |
| 87 |
content: "..."; |
| 88 |
display: block; |
| 89 |
color: #86909B; |
| 90 |
font-size: 25px; |
| 91 |
font-weight: bold; |
| 92 |
font-family: initial; |
| 93 |
position: absolute; |
| 94 |
left: -15px; |
| 95 |
top: 50%; |
| 96 |
margin-top: -15px; |
| 97 |
-webkit-transform: rotate(90deg); |
| 98 |
transform: rotate(90deg); |
| 99 |
opacity: 0; |
| 100 |
transition: opacity .2s; } |
| 101 |
|
| 102 |
.row > .col { |
| 103 |
position: relative; |
| 104 |
display: inline-block; |
| 105 |
padding: 1em; |
| 106 |
-webkit-touch-callout: none; |
| 107 |
-webkit-user-select: none; |
| 108 |
-moz-user-select: none; |
| 109 |
-ms-user-select: none; |
| 110 |
user-select: none; |
| 111 |
transition: all .2s ease-out; } |
| 112 |
.row > .col * { |
| 113 |
-webkit-user-select: text; |
| 114 |
/* Chrome 49+ */ |
| 115 |
-moz-user-select: text; |
| 116 |
/* Firefox 43+ */ |
| 117 |
-ms-user-select: text; |
| 118 |
/* No support yet */ |
| 119 |
user-select: text; |
| 120 |
/* Likely future */ } |
| 121 |
.row > .col:first-child { |
| 122 |
border-left: 0; } |
| 123 |
.row > .col img { |
| 124 |
margin-left: 0; |
| 125 |
margin-right: 0; |
| 126 |
max-width: 100%; } |
| 127 |
|
| 128 |
.row:hover:after { |
| 129 |
opacity: 1; |
| 130 |
cursor: pointer; } |
| 131 |
|
| 132 |
.grid__item:not(:first-of-type):before { |
| 133 |
content: " "; |
| 134 |
display: block; |
| 135 |
cursor: col-resize; |
| 136 |
top: 0; |
| 137 |
position: absolute; |
| 138 |
opacity: 0; |
| 139 |
bottom: 0; |
| 140 |
left: -20px; |
| 141 |
z-index: 9999; |
| 142 |
width: 40px; } |
| 143 |
|
| 144 |
.gridable__content { |
| 145 |
overflow: hidden; } |
| 146 |
|
| 147 |
.gridable.grabbing { |
| 148 |
/* autoprefixer: off */ } |
| 149 |
.gridable.grabbing, |
| 150 |
.gridable.grabbing * { |
| 151 |
cursor: move; } |
| 152 |
.gridable.grabbing .grid__item:not(:first-of-type):before { |
| 153 |
cursor: move; } |
| 154 |
|
| 155 |
.no_select { |
| 156 |
-webkit-touch-callout: none; |
| 157 |
-webkit-user-select: none; |
| 158 |
-moz-user-select: none; |
| 159 |
-ms-user-select: none; |
| 160 |
user-select: none; } |
| 161 |
|
| 162 |
.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { |
| 163 |
outline-color: #E0E5E9; } |
| 164 |
|
| 165 |
.mce-content-body *[contentEditable=false][data-mce-selected] { |
| 166 |
outline-color: #E0E5E9; } |
| 167 |
|
| 168 |
.mce-content-body .row[contentEditable=false] { |
| 169 |
position: relative; |
| 170 |
transition: box-shadow .2s ease-out; } |
| 171 |
.mce-content-body .row[contentEditable=false] .col[contentEditable=true]:hover { |
| 172 |
outline: none; |
| 173 |
box-shadow: inset 9px 0px 0px -7px #E0E5E9; } |
| 174 |
.mce-content-body .row[contentEditable=false] .col[contentEditable=true]:focus { |
| 175 |
outline: none; |
| 176 |
box-shadow: inset 0px 0px 0px 2px #E0E5E9; } |
| 177 |
.mce-content-body .row[contentEditable=false][data-mce-selected] { |
| 178 |
outline: none; |
| 179 |
box-shadow: inset 0px 0px 0px 2px #E0E5E9; } |
| 180 |
.mce-content-body .row[contentEditable=false][data-mce-selected]:after { |
| 181 |
display: none; } |
| 182 |
|
| 183 |
/* Rows and Columns Style Variants. |
| 184 |
========================================================================== */ |
| 185 |
[data-sh-row-attr-row_style=boxed] { |
| 186 |
padding: 20px; |
| 187 |
background-color: #222222; } |
| 188 |
|
| 189 |
.row .grid__item[data-sh-column-attr-column_style=boxed] { |
| 190 |
padding: 20px; |
| 191 |
background-color: #222222; } |
| 192 |
.row .grid__item[data-sh-column-attr-column_style=boxed] * { |
| 193 |
color: white; } |
| 194 |
|