mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-28 21:00:56 +08:00
refactor(client): clean up global.css (#64052)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
parent
8675090e34
commit
ebf5a8463e
@ -12,43 +12,17 @@ body {
|
||||
background: var(--secondary-background);
|
||||
}
|
||||
|
||||
/* This is to override Tailwind as it sets the font-weight to `bolder`.
|
||||
TODO: Move this rule to @freecodecamp/ui. */
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
label {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
margin-bottom: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. (Though some styles might need to be dropped). */
|
||||
legend {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: 20px;
|
||||
font-size: 21px;
|
||||
line-height: inherit;
|
||||
color: #333;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
blockquote {
|
||||
padding: 10px 20px;
|
||||
margin: 0 0 20px;
|
||||
font-size: 17.5px;
|
||||
border-left: 5px solid #eeeeee;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
/* TODO: Move this rule to components/Intro/intro.css. */
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {
|
||||
@ -58,37 +32,13 @@ blockquote .small {
|
||||
color: var(--gray-45);
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
/* TODO: Move this rule to components/Intro/intro.css. */
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {
|
||||
content: '\2014 \00A0';
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
padding-inline-start: 40px;
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
ol {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
padding-inline-start: 40px;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
/* TODO: Move this rule to @freecodecamp/ui. */
|
||||
hr {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border: 0;
|
||||
border-top: 1px solid var(--quaternary-background);
|
||||
}
|
||||
|
||||
rt {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user