File: need_style.css

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,108 kB
  • sloc: python: 21,148; javascript: 187; makefile: 95; sh: 29; xml: 10
file content (214 lines) | stat: -rw-r--r-- 6,117 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/* These classes are added by the sphinx_needs.layout.LayoutHandler class,
to style the representation per need,
based on layout/style keys in the need definition.
*/

/* ************ */
/* layout names */
/* ************ */
table.needs_layout_focus_l td.side {
    text-orientation: upright;
    writing-mode: sideways-lr;
    font-size: small;
}

table.needs_layout_focus_r td.side {
    text-orientation: upright;
    writing-mode: sideways-rl;
    font-size: small;
}

table.needs_layout_complete td.head_left {
    text-align: left;
    background-color: var(--sn-color-complete-bg-head);
    font-size: smaller;
}

table.needs_layout_complete td.head_center {
    text-align: center;
    font-weight: bold;
}

table.needs_layout_complete td.head_right {
    text-align: right;
    background-color: var(--sn-color-complete-bg-head);
    font-size: smaller;
}

table.needs_layout_complete tr.footer {
    background-color: var(--sn-color-complete-bg-foot);
}

table.needs_layout_complete td.footer_right {
    text-align: right;
}

table.needs_layout_complete td.footer {
    text-align: center;
}

/* ************* */
/* layout styles */
/* ************* */

table.needs_style_clean,
table.needs_style_clean tr,
table.needs_style_clean td {
    margin-bottom: 10px;
    border: none !important;
    background: None !important;
    padding: 0;
    box-shadow: None;
}

table.needs_style_clean {
    width: 100%;
}

table.needs_style_discreet,
table.needs_style_discreet tr.need,
table.needs_style_discreet td.need {
    background-color: var(--sn-color-bg-lightgray) !important;
}

table.needs_style_gray,
table.needs_style_gray tr.need,
table.needs_style_gray td.need {
    background-color: var(--sn-color-bg-gray) !important;
}

table.needs_style_green,
table.needs_style_green tr.need,
table.needs_style_green td.need,
tr.needs_green,
table.needs_style_implemented,
table.needs_style_implemented tr.need,
table.needs_style_implemented td.need,
tr.needs_implemented {
    background-color: var(--sn-color-bg-green) !important;
}

table.needs_style_red,
table.needs_style_red tr.need,
table.needs_style_red td.need,
tr.needs_red,
table.needs_style_open,
table.needs_style_open tr.need,
table.needs_style_open td.need,
tr.needs_open {
    background-color: var(--sn-color-bg-red) !important;
}

table.needs_style_yellow,
table.needs_style_yellow tr.need,
table.needs_style_yellow td.need,
tr.needs_yellow,
table.needs_style_in_progress,
table.needs_style_in_progress tr.need,
table.needs_style_in_progress td.need tr.needs_in_progress {
    background-color: var(--sn-color-bg-yellow) !important;
}

table.needs_style_blue,
table.needs_style_blue tr.need,
table.needs_style_blue td.need,
tr.needs_blue {
    background-color: var(--sn-color-bg-blue) !important;
}

table.needs_style_green_border {
    border: 5px solid var(--sn-color-border-green) !important;
}

table.needs_style_red_border {
    border: 5px solid var(--sn-color-border-red) !important;
}

table.needs_style_yellow_border {
    border: 5px solid var(--sn-color-border-yellow) !important;
}

table.needs_style_blue_border {
    border: 5px solid var(--sn-color-border-blue) !important;
}

table.needs_style_discreet_border {
    border: 5px solid var(--sn-color-border-lightgray) !important;
}

table.needs_style_green_bar {
    background: linear-gradient(to right, transparent 90%, var(--sn-color-bar-green) 10%);
}

table.needs_style_red_bar {
    background: linear-gradient(to right, transparent 90%, var(--sn-color-bar-red) 10%);
}

table.needs_style_orange_bar {
    background: linear-gradient(to right, transparent 90%, var(--sn-color-bar-orange) 10%);
}

table.needs_style_yellow_bar {
    background: linear-gradient(to right, transparent 90%, var(--sn-color-bar-yellow) 10%);
}

table.needs_style_blue_bar {
    background: linear-gradient(to right, transparent 90%, var(--sn-color-bar-blue) 10%);
}

/* *****************
   layout debug view
   *****************

- debug_on_layout_btn is set when collapsed.startswith("Debug view")
- debug_off_layout_btn is set when visible.startswith("Debug view") 
*/

div.debug_on_layout_btn.debug_on_layout_btn,
div.debug_off_layout_btn.debug_off_layout_btn {
    border: 2px solid var(--sn-color-debug-btn-border);
    width: fit-content;
    padding: 3px 6px;
    border-radius: 4px;
}

div.debug_on_layout_btn.debug_on_layout_btn:before {
    content: "Hide debugger";
    color: var(--sn-color-debug-btn-on-text);
    font-size: large;
    font-weight: 400;
    margin-top: 3px;
    cursor: pointer;
    outline: none;
}

div.debug_on_layout_btn.debug_on_layout_btn:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f43333' stroke-width='2.0' stroke-linecap='round' stroke-linejoin='round' class='feather feather-eye-off'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
    color: var(--sn-color-debug-btn-on-text);
    font-size: large;
    font-weight: 400;
    margin-top: 3px;
    cursor: pointer;
    outline: none;
}

div.debug_off_layout_btn.debug_off_layout_btn:before {
    content: "Show debugger";
    color: var(--sn-color-debug-btn-off-text);
    font-size: large;
    font-weight: 400;
    margin-top: 3px;
    cursor: pointer;
    outline: none;
}

div.debug_off_layout_btn.debug_off_layout_btn:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='20' viewBox='0 0 24 24' fill='none' stroke='%230dd3f5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' class='feather feather-eye'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    ;
    color: var(--sn-color-debug-btn-off-text);
    font-size: large;
    font-weight: 400;
    margin-top: 3px;
    cursor: pointer;
    outline: none;
}