FIX: Fix css var issues + button :active gradient (#10469)
* FIX: Fix css var issues Adds ability for published page to use css `var()` + import the `var()` definitions
This commit is contained in:
parent
390615fbcd
commit
ed0e1e28b4
|
@ -9,7 +9,7 @@
|
|||
width: 100%;
|
||||
top: 0;
|
||||
z-index: z("header");
|
||||
background-color: $secondary;
|
||||
background-color: var(--secondary, $secondary);
|
||||
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
@ -25,7 +25,7 @@
|
|||
line-height: 1em;
|
||||
}
|
||||
.published-page-title {
|
||||
color: $header_primary;
|
||||
color: var(--header_primary, $header_primary);
|
||||
font-size: 2em;
|
||||
margin: 0;
|
||||
max-height: 1.25em;
|
||||
|
@ -34,8 +34,8 @@
|
|||
}
|
||||
|
||||
.published-page {
|
||||
background-color: $secondary;
|
||||
color: $primary;
|
||||
background-color: var(--secondary, $secondary);
|
||||
color: var(--primary, $primary);
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
|
@ -53,10 +53,10 @@
|
|||
margin-right: 1em;
|
||||
height: 45px;
|
||||
width: 45px;
|
||||
border: 4px solid rgba($tertiary, 0.75);
|
||||
border: 4px solid var(--tertiary-medium, $tertiary-medium);
|
||||
}
|
||||
.topic-created-at {
|
||||
color: $primary-medium;
|
||||
color: var(--primary-medium, $primary-medium);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<%= discourse_color_scheme_stylesheets() %>
|
||||
|
||||
<div class="published-page-header">
|
||||
<div class="published-page-header-wrapper">
|
||||
<a href="<%= @site_url %>">
|
||||
|
|
Loading…
Reference in New Issue