PluginProbe
Code Snippets / 3.10.0
Code Snippets v3.10.0
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / css / common / _modal.scss

_modal.scss in Code Snippets 3.10.0, at css/common/_modal.scss

170 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .code-snippets-modal {
2 .components-modal__header {
3 padding-block-end: 24px;
4 }
5
6 .components-modal__content {
7 padding: 0;
8 display: flex;
9 flex-flow: column;
10 background: #f6f7f7;
11 overflow: initial;
12 max-inline-size: 100%;
13 }
14
15 .modal-content {
16 flex: 1;
17 padding-block: 36px;
18 padding-inline: 45px;
19 display: flex;
20 flex-flow: column;
21 }
22
23 .components-modal__header + div {
24 display: flex;
25 flex-flow: column;
26 flex: 1;
27 overflow-y: auto;
28 }
29
30 .modal-footer {
31 border-block-start: 1px solid #e2e2e4;
32 display: flex;
33 flex-flow: row-reverse;
34 justify-content: space-between;
35 align-items: center;
36 inset-block-end: 0;
37 background: #f6f7f7;
38 inline-size: 100%;
39 padding: 11px 19px;
40
41 .button-link {
42 text-decoration: none;
43 }
44
45 .button-large {
46 block-size: 45px;
47
48 &.button-primary {
49 padding: 0 30px;
50 }
51 }
52 }
53 }
54
55 .components-modal__frame.code-snippets-preview-modal {
56 min-inline-size: 520px;
57 min-block-size: 240px;
58 inline-size: min(900px, 90vw);
59 max-block-size: 85vh;
60
61 @media (width <= 600px) {
62 min-inline-size: 90vw;
63 }
64
65 .components-modal__header {
66 border-block-end-color: #ddd;
67 }
68
69 .code-snippets-preview-modal__badge {
70 display: flex;
71 flex-shrink: 0;
72 margin-inline-end: 8px;
73 }
74
75 // Header and footer stay pinned; the CodeMirror editor is the only
76 // scroll region, scrolling long code both vertically and horizontally.
77 .components-modal__content {
78 display: flex;
79 flex-flow: column;
80 min-block-size: 0;
81 padding: 0;
82 overflow: hidden;
83 }
84
85 // Newer Modal versions wrap children in an unstyled focus container.
86 .components-modal__header + div {
87 display: flex;
88 flex-flow: column;
89 flex: 1;
90 min-block-size: 0;
91 overflow: hidden;
92 }
93
94 .code-snippets-preview-modal__editor {
95 display: flex;
96 flex-flow: column;
97 flex: 1;
98 min-block-size: 0;
99
100 .CodeMirror {
101 flex: 1;
102 min-block-size: 0;
103 block-size: 100%;
104 }
105
106 textarea {
107 flex: 1;
108 min-block-size: 0;
109 inline-size: 100%;
110 resize: none;
111 font-family: monospace;
112 }
113 }
114
115 .code-snippets-preview-modal__footer {
116 display: flex;
117 align-items: center;
118 justify-content: space-between;
119 flex-shrink: 0;
120 gap: 16px;
121 padding: 11px 19px;
122 border-block-start: 1px solid #e2e2e4;
123 background: #f6f7f7;
124 }
125
126 .code-snippets-preview-modal__priority {
127 display: flex;
128 align-items: center;
129 gap: 8px;
130 font-size: 14px;
131 color: #646970;
132
133 .code-snippets-preview-modal__priority-value {
134 font-weight: 600;
135 color: #2c3337;
136 }
137 }
138
139 .code-snippets-preview-modal__buttons {
140 display: flex;
141 align-items: center;
142 gap: 8px;
143
144 .button {
145 border-radius: 5px;
146 font-size: 14px;
147 }
148
149 .button-link.code-snippets-preview-modal__trash {
150 min-block-size: 38px;
151 padding-block: 0;
152 padding-inline: 16px;
153 border: 1px solid #b32d2e;
154 border-radius: 5px;
155 background: #f6f7f7;
156 line-height: 2.5715;
157 font-weight: 400;
158 color: #b32d2e;
159 text-decoration: none;
160
161 &:hover,
162 &:focus {
163 border-color: #d63638;
164 background: #f0f0f1;
165 color: #d63638;
166 }
167 }
168 }
169 }
170