Skip to content

Commit 6845717

Browse files
authored
Remove fomantic site module (#29980)
Had to fiddle a bit with the css ordering, but seems to work well now and should render exactly like before. Some of the CSS may be unnecessary, but I kept it for now.
1 parent bf34723 commit 6845717

File tree

4 files changed

+79
-681
lines changed

4 files changed

+79
-681
lines changed

web_src/css/base.css

Lines changed: 79 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@
3737
border-color: currentcolor;
3838
}
3939

40+
html, body {
41+
height: 100%;
42+
font-size: 14px;
43+
}
44+
45+
body {
46+
line-height: 1.4285rem;
47+
font-family: var(--fonts-regular);
48+
color: var(--color-text);
49+
background-color: var(--color-body);
50+
tab-size: var(--tab-size);
51+
display: flex;
52+
flex-direction: column;
53+
overflow-x: visible;
54+
overflow-wrap: break-word;
55+
}
56+
4057
textarea {
4158
font-family: var(--fonts-regular);
4259
}
@@ -60,13 +77,65 @@ h6 {
6077
font-weight: var(--font-weight-semibold);
6178
}
6279

63-
body {
64-
color: var(--color-text);
65-
background-color: var(--color-body);
66-
tab-size: var(--tab-size);
67-
display: flex;
68-
flex-direction: column;
69-
overflow-wrap: break-word;
80+
h1,
81+
h2,
82+
h3,
83+
h4,
84+
h5 {
85+
line-height: 1.28571429;
86+
margin: calc(2rem - 0.1428571428571429em) 0 1rem;
87+
font-weight: var(--font-weight-medium);
88+
padding: 0;
89+
}
90+
91+
h1 {
92+
min-height: 1rem;
93+
font-size: 2rem;
94+
}
95+
96+
h2 {
97+
font-size: 1.71428571rem;
98+
}
99+
100+
h3 {
101+
font-size: 1.28571429rem;
102+
}
103+
104+
h4 {
105+
font-size: 1.07142857rem;
106+
}
107+
108+
h5 {
109+
font-size: 1rem;
110+
}
111+
112+
h1:first-child,
113+
h2:first-child,
114+
h3:first-child,
115+
h4:first-child,
116+
h5:first-child {
117+
margin-top: 0;
118+
}
119+
120+
h1:last-child,
121+
h2:last-child,
122+
h3:last-child,
123+
h4:last-child,
124+
h5:last-child {
125+
margin-bottom: 0;
126+
}
127+
128+
p {
129+
margin: 0 0 1em;
130+
line-height: 1.4285;
131+
}
132+
133+
p:first-child {
134+
margin-top: 0;
135+
}
136+
137+
p:last-child {
138+
margin-bottom: 0;
70139
}
71140

72141
table {
@@ -121,8 +190,8 @@ progress::-moz-progress-bar {
121190
}
122191

123192
::selection {
124-
background: var(--color-primary-light-1) !important;
125-
color: var(--color-white) !important;
193+
background: var(--color-primary-light-1);
194+
color: var(--color-white);
126195
}
127196

128197
::placeholder,
@@ -146,6 +215,7 @@ progress::-moz-progress-bar {
146215
a {
147216
color: var(--color-primary);
148217
cursor: pointer;
218+
text-decoration: none;
149219
text-decoration-skip-ink: all;
150220
}
151221

web_src/fomantic/build/semantic.css

Lines changed: 0 additions & 177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)