PluginProbe
Code Snippets / 4.0.0-beta.1
Code Snippets v4.0.0-beta.1
4.0.0-beta.2 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 All 65 releases
code-snippets / css / edit / _form.scss

_form.scss in Code Snippets 4.0.0-beta.1, at css/edit/_form.scss

107 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use '../common/theme';
2
3 $sidebar-width: 321px;
4 $sidebar-gap: 30px;
5
6 .snippet-form #titlediv #title,
7 .snippet-type-container {
8 border-color: #ccc;
9 block-size: 45px
10 }
11
12 .snippet-type-option {
13 display: flex;
14 align-items: center;
15 justify-content: space-between;
16 flex-flow: row;
17 gap: 2em;
18
19 .small-badge {
20 margin-inline-start: 0.5em;
21 }
22 }
23
24
25 .conditions-editor-open {
26 .button.button-large {
27 block-size: 100%;
28 display: flex;
29 align-items: center;
30 gap: 8px;
31 flex: 1;
32 border-color: #ccc;
33 padding-block: 6px;
34 padding-inline: 12px;
35 }
36
37 &.no-condition .cond-badge {
38 background: transparent;
39 color: inherit;
40 border: 1px solid currentcolor;
41 }
42
43 &.no-condition:hover :not([disabled]) .cond-badge {
44 color: #fff;
45 background: theme.$accent;
46 border-color: theme.$accent;
47 }
48 }
49
50 .snippet-form {
51 margin-block-start: 10px;
52 display: grid;
53 gap: $sidebar-gap;
54 grid-template-columns: 1fr $sidebar-width;
55 grid-template-areas: 'upper sidebar' 'lower sidebar';
56 transition: all 700ms;
57
58 @media (prefers-reduced-motion: reduce) {
59 transition-duration: 0.01s;
60 }
61
62 &.snippet-form-expanded {
63 grid-template-areas: 'upper upper' 'lower sidebar';
64 }
65
66 .snippet-form-upper {
67 grid-area: upper;
68 }
69
70 .snippet-form-lower {
71 grid-area: lower;
72 }
73
74 .snippet-form-upper,
75 .snippet-form-lower {
76 display: flex;
77 flex-flow: column;
78 gap: 24px;
79 }
80
81 .snippet-editor-sidebar {
82 grid-area: span 3 / sidebar;
83 max-inline-size: $sidebar-width;
84 position: sticky;
85 inset-block-start: 32px;
86 align-self: start;
87 }
88
89 @media (width <= 1024px) {
90 grid-template-columns: 1fr;
91 }
92
93 h2, h3 {
94 margin-block: 25px 15px;
95 margin-inline: 0;
96 font-size: 1.16em;
97
98 label {
99 cursor: auto;
100 }
101
102 .button {
103 font-weight: normal;
104 }
105 }
106 }
107