-
Notifications
You must be signed in to change notification settings - Fork 413
Expand file tree
/
Copy pathbbcode.less
More file actions
139 lines (116 loc) · 2.23 KB
/
bbcode.less
File metadata and controls
139 lines (116 loc) · 2.23 KB
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
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
@import "app";
.bbcode {
@_top: bbcode;
.content-font();
overflow-wrap: anywhere;
line-height: 1.5;
code {
.default-border-radius();
background-color: hsl(var(--hsl-b5));
padding: 1px 4px;
}
h2,
h4 {
font-style: normal;
font-weight: bold;
}
// heading tag
h2 {
font-size: 1.5em;
color: @osu-colour-l1;
}
blockquote {
font-size: inherit;
padding: 0 0 0 20px;
border: none;
color: @osu-colour-c2;
position: relative;
&::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 2px;
height: 100%;
border-radius: 10000px;
background-color: @osu-colour-c2;
}
// quote tag
h4 {
font-size: inherit;
color: @osu-colour-c1;
margin: 0;
margin-bottom: 10px;
}
// second and deeper levels
blockquote {
font-size: 0.9em;
&::before {
display: none;
}
h4 {
color: inherit;
}
// flatten quotes fifth level and onwards
blockquote blockquote blockquote {
padding-left: 0;
font-size: 1em;
}
}
}
img {
max-width: 100%;
}
ol,
ul {
padding-left: 20px;
}
pre {
.default-border-radius();
white-space: pre-wrap;
background-color: @osu-colour-b5;
color: inherit;
padding: 10px;
border: none;
font-size: inherit;
}
.right {
text-align: right;
img,
iframe,
audio,
video,
.audio-player,
.imagemap,
.bbcode-spoilerbox,
.bbcode-spoilerbox__link {
margin-left: auto;
margin-right: 0;
}
.bbcode-spoilerbox__link {
width: fit-content;
}
}
.unordered {
list-style-type: disc;
}
.spoiler {
background-color: #000 !important;
color: #000 !important;
}
// overrides bootstrap styling for [notice]
.well {
margin: 0;
background: @osu-colour-b5;
border: 2px solid @osu-colour-b1;
}
&--normal-line-height {
line-height: inherit;
}
&__list-title {
list-style: none;
margin: 0;
}
}