Debian Codegraph @

docs/static/css/topic-generator.css

raw
1 /* Topic name generator (Publishing page) */
2 /* Styled to mirror the config generator (header + left form / right output panels). */
3
4 .tg-generator {
5 margin: 16px 0 24px;
6 border: 1px solid #ddd;
7 border-radius: 10px;
8 background: #fff;
9 overflow: hidden;
10 font-size: 0.78rem;
11 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
12 }
13
14 /* Header (matches .cg-modal-header) */
15 .tg-header {
16 display: flex;
17 align-items: center;
18 justify-content: space-between;
19 padding: 10px 16px;
20 border-bottom: 1px solid #ddd;
21 }
22
23 .tg-title {
24 font-weight: 600;
25 font-size: 0.9rem;
26 }
27
28 .tg-reset {
29 background: none;
30 border: 1px solid #ccc;
31 border-radius: 4px;
32 font-size: 0.72rem;
33 color: #777;
34 cursor: pointer;
35 padding: 4px 12px;
36 font-family: inherit;
37 transition: color 0.15s, border-color 0.15s;
38 }
39
40 .tg-reset:hover {
41 color: #333;
42 border-color: #999;
43 }
44
45 /* Body: left (form) + right (output), matches .cg-modal-body */
46 .tg-body {
47 display: flex;
48 min-height: 0;
49 }
50
51 .tg-left {
52 flex: 1;
53 border-right: 1px solid #ddd;
54 padding: 16px 18px;
55 min-width: 0;
56 }
57
58 .tg-right {
59 flex: 1;
60 padding: 16px 18px;
61 display: flex;
62 flex-direction: column;
63 gap: 4px;
64 min-width: 0;
65 }
66
67 /* One output per block: label on its own line, then value field + copy button */
68 .tg-output-row {
69 display: flex;
70 flex-direction: column;
71 min-width: 0;
72 }
73
74 .tg-output-line {
75 display: flex;
76 align-items: center;
77 gap: 8px;
78 min-width: 0;
79 }
80
81 /* Form field (matches .cg-field) */
82 .tg-field > label {
83 display: block;
84 font-weight: 500;
85 margin-bottom: 4px;
86 font-size: 0.78rem;
87 color: #555;
88 }
89
90 .tg-field input[type="text"] {
91 width: 100%;
92 padding: 6px 8px;
93 border: 1px solid #ccc;
94 border-radius: 4px;
95 font-size: 0.78rem;
96 font-family: inherit;
97 box-sizing: border-box;
98 background: #fff;
99 }
100
101 .tg-field input[type="text"]:focus {
102 border-color: var(--md-primary-fg-color);
103 outline: none;
104 box-shadow: 0 0 0 2px rgba(51, 133, 116, 0.15);
105 }
106
107 .tg-note {
108 margin-top: 10px;
109 font-size: 0.72rem;
110 color: #999;
111 line-height: 1.5;
112 }
113
114 .tg-note code {
115 font-size: 0.72rem;
116 padding: 1px 4px;
117 }
118
119 .tg-output-label {
120 margin-bottom: 4px;
121 white-space: nowrap;
122 font-weight: 500;
123 font-size: 0.78rem;
124 color: #555;
125 }
126
127 /* Copy button (matches .cg-btn-copy) */
128 .tg-btn-copy {
129 background: none;
130 color: #777;
131 border: none;
132 padding: 2px 4px;
133 cursor: pointer;
134 line-height: 1;
135 display: flex;
136 align-items: center;
137 justify-content: center;
138 transition: color 0.15s;
139 }
140
141 .tg-btn-copy:hover {
142 color: #333;
143 }
144
145 /* Output block (matches .cg-output-wrap pre). Scoped under .tg-generator so the margin
146 reset beats the theme's .md-typeset pre rule, which otherwise adds a stray top margin. */
147 .tg-generator .tg-output {
148 flex: 1;
149 min-width: 0;
150 margin: 0;
151 padding: 6px 9px;
152 background: #f5f5f5;
153 color: var(--md-default-fg-color);
154 border: 1px solid #ddd;
155 border-radius: 6px;
156 overflow-x: auto;
157 font-family: var(--md-code-font-family, monospace);
158 font-size: 0.72rem;
159 line-height: 1.5;
160 white-space: pre-wrap;
161 word-break: break-all;
162 overflow-wrap: anywhere;
163 }
164
165 /* Dark mode */
166 body[data-md-color-scheme="slate"] .tg-generator {
167 background: #1e1e2e;
168 border-color: #444;
169 }
170
171 body[data-md-color-scheme="slate"] .tg-header {
172 border-bottom-color: #444;
173 }
174
175 body[data-md-color-scheme="slate"] .tg-title {
176 color: #ddd;
177 }
178
179 body[data-md-color-scheme="slate"] .tg-reset {
180 border-color: #555;
181 color: #888;
182 }
183
184 body[data-md-color-scheme="slate"] .tg-reset:hover {
185 border-color: #888;
186 color: #ddd;
187 }
188
189 body[data-md-color-scheme="slate"] .tg-left {
190 border-right-color: #444;
191 }
192
193 body[data-md-color-scheme="slate"] .tg-field > label,
194 body[data-md-color-scheme="slate"] .tg-output-label {
195 color: #aaa;
196 }
197
198 body[data-md-color-scheme="slate"] .tg-btn-copy {
199 color: #888;
200 }
201
202 body[data-md-color-scheme="slate"] .tg-btn-copy:hover {
203 color: #bbb;
204 }
205
206 body[data-md-color-scheme="slate"] .tg-field input[type="text"] {
207 background: #2a2a3a;
208 border-color: #555;
209 color: #ddd;
210 }
211
212 body[data-md-color-scheme="slate"] .tg-note {
213 color: #777;
214 }
215
216 body[data-md-color-scheme="slate"] .tg-output {
217 background: #161620;
218 border-color: #444;
219 }
220
221 /* Responsive: stack panels like the config generator does on mobile */
222 @media (max-width: 700px) {
223 .tg-body {
224 flex-direction: column;
225 }
226
227 .tg-left {
228 border-right: none;
229 border-bottom: 1px solid #ddd;
230 }
231
232 body[data-md-color-scheme="slate"] .tg-left {
233 border-bottom-color: #444;
234 }
235 }