mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-27 22:16:13 +00:00
Redesign elevation
This commit is contained in:
parent
bab51cacf9
commit
10f41ac432
14 changed files with 35 additions and 20 deletions
changelog/entries/unreleased/feature
premium/web-frontend/modules/baserow_premium/assets/scss/components
web-frontend
.stylelintrc
modules/core/assets/scss
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"type": "feature",
|
||||||
|
"message": "Introduce new elevation design",
|
||||||
|
"issue_number": 1918,
|
||||||
|
"bullet_points": [],
|
||||||
|
"created_at": "2023-08-21"
|
||||||
|
}
|
|
@ -66,7 +66,7 @@
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background-color: $color-primary-500;
|
background-color: $color-primary-500;
|
||||||
color: $white;
|
color: $white;
|
||||||
font-weight: bold;
|
font-weight: 600;
|
||||||
|
|
||||||
@include center-text(30px, 12px);
|
@include center-text(30px, 12px);
|
||||||
|
|
||||||
|
@ -129,12 +129,10 @@
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
border: 1px solid $color-neutral-200;
|
border: 1px solid $color-neutral-200;
|
||||||
box-shadow: 0 1px 2px rgba(19, 45, 69, 0.1);
|
|
||||||
-webkit-box-shadow: 0 1px 2px rgba(19, 45, 69, 0.1);
|
|
||||||
-moz-box-shadow: 0 1px 2px rgba(19, 45, 69, 0.1);
|
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
|
|
||||||
@include rounded($rounded-md);
|
@include rounded($rounded-md);
|
||||||
|
@include add-elevation($elevation-low);
|
||||||
|
|
||||||
.auto-expandable-textarea {
|
.auto-expandable-textarea {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
@ -148,8 +146,6 @@
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
-webkit-box-shadow: none;
|
|
||||||
-moz-box-shadow: none;
|
|
||||||
|
|
||||||
@include rounded($rounded-md);
|
@include rounded($rounded-md);
|
||||||
}
|
}
|
||||||
|
@ -247,9 +243,10 @@
|
||||||
background: white;
|
background: white;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border: 1px solid $color-neutral-200;
|
border: 1px solid $color-neutral-200;
|
||||||
box-shadow: 0 1px 2px rgba(19, 45, 69, 0.1);
|
|
||||||
border-radius: 80px;
|
border-radius: 80px;
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
|
|
||||||
|
@include add-elevation($elevation-low);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
.calendar-card {
|
.calendar-card {
|
||||||
border: 1px solid $color-neutral-200;
|
border: 1px solid $color-neutral-200;
|
||||||
box-shadow: 0 1px 2px rgba($color-primary-900, 0.1);
|
|
||||||
color: $color-primary-900;
|
color: $color-primary-900;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
|
|
||||||
@include rounded($rounded);
|
@include rounded($rounded);
|
||||||
|
@include add-elevation($elevation-low);
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
@include rounded($rounded);
|
@include rounded($rounded);
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
|
|
||||||
.calendar-month-day__create-row-btn {
|
.calendar-month-day__create-row-btn {
|
||||||
border: 1px solid $color-neutral-200;
|
border: 1px solid $color-neutral-200;
|
||||||
box-shadow: 0 1px 2px rgba($color-primary-900, 0.1);
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -61,6 +60,7 @@
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
|
||||||
@include rounded($rounded);
|
@include rounded($rounded);
|
||||||
|
@include add-elevation($elevation-low);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -167,7 +167,8 @@
|
||||||
|
|
||||||
&:not(.kanban-view__stack-card--disabled):not(.kanban-view__stack-card--dragging):hover {
|
&:not(.kanban-view__stack-card--disabled):not(.kanban-view__stack-card--dragging):hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 1px 3px 0 rgba($black, 0.32);
|
|
||||||
|
@include add-elevation($elevation-medium);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
|
||||||
"stylelint-config-standard",
|
|
||||||
"stylelint-config-prettier"
|
|
||||||
],
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"at-rule-no-unknown": [
|
"at-rule-no-unknown": [
|
||||||
true,
|
true,
|
||||||
|
@ -12,6 +9,7 @@
|
||||||
"function",
|
"function",
|
||||||
"if",
|
"if",
|
||||||
"each",
|
"each",
|
||||||
|
"else",
|
||||||
"include",
|
"include",
|
||||||
"mixin",
|
"mixin",
|
||||||
"return",
|
"return",
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.alert--with-shadow {
|
&.alert--with-shadow {
|
||||||
box-shadow: 0 2px 6px 0 rgba($black, 0.16);
|
@include add-elevation($elevation-medium);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
.box {
|
.box {
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
box-shadow: 0 3px 10px 0 rgba($black, 0.16);
|
|
||||||
padding: 32px 40px;
|
padding: 32px 40px;
|
||||||
|
|
||||||
|
@include add-elevation($elevation-medium);
|
||||||
@include rounded($rounded-md);
|
@include rounded($rounded-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
.card {
|
.card {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
box-shadow: 0 1px 3px 0 rgba($black, 0.16);
|
|
||||||
|
@include add-elevation($elevation-low);
|
||||||
@include rounded($rounded);
|
@include rounded($rounded);
|
||||||
|
|
||||||
&--loading {
|
&--loading {
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
border: 1px solid $color-neutral-200;
|
border: 1px solid $color-neutral-200;
|
||||||
box-shadow: 0 2px 6px 0 rgba($black, 0.16);
|
|
||||||
|
@include add-elevation($elevation-medium);
|
||||||
@include rounded($rounded-md);
|
@include rounded($rounded-md);
|
||||||
|
|
||||||
&.context--loading-overlay {
|
&.context--loading-overlay {
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.vdp-datepicker.datepicker .vdp-datepicker__calendar {
|
.vdp-datepicker.datepicker .vdp-datepicker__calendar {
|
||||||
border-color: $color-neutral-200;
|
border: none;
|
||||||
width: 278px;
|
width: 278px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
||||||
@include rounded($rounded-md);
|
@include rounded($rounded-md);
|
||||||
|
|
||||||
.prev,
|
.prev,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
@mixin add-elevation($box-shadow) {
|
||||||
|
box-shadow: $box-shadow;
|
||||||
|
}
|
|
@ -3,6 +3,7 @@
|
||||||
@import 'button';
|
@import 'button';
|
||||||
@import 'filters';
|
@import 'filters';
|
||||||
@import 'add_shadow';
|
@import 'add_shadow';
|
||||||
|
@import 'add_elevation';
|
||||||
@import 'select_option';
|
@import 'select_option';
|
||||||
@import 'collaborator';
|
@import 'collaborator';
|
||||||
@import 'roundness';
|
@import 'roundness';
|
||||||
|
|
|
@ -37,6 +37,10 @@ $rounded-xl: 12px !default;
|
||||||
$rounded-2xl: 16px !default;
|
$rounded-2xl: 16px !default;
|
||||||
$rounded-3xl: 24px !default;
|
$rounded-3xl: 24px !default;
|
||||||
|
|
||||||
|
$elevation-low: 0 1px 2px 0 rgba($palette-neutral-1300, 0.1) !default;
|
||||||
|
$elevation-medium: 0 6px 12px 0 rgba($palette-neutral-1300, 0.08) !default;
|
||||||
|
$elevation-high: 0 1px 2px 0 rgba($palette-neutral-1300, 0.1) !default;
|
||||||
|
|
||||||
// API docs variables
|
// API docs variables
|
||||||
$api-docs-nav-width: 220px !default;
|
$api-docs-nav-width: 220px !default;
|
||||||
$api-docs-header-height: 52px !default;
|
$api-docs-header-height: 52px !default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue