DEV: allow themes to more easily set border-radii (#19037)

This commit is contained in:
Kris 2022-11-16 11:35:09 -05:00 committed by GitHub
parent d85f53fa94
commit 19ec341bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 4 deletions

View File

@ -219,7 +219,7 @@ input {
color: var(--primary);
background-color: var(--secondary);
border: 1px solid var(--primary-medium);
border-radius: 0;
border-radius: var(--d-input-border-radius);
&:focus {
@include default-focus;
}

View File

@ -158,7 +158,6 @@ body.invite-page {
input,
.select-kit-header {
padding: 0.75em 0.77em;
border-radius: 0.25em;
min-width: 250px;
box-shadow: none;
margin-bottom: 0.25em;
@ -186,7 +185,6 @@ body.invite-page {
left: 1em;
top: 10px;
box-shadow: 0 0 0 0px rgba(var(--tertiary-rgb), 0);
border-radius: 0.25em;
transition: 0.2s ease all;
}
.user-field.dropdown label.control-label {
@ -235,7 +233,6 @@ body.invite-page {
input {
width: 100%;
padding: 0.75em 0.5em;
border-radius: 0.25em;
min-width: 250px;
box-shadow: none;
margin-bottom: 2em;

View File

@ -21,6 +21,7 @@
font-weight: normal;
color: $text-color;
background: $bg-color;
border-radius: var(--d-button-border-radius);
cursor: pointer;
transition: all 0.25s;
.d-icon {
@ -178,6 +179,7 @@
color: #000;
background: #fff;
border: 1px solid transparent;
border-radius: var(--d-border-radius);
&:hover,
&:focus {
box-shadow: shadow("card");
@ -340,6 +342,7 @@
}
.btn-mini-toggle {
border-radius: var(--d-border-radius);
padding: 0.4em 0.467em;
.d-icon {
color: var(--primary-high);

View File

@ -31,6 +31,7 @@
> a,
button {
border: none;
border-radius: var(--d-nav-pill-border-radius);
padding: 6px 12px;
color: var(--primary);
font-size: var(--font-up-1);

View File

@ -25,6 +25,7 @@
background-color: var(--secondary);
position: relative;
border: 1px solid var(--primary-medium);
border-radius: var(--d-input-border-radius);
min-height: 0;
textarea {

View File

@ -18,6 +18,10 @@ $reply-area-max-width: 1475px !default;
--topic-body-width: #{$topic-body-width};
--topic-body-width-padding: #{$topic-body-width-padding};
--topic-avatar-width: #{$topic-avatar-width};
--d-border-radius: initial;
--d-nav-pill-border-radius: var(--d-border-radius);
--d-button-border-radius: var(--d-border-radius);
--d-input-border-radius: var(--d-border-radius);
}
$d-sidebar-width: 16em !default;

View File

@ -74,6 +74,7 @@
display: flex;
align-items: stretch;
&:not(.btn) {
border-radius: var(--d-input-border-radius);
padding-left: 0.5em;
padding-right: 0.5em;
}

View File

@ -50,6 +50,7 @@
margin-right: 0;
font-size: var(--font-down-1);
border: 1px solid var(--primary-medium);
border-radius: var(--d-input-border-radius);
}
> li > a {
line-height: var(--line-height-large);