PluginProbe
Code Snippets / 3.6.3
Code Snippets v3.6.3
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 / edit.scss

edit.scss in Code Snippets 3.6.3, at css/edit.scss

157 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @import '../node_modules/@jcubic/tagger/tagger.css';
2 @import 'common/editor';
3 @import 'common/type-badges';
4
5 /**
6 * Custom styling for the single snippet admin page
7 */
8
9 .form-table th {
10 width: auto;
11 }
12
13 .notice.error blockquote {
14 margin-bottom: 0;
15 }
16
17 h2 {
18 /* Provide some decent space between the fields and titles. */
19 margin: 25px 0 15px;
20
21 label {
22 cursor: auto;
23 }
24 }
25
26 h2:first-of-type, .submit-inline {
27 margin: 20px 0 10px;
28 }
29
30 .saved-snippet {
31 &.inactive-snippet, &.active-snippet {
32 #title {
33 border-left-width: 4px;
34 }
35 }
36
37 &.active-snippet #title {
38 border-left-color: #46b450;
39 }
40
41 &.inactive-snippet #title {
42 border-left-color: #bbb;
43 }
44
45 &.erroneous-snippet #title {
46 border-left-color: #dc3232;
47 }
48 }
49
50 #snippet-form {
51 margin-top: 10px;
52
53 #snippet-tags, textarea {
54 width: 100%;
55 font-family: monospace;
56 }
57 }
58
59 /* Position the description heading on the same level as the editor buttons */
60 label[for='snippet_description']='snippet_description'] h3 div {
61 position: absolute;
62 }
63
64 /* Add spacing in between the action buttons */
65 .button + .button,
66 .generate-button + .button {
67 margin-left: .5em;
68 }
69
70 h2 .button {
71 font-weight: normal;
72 }
73
74 .button svg {
75 height: 1rem;
76 vertical-align: middle;
77 line-height: 1;
78 margin: -2px 3px 0 0;
79 }
80
81 .submit, .submit-inline {
82 display: flex;
83 }
84
85 .submit-inline {
86 float: right;
87 margin-bottom: 0;
88 }
89
90 p.snippet-scope, .snippet-scope p {
91 margin-top: 15px;
92 }
93
94 .snippet-description-container {
95 margin-top: 25px;
96
97 .wp-editor-tools {
98 padding-top: 5px;
99 }
100
101 .wp-editor-tabs {
102 float: left;
103 }
104 }
105
106 .snippet-scope label,
107 .html-shortcode-options strong {
108 display: inline-block;
109 margin-right: 1.5em;
110 }
111
112 .below-snippet-editor {
113 display: flex;
114 flex-flow: row wrap;
115 justify-content: space-between;
116 padding-top: 1px;
117 }
118
119 .snippet-priority {
120 label {
121 font-weight: bold;
122 cursor: help;
123 font-size: 1.1em;
124 padding-right: 0.5em;
125 }
126
127 input {
128 width: 4em;
129 }
130 }
131
132 .snippet-editor {
133 position: relative;
134 }
135
136 .CodeMirror {
137 width: 100%;
138 }
139
140 .wrap h2.nav-tab-wrapper {
141 border-bottom: none;
142 }
143
144 .code-snippets-copy-text {
145 color: inherit;
146 }
147
148 .wrap .notice {
149 scroll-margin: 0.75em;
150 }
151
152 @import 'edit/tooltips';
153 @import 'edit/types';
154 @import 'edit/tags';
155 @import 'edit/upgrade-dialog';
156 @import 'edit/gpt';
157