PluginProbe
Code Snippets / 3.4.1
Code Snippets v3.4.1
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.4.1, at css/edit.scss

140 lines 1.9 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 'editor';
3 @import '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 0;
20
21 &:first-of-type {
22 margin-top: 20px;
23 }
24
25 label {
26 cursor: auto;
27 }
28 }
29
30 .saved-snippet {
31 &.inactive-snippet, &.active-snippet {
32 #title {
33 border-right-width: 4px;
34 }
35 }
36
37 &.active-snippet #title {
38 border-right-color: #46b450;
39 }
40
41 &.inactive-snippet #title {
42 border-right-color: #bbb;
43 }
44
45 &.erroneous-snippet #title {
46 border-right-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 margin-left: .5em;
67 }
68
69 .submit, .submit-inline {
70 display: flex;
71 }
72
73 .submit-inline {
74 float: right;
75 }
76
77 p.snippet-scope, .snippet-scope p {
78 margin-top: 15px;
79 }
80
81 .snippet-description-container {
82 margin-top: 25px;
83
84 > h2 {
85 float: left;
86 margin: 0;
87 }
88
89 .wp-editor-tools {
90 padding-top: 5px;
91 }
92 }
93
94 .snippet-scope label,
95 .html-shortcode-options strong {
96 display: inline-block;
97 margin-right: 1.5em;
98 }
99
100 .below-snippet-editor {
101 display: flex;
102 flex-flow: row wrap;
103 justify-content: space-between;
104 padding-top: 1px;
105 }
106
107 .snippet-priority {
108 label {
109 font-weight: bold;
110 cursor: help;
111 font-size: 1.1em;
112 padding-right: 0.5em;
113 }
114
115 input {
116 width: 4em;
117 }
118 }
119
120 .snippet-editor {
121 position: relative;
122 }
123
124 .CodeMirror {
125 width: 100%;
126 }
127
128 .wrap h2.nav-tab-wrapper {
129 border-bottom: none;
130 }
131
132 .code-snippets-copy-text {
133 color: inherit;
134 }
135
136 @import 'edit/tooltips';
137 @import 'edit/types';
138 @import 'edit/tags';
139 @import 'edit/upgrade-dialog';
140