0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

refactor(console, experience): solve sass deprecations (#6356)

This commit is contained in:
Gao Sun 2024-07-29 10:03:50 +08:00 committed by GitHub
parent 05bd16272f
commit 1b67934b1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 36 additions and 37 deletions

View file

@ -7,23 +7,23 @@
}
.logo {
@include _.shimmering-animation;
width: 40px;
height: 40px;
border-radius: 8px;
@include _.shimmering-animation;
}
.name {
@include _.shimmering-animation;
width: 50px;
height: 16px;
margin-bottom: _.unit(1);
@include _.shimmering-animation;
}
.description {
@include _.shimmering-animation;
height: 14px;
margin-bottom: _.unit(0.5);
@include _.shimmering-animation;
&.shortDescription {
width: 50%;

View file

@ -18,11 +18,11 @@
background-color: var(--color-layer-1);
.icon {
@include _.shimmering-animation;
width: 60px;
height: 60px;
border-radius: 12px;
margin-right: _.unit(6);
@include _.shimmering-animation;
}
.wrapper {
@ -30,23 +30,23 @@
flex-direction: column;
.title {
@include _.shimmering-animation;
width: 113px;
height: 28px;
@include _.shimmering-animation;
}
.tags {
@include _.shimmering-animation;
width: 453px;
height: 20px;
margin-top: _.unit(3);
@include _.shimmering-animation;
}
}
.button {
@include _.shimmering-animation;
width: 158px;
height: 44px;
@include _.shimmering-animation;
}
}

View file

@ -1,15 +1,15 @@
@use '@/scss/underscore' as _;
.title {
@include _.shimmering-animation;
height: 16px;
width: 80px;
@include _.shimmering-animation;
}
.text {
@include _.shimmering-animation;
width: 100%;
height: 10px;
@include _.shimmering-animation;
}
.text + .text {

View file

@ -11,11 +11,11 @@
margin: 0 auto;
.index {
@include _.shimmering-animation;
width: 28px;
height: 28px;
border-radius: 50%;
margin-right: _.unit(4);
@include _.shimmering-animation;
}
.wrapper {
@ -24,16 +24,16 @@
flex-direction: column;
.title {
@include _.shimmering-animation;
width: 140px;
height: 24px;
@include _.shimmering-animation;
}
.subtitle {
@include _.shimmering-animation;
width: 400px;
height: 20px;
margin-top: _.unit(1);
@include _.shimmering-animation;
}
}
}

View file

@ -8,17 +8,17 @@
border-radius: 8px;
.image {
@include _.shimmering-animation;
width: 36px;
height: 36px;
margin-right: _.unit(2);
border-radius: 6px;
@include _.shimmering-animation;
}
.name {
@include _.shimmering-animation;
width: 85px;
height: 20px;
color: var(--color-text);
@include _.shimmering-animation;
}
}

View file

@ -8,7 +8,7 @@
}
.skeleton {
@include _.shimmering-animation;
width: 248px;
height: 100%;
@include _.shimmering-animation;
}

View file

@ -1,9 +1,9 @@
@use '@/scss/underscore' as _;
.field {
@include _.shimmering-animation;
width: 100%;
height: 44px;
@include _.shimmering-animation;
}
.field + .field {

View file

@ -1,9 +1,9 @@
@use '@/scss/underscore' as _;
.rect {
@include _.shimmering-animation;
height: 26px;
max-width: 344px;
@include _.shimmering-animation;
}
.row {
@ -12,26 +12,26 @@
align-items: center;
.avatar {
@include _.shimmering-animation;
width: 40px;
height: 40px;
margin-right: _.unit(4);
border-radius: 12px;
flex-shrink: 0;
@include _.shimmering-animation;
}
.content {
width: 100%;
.title {
@include _.shimmering-animation;
height: 12px;
@include _.shimmering-animation;
}
.subTitle {
@include _.shimmering-animation;
height: 8px;
margin-top: _.unit(2);
@include _.shimmering-animation;
}
}
}

View file

@ -8,15 +8,15 @@
}
.title {
@include _.shimmering-animation;
width: 80px;
height: 16px;
@include _.shimmering-animation;
}
.field {
@include _.shimmering-animation;
width: 100%;
height: 44px;
@include _.shimmering-animation;
}
&:not(:first-child) {

View file

@ -115,8 +115,8 @@
border: 1px solid var(--color-divider);
.bone {
@include _.shimmering-animation;
border-radius: 8px;
@include _.shimmering-animation;
}
.title {

View file

@ -21,9 +21,9 @@
}
.blockShimmer {
@include _.shimmering-animation;
border-radius: 8px;
flex: 1;
@include _.shimmering-animation;
}
.card:not(:last-child) {
@ -32,10 +32,10 @@
.textShimmer {
@include _.shimmering-animation;
width: 100%;
height: _.unit(6);
border-radius: 8px;
@include _.shimmering-animation;
&:not(:last-child) {
margin-bottom: _.unit(4);
@ -49,4 +49,3 @@
height: _.unit(8);
}
}

View file

@ -1,14 +1,14 @@
@use '@/scss/underscore' as _;
.title {
@include _.shimmering-animation;
height: 24px;
margin-bottom: _.unit(6);
@include _.shimmering-animation;
}
.number {
@include _.shimmering-animation;
height: 32px;
@include _.shimmering-animation;
}
.blocks {
@ -30,9 +30,9 @@
}
.curve {
@include _.shimmering-animation;
margin: _.unit(10) 0 _.unit(6);
height: 168px;
@include _.shimmering-animation;
}
.activeBlocks {

View file

@ -71,8 +71,8 @@
border: 1px solid var(--color-divider);
.bone {
@include _.shimmering-animation;
border-radius: 8px;
@include _.shimmering-animation;
}
.columnWrapper {

View file

@ -30,25 +30,25 @@
}
.title {
@include _.shimmering-animation;
width: 200px;
height: 20px;
@include _.shimmering-animation;
}
.card {
flex-grow: 1;
.label {
@include _.shimmering-animation;
width: 250px;
height: 16px;
margin-bottom: _.unit(2);
@include _.shimmering-animation;
}
.item {
@include _.shimmering-animation;
width: 350px;
height: 20px;
@include _.shimmering-animation;
}
.table {

View file

@ -18,15 +18,15 @@
}
.title {
@include _.shimmering-animation;
width: 80px;
height: 16px;
@include _.shimmering-animation;
}
.field {
@include _.shimmering-animation;
width: 100%;
height: 44px;
@include _.shimmering-animation;
}
&:not(:first-child) {

View file

@ -32,7 +32,7 @@
}
.bone {
@include _.shimmering-animation;
height: 26px;
max-width: 344px;
@include _.shimmering-animation;
}

View file

@ -4,6 +4,7 @@
border-radius: _.unit(2);
padding: _.unit(2.5) _.unit(2);
cursor: pointer;
@include _.flex-row;
.icon {
width: 20px;
@ -28,5 +29,4 @@
color: var(--color-brand-default);
}
}
@include _.flex-row;
}