Fixed online badge in quick reply sidebar
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / bbcode / code.scss
CommitLineData
97f8f467
AE
1.redactor-editor pre {
2 background-color: rgb(255, 255, 255) !important;
eb63b8f2 3 box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
97f8f467
AE
4 border-radius: 2px;
5 color: rgb(68, 68, 68) !important;
6 font-family: Consolas, 'Courier New', monospace;
7 margin: 1em 0;
8 padding: 10px 20px;
9 position: relative;
10 white-space: pre;
11
adb94be6 12 &:not(.redactorCalcHeight)::before {
97e54d27 13 content: attr(data-title);
7b83aa87 14 cursor: pointer;
97f8f467
AE
15 display: block;
16 font-family: $wcfFontFamily;
17 margin-bottom: 20px;
18
19 @include wcfFontHeadline;
20 }
21}
442a3ea1
AE
22
23.codeBox {
24 background-color: $wcfContentBackground;
25 box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
26 border-radius: 2px;
27 margin-top: 1em;
ce04ba92 28 overflow: hidden;
442a3ea1 29 padding: 10px;
ce04ba92
AE
30 position: relative;
31
32 &.collapsed {
33 max-height: 200px;
34
35 > .toggleButton {
36 bottom: 0;
37 box-shadow: 0 -10px 50px 10px opacify($wcfContentBackground, .9);
38 left: 0;
39 padding-bottom: 10px;
40 position: absolute;
41 right: 0;
42 }
43 }
442a3ea1
AE
44
45 > div {
ce04ba92
AE
46 > .codeBoxHeader {
47 align-items: center;
48 display: flex;
49
50 > .codeBoxHeadline {
51 flex: 1 1 auto;
52 padding: 0 10px;
53
54 @include wcfFontHeadline;
55 }
56
57 > .codeBoxPlainSource {
58 flex: 0 0 auto;
59 margin-left: 10px;
60 }
61 }
62
442a3ea1 63 > ol {
ce04ba92 64 margin: 20px 0 0 3.4em !important;
442a3ea1
AE
65 position: relative;
66
67 &::before {
68 border-right: 1px solid $wcfContentBorderInner;
69 bottom: 0;
70 content: "";
ce04ba92 71 left: -5px;
442a3ea1
AE
72 position: absolute;
73 top: 0;
74 }
75
76 > li {
ce04ba92 77 font-family: Consolas, 'Courier New', monospace;
442a3ea1 78 padding-left: 5px;
ce04ba92
AE
79 position: relative;
80 white-space: pre-wrap;
81 word-break: break-all;
82 word-wrap: break-word;
83
84 .lineAnchor {
85 bottom: 0;
86 left: -3.4em;
87 position: absolute;
88 top: 0;
89 width: 3.4em;
90 }
c84ba3e9
MW
91
92 &:target {
93 background-color: rgba(255, 255, 102, 1);
94 }
442a3ea1
AE
95 }
96 }
97 }
ce04ba92
AE
98
99 > .toggleButton {
100 background-color: opacify($wcfContentBackground, .9);
101 cursor: pointer;
102 display: block;
103 padding: 10px 20px 0 10px;
104 text-align: center;
105
106 @include wcfFontSmall;
107 }
442a3ea1
AE
108}
109
110/* ############## Code Styles ############## */
111
112/* -- -- -- Code Box -- -- -- */
113
114.codeBox .hlQuotes {
115 color: red;
116}
117
118.codeBox .hlComments,
119.codeBox .hlOperators {
120 color: green;
121}
122
123.codeBox .hlKeywords1 {
124 color: blue;
125}
126
127.codeBox .hlKeywords2 {
128 color: darkred;
129}
130
131.codeBox .hlKeywords3 {
132 color: darkviolet;
133}
134
135.codeBox .hlKeywords4 {
136 color: darkgoldenrod;
137}
138
139.codeBox .hlKeywords5 {
140 color: crimson;
141}
142
143.codeBox .hlNumbers {
144 color: darkorange;
145}
146
147/* -- -- -- Code Highlighters -- -- -- */
148
149/* DIFF */
150
151.diffHighlighter .hlComments {
152 color: darkviolet;
153}
154
155.diffHighlighter .hlRemoved {
156 color: red;
157}
158
159.diffHighlighter .hlAdded {
160 color: green;
161}
162
163/* PHP */
164
165.phpHighlighter .hlKeywords2 {
166 color: green;
167}
168
169.phpHighlighter .hlComments {
170 color: darkgoldenrod;
171}
172
173/* CSS */
174
175.cssHighlighter .hlComments {
176 color: #236e26;
177}
178
179.cssHighlighter .hlColors {
180 color: #751116;
181}
182
183.cssHighlighter .hlNumbers,
184.sqlHighlighter .hlNumbers {
185 color: #1906fd;
186}
187
188.cssHighlighter .hlKeywords1 {
189 color: #87154f;
190}
191
192.cssHighlighter .hlKeywords2 {
193 color: #994509;
194}
195
196.cssHighlighter .hlKeywords3,
197.cssHighlighter .hlKeywords4 {
198 color: inherit;
199}
200
201/* SQL */
202
203.sqlHighlighter .hlKeywords1 {
204 color: #663821;
205}
206
207.sqlHighlighter .hlKeywords2 {
208 color: #871550;
209}