PluginProbe
Gridable / 1.2.0
Gridable v1.2.0
1.2.12 1.2.11 trunk 0.1.0 0.5.0 1.0.0 1.1.0 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9
gridable / admin / css / editor-style.css

editor-style.css in Gridable 1.2.0, at admin/css/editor-style.css

68 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========================================================================== #EDITOR STYLES GRID ========================================================================== */
2 /* Grid Layout ========================================================================== */
3 .gridable { margin-left: -1em; margin-right: -1em; }
4 .gridable, .gridable *, .gridable *:before, .gridable *:after { box-sizing: border-box; }
5
6 /** Grid Row */
7 .row { display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; -ms-flex-pack: justify; justify-content: space-between; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
8
9 /** Grid Columns */
10 .col { -ms-flex: 0 0 100%; flex: 0 0 100%; max-width: 100%; max-width: 100%; }
11
12 /** Grid Columns */
13 [data-sh-column-attr-size='1'] { -ms-flex-preferred-size: calc(8.33333%); flex-basis: calc(8.33333%); width: 8.33333%; }
14
15 [data-sh-column-attr-size='2'] { -ms-flex-preferred-size: calc(16.66667%); flex-basis: calc(16.66667%); width: 16.66667%; }
16
17 [data-sh-column-attr-size='3'] { -ms-flex-preferred-size: calc(25%); flex-basis: calc(25%); width: 25%; }
18
19 [data-sh-column-attr-size='4'] { -ms-flex-preferred-size: calc(33.33333%); flex-basis: calc(33.33333%); width: 33.33333%; }
20
21 [data-sh-column-attr-size='5'] { -ms-flex-preferred-size: calc(41.66667%); flex-basis: calc(41.66667%); width: 41.66667%; }
22
23 [data-sh-column-attr-size='6'] { -ms-flex-preferred-size: calc(50%); flex-basis: calc(50%); width: 50%; }
24
25 [data-sh-column-attr-size='7'] { -ms-flex-preferred-size: calc(58.33333%); flex-basis: calc(58.33333%); width: 58.33333%; }
26
27 [data-sh-column-attr-size='8'] { -ms-flex-preferred-size: calc(66.66667%); flex-basis: calc(66.66667%); width: 66.66667%; }
28
29 [data-sh-column-attr-size='9'] { -ms-flex-preferred-size: calc(75%); flex-basis: calc(75%); width: 75%; }
30
31 [data-sh-column-attr-size='10'] { -ms-flex-preferred-size: calc(83.33333%); flex-basis: calc(83.33333%); width: 83.33333%; }
32
33 [data-sh-column-attr-size='11'] { -ms-flex-preferred-size: calc(91.66667%); flex-basis: calc(91.66667%); width: 91.66667%; }
34
35 [data-sh-column-attr-size='12'] { -ms-flex-preferred-size: calc(100%); flex-basis: calc(100%); width: 100%; }
36
37 /* UI Interactions ========================================================================== */
38 .row:after { content: "..."; display: block; color: #86909B; font-size: 25px; font-weight: bold; font-family: initial; position: absolute; left: -15px; top: 50%; margin-top: -15px; -webkit-transform: rotate(90deg); transform: rotate(90deg); opacity: 0; transition: opacity .2s; }
39 .row > .col { position: relative; display: inline-block; padding: 1em; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; transition: all .2s ease-out; }
40 .row > .col * { -webkit-user-select: text; /* Chrome 49+ */ -moz-user-select: text; /* Firefox 43+ */ -ms-user-select: text; /* No support yet */ user-select: text; /* Likely future */ }
41 .row > .col:first-child { border-left: 0; }
42 .row > .col img { margin-left: 0; margin-right: 0; max-width: 100%; }
43 .row:hover:after { opacity: 1; cursor: pointer; }
44
45 .grid__item:not(:first-of-type):before { content: "resize"; display: block; cursor: col-resize; top: 0; position: absolute; opacity: 0; bottom: 0; left: -20px; z-index: 9999; width: 40px; }
46
47 .gridable__content { overflow: hidden; }
48
49 .gridable.grabbing { /* autoprefixer: off */ }
50 .gridable.grabbing, .gridable.grabbing * { cursor: move; }
51 .gridable.grabbing .grid__item:not(:first-of-type):before { cursor: move; }
52
53 .no_select { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
54
55 .mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { outline-color: #E0E5E9; }
56 .mce-content-body *[contentEditable=false][data-mce-selected] { outline-color: #E0E5E9; }
57 .mce-content-body .row[contentEditable=false] { position: relative; transition: box-shadow .2s ease-out; }
58 .mce-content-body .row[contentEditable=false] .col[contentEditable=true]:hover { outline: none; box-shadow: inset 9px 0px 0px -7px #E0E5E9; }
59 .mce-content-body .row[contentEditable=false] .col[contentEditable=true]:focus { outline: none; box-shadow: inset 0px 0px 0px 2px #E0E5E9; }
60 .mce-content-body .row[contentEditable=false][data-mce-selected] { outline: none; box-shadow: inset 0px 0px 0px 2px #E0E5E9; }
61 .mce-content-body .row[contentEditable=false][data-mce-selected]:after { display: none; }
62
63 /* Rows and Columns Style Variants. ========================================================================== */
64 [data-sh-row-attr-row_style=boxed] { padding: 20px; background-color: #222222; }
65
66 .row .grid__item[data-sh-column-attr-column_style=boxed] { padding: 20px; background-color: #222222; }
67 .row .grid__item[data-sh-column-attr-column_style=boxed] * { color: white; }
68