Add css variables for border radius (#26491)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9dc5572f53
Коммит
3b8ba01fd9
@@ -1,11 +1,13 @@
|
|||||||
@import 'utils/module';
|
@import 'utils/module';
|
||||||
|
|
||||||
.AdminPanel {
|
.AdminPanel {
|
||||||
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: solid 1px alpha-color($black, 0.1);
|
border: solid 1px rgba(var(--center-channel-color-rgb), 0.12);
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-s);
|
||||||
margin: 2em 0 1em;
|
margin: 2em 0 1em;
|
||||||
box-shadow: 0 1px 2px 0 alpha-color($black, 0.5);
|
background-color: var(--center-channel-bg);
|
||||||
|
box-shadow: var(--elevation-1);
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
|
|
||||||
.AdminPanel__content {
|
.AdminPanel__content {
|
||||||
@@ -35,6 +37,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
border-radius: var(--radius-s) var(--radius-s) 0 0;
|
||||||
background: $white;
|
background: $white;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
|||||||
@@ -78,6 +78,14 @@
|
|||||||
--elevation-5: 0 12px 32px 0 rgba(0, 0, 0, 0.12);
|
--elevation-5: 0 12px 32px 0 rgba(0, 0, 0, 0.12);
|
||||||
--elevation-6: 0 20px 32px 0 rgba(0, 0, 0, 0.12);
|
--elevation-6: 0 20px 32px 0 rgba(0, 0, 0, 0.12);
|
||||||
|
|
||||||
|
//Corner Radius variables
|
||||||
|
--radius-xs: 2px;
|
||||||
|
--radius-s: 4px;
|
||||||
|
--radius-m: 8px;
|
||||||
|
--radius-l: 12px;
|
||||||
|
--radius-xl: 16px;
|
||||||
|
--radius-full: 50%;
|
||||||
|
|
||||||
// Global Header variables
|
// Global Header variables
|
||||||
--global-header-background: var(--sidebar-teambar-bg);
|
--global-header-background: var(--sidebar-teambar-bg);
|
||||||
--global-header-text: var(--sidebar-header-text-color);
|
--global-header-text: var(--sidebar-header-text-color);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-s);
|
||||||
|
|
||||||
.alert-transparent {
|
.alert-transparent {
|
||||||
border-color: rgba(var(--center-channel-color-rgb), 0.12);
|
border-color: rgba(var(--center-channel-color-rgb), 0.12);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ button {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
border-radius: 50%;
|
border-radius: var(--radius-full);
|
||||||
margin: 0 0 0 40px;
|
margin: 0 0 0 40px;
|
||||||
background: #f74343;
|
background: #f74343;
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ button {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: $border-rad * 2;
|
border-radius: var(--radius-s);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
.btn {
|
.btn {
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
padding: 0 2rem;
|
padding: 0 2rem;
|
||||||
border-radius: $border-rad * 2;
|
border-radius: var(--radius-s);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
height: 26px;
|
height: 26px;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
border-color: #5b6672;
|
border-color: #5b6672;
|
||||||
border-radius: $border-rad * 2;
|
border-radius: var(--radius-s);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #5b6672;
|
color: #5b6672;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
|
|||||||
@@ -90,8 +90,7 @@
|
|||||||
width: 350px;
|
width: 350px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-s);
|
||||||
border-radius: 4px;
|
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
background: var(--center-channel-bg);
|
background: var(--center-channel-bg);
|
||||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-xs);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-radius: $border-rad * 2;
|
border-radius: var(--radius-s);
|
||||||
background: var(--center-channel-bg);
|
background: var(--center-channel-bg);
|
||||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||||
color: var(--center-channel-color);
|
color: var(--center-channel-color);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: $border-rad * 2;
|
border-radius: var(--radius-s);
|
||||||
background: rgba(var(--center-channel-color-rgb), 0.4);
|
background: rgba(var(--center-channel-color-rgb), 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
.modal-content {
|
.modal-content {
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-s);
|
||||||
box-shadow: 0 0 10px rgba($black, 0.5);
|
box-shadow: 0 0 10px rgba($black, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -491,7 +491,7 @@
|
|||||||
height: 34px;
|
height: 34px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: $border-rad;
|
border-radius: var(--radius-s);
|
||||||
margin: 0 10px 0 0;
|
margin: 0 10px 0 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ $announcement-bar-height: 40px;
|
|||||||
$backstage-bar-height: 43px;
|
$backstage-bar-height: 43px;
|
||||||
|
|
||||||
// Random variables
|
// Random variables
|
||||||
$border-rad: 2px;
|
|
||||||
$emoji-per-row: 9; // needs to match variable `EMOJI_PER_ROW` in emoji_picker.jsx
|
$emoji-per-row: 9; // needs to match variable `EMOJI_PER_ROW` in emoji_picker.jsx
|
||||||
|
|
||||||
// Transition timing defaults
|
// Transition timing defaults
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user