[CSS] Further styling optimizations, compacting common rules. Removed select dropdown images, since they are no longer required
This commit is contained in:
parent
c8daa82c1d
commit
968b1751fd
@ -2,38 +2,44 @@
|
|||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
background-color: var(--background-hard);
|
background-color: var(--background-hard);
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
font-family: 'Open Sans',sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-size: var(--unit);
|
font-size: var(--unit);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
input,
|
input,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
:link,
|
:link,
|
||||||
:visited {
|
:visited {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
all: unset;
|
all: unset;
|
||||||
display: block;
|
display: block;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background-color: var(--border) !important;
|
background-color: var(--border) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol,
|
ol,
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote,
|
blockquote,
|
||||||
body,
|
body,
|
||||||
fieldset,
|
fieldset,
|
||||||
@ -46,46 +52,59 @@ textarea {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
all: unset;
|
all: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
:link img,
|
:link img,
|
||||||
:visited img,
|
:visited img,
|
||||||
a img {
|
a img {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
address {
|
address {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus {
|
:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-moz-focus-inner {
|
::-moz-focus-inner {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
details summary {
|
details summary {
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
details summary > * {
|
details summary > * {
|
||||||
margin: unset;
|
margin: unset;
|
||||||
padding: unset;
|
padding: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
details > summary {
|
details > summary {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
details > summary::-webkit-details-marker {
|
details > summary::-webkit-details-marker {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports not(-ms-ime-align:auto) {
|
@supports not(-ms-ime-align:auto) {
|
||||||
details summary {
|
details summary {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[hidden] {
|
[hidden] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {font-size: 100%;} /*16px*/
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Open Sans', sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
@ -95,17 +114,28 @@ body {
|
|||||||
|
|
||||||
p {
|
p {
|
||||||
all: unset;
|
all: unset;
|
||||||
font-family: 'Open Sans',sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, legend {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
legend {
|
||||||
margin: 3rem 0 1.38rem;
|
margin: 3rem 0 1.38rem;
|
||||||
font-family: 'Poppins', sans-serif;
|
font-family: 'Poppins', sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, legend:first-child {
|
|
||||||
|
h1:first-child,
|
||||||
|
h2:first-child,
|
||||||
|
h3:first-child,
|
||||||
|
h4:first-child,
|
||||||
|
h5:first-child,
|
||||||
|
legend:first-child {
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,44 +144,57 @@ h1 {
|
|||||||
font-size: 1.383rem;
|
font-size: 1.383rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {font-size: 1.296rem;}
|
h2 {
|
||||||
|
font-size: 1.296rem;
|
||||||
|
}
|
||||||
|
|
||||||
h3 {font-size: 1.215rem;}
|
h3 {
|
||||||
|
font-size: 1.215rem;
|
||||||
|
}
|
||||||
|
|
||||||
h4 {font-size: 1.138rem;}
|
h4 {
|
||||||
|
font-size: 1.138rem;
|
||||||
|
}
|
||||||
|
|
||||||
h5 {font-size: 1.067rem;}
|
h5 {
|
||||||
|
font-size: 1.067rem;
|
||||||
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
font-size: 1.296em;
|
font-size: 1.296em;
|
||||||
}
|
}
|
||||||
|
|
||||||
small, .text_small {
|
.text_small,
|
||||||
font-family: 'Open Sans',sans-serif;
|
small {
|
||||||
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-size: 0.937rem;
|
font-size: 0.937rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=password],
|
input[type=password],
|
||||||
input[type=text],
|
input[type=text],
|
||||||
textarea {
|
textarea {
|
||||||
font-family: 'Open Sans',sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus,
|
a:focus,
|
||||||
a:hover {
|
a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
*:focus-visible {
|
*:focus-visible {
|
||||||
box-shadow: var(--shadow-inset-accent);
|
box-shadow: var(--shadow-inset-accent);
|
||||||
}
|
}
|
@ -42,18 +42,18 @@
|
|||||||
opacity: 0.66;
|
opacity: 0.66;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-stats-subscriptions,
|
.profile-stats-subscribers,
|
||||||
.profile-stats-subscribers {
|
.profile-stats-subscriptions {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-stats-subscriptions strong,
|
.profile-stats-subscribers strong,
|
||||||
.profile-stats-subscribers strong {
|
.profile-stats-subscriptions strong {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-info-url,
|
.profile-bio,
|
||||||
.profile-bio {
|
.profile-info-url {
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,8 +62,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.profile-tags {
|
.profile-tags {
|
||||||
margin: unset;
|
margin: 4px unset unset;
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-container {
|
.button-container {
|
||||||
@ -180,26 +179,27 @@
|
|||||||
border: 2px solid var(--border);
|
border: 2px solid var(--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-widget-title-details summary,
|
.section-widget-subtitle-details summary,
|
||||||
.section-widget-subtitle-details summary {
|
.section-widget-title-details summary {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: var(--s);
|
border-radius: var(--s);
|
||||||
background: var(--gradient);
|
background: var(--gradient);
|
||||||
}
|
}
|
||||||
.section-widget-title-details summary > *,
|
|
||||||
.section-widget-subtitle-details summary > * {
|
.section-widget-subtitle-details summary > *,
|
||||||
|
.section-widget-title-details summary > * {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-widget-title-details summary > *:last-child,
|
.section-widget-subtitle-details summary > *:last-child,
|
||||||
.section-widget-subtitle-details summary > *:last-child {
|
.section-widget-title-details summary > *:last-child {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-widget-title-details summary:after,
|
.section-widget-subtitle-details summary:after,
|
||||||
.section-widget-subtitle-details summary:after {
|
.section-widget-title-details summary:after {
|
||||||
content: "\2193";
|
content: "\2193";
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@ -272,10 +272,10 @@ textarea.form-row-widget {
|
|||||||
resize: vertical;
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-row-widget-error,
|
|
||||||
.form-error,
|
|
||||||
.alert,
|
.alert,
|
||||||
.alert-danger {
|
.alert-danger,
|
||||||
|
.form-error,
|
||||||
|
.form-row-widget-error {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
border: solid 2px #ff6347;
|
border: solid 2px #ff6347;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 552 B |
Binary file not shown.
Before Width: | Height: | Size: 734 B |
Loading…
Reference in New Issue
Block a user