-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate shared modals styles from VE to SCSS + BEM
- Loading branch information
Showing
10 changed files
with
195 additions
and
114 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/renderer/src/pages/shared-modals/hydra-cloud/hydra-cloud-modal.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@use "../../../scss/globals.scss"; | ||
|
||
.hydra-cloud-modal { | ||
&__container { | ||
display: flex; | ||
width: 500px; | ||
flex-direction: column; | ||
gap: calc(globals.$spacing-unit * 2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-item.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@use "../../../scss/globals.scss"; | ||
|
||
.user-friend-item { | ||
&__container { | ||
display: flex; | ||
gap: calc(globals.$spacing-unit * 3); | ||
align-items: center; | ||
border-radius: 4px; | ||
border: solid 1px globals.$border-color; | ||
width: 100%; | ||
height: 54px; | ||
min-height: 54px; | ||
transition: all ease 0.2s; | ||
position: relative; | ||
|
||
&:hover { | ||
background-color: rgba(255, 255, 255, 0.15); | ||
} | ||
} | ||
|
||
&__button { | ||
display: flex; | ||
align-items: center; | ||
position: absolute; | ||
cursor: pointer; | ||
height: 100%; | ||
width: 100%; | ||
flex-direction: row; | ||
color: globals.$body-color; | ||
gap: calc(globals.$spacing-unit + globals.$spacing-unit / 2); | ||
padding: 0 globals.$spacing-unit; | ||
} | ||
|
||
&__display-name { | ||
font-weight: bold; | ||
font-size: globals.$body-font-size; | ||
text-align: left; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
|
||
&__accept-button { | ||
cursor: pointer; | ||
color: globals.$body-color; | ||
width: 28px; | ||
height: 28px; | ||
|
||
&:hover { | ||
color: globals.$success-color; | ||
} | ||
} | ||
|
||
&__cancel-button { | ||
cursor: pointer; | ||
color: globals.$body-color; | ||
width: 28px; | ||
height: 28px; | ||
|
||
&:hover { | ||
color: globals.$danger-color; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-add-friend.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@use "../../../scss/globals.scss"; | ||
|
||
.user-friend-modal-add-friend { | ||
&__actions { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
gap: globals.$spacing-unit; | ||
} | ||
|
||
&__button { | ||
align-self: end; | ||
} | ||
|
||
&__pending-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: calc(globals.$spacing-unit * 2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/renderer/src/pages/shared-modals/user-friend-modal/user-friend-modal-list.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@use "../../../scss/globals.scss"; | ||
|
||
.user-friend-modal-list { | ||
display: flex; | ||
flex-direction: column; | ||
gap: calc(globals.$spacing-unit * 2); | ||
max-height: 400px; | ||
overflow-y: scroll; | ||
|
||
&__skeleton { | ||
width: 100%; | ||
height: 54px; | ||
overflow: hidden; | ||
border-radius: 4px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.