-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codereview quick fixes #412
Changes from all commits
4f7126b
f60092c
86ff2de
515b46b
d5100ab
49d9aa8
e10f136
7b820de
1a45a44
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
$cp-top: 27px; | ||
$cp-left: -12px; | ||
$cp-bg-color: rgb(68, 68, 68); | ||
$cp-z-index: 9999; | ||
|
||
.cpwi { | ||
&__color { | ||
position: relative; | ||
display: inline-block; | ||
/* inline-block immediately overridden, assuming error and not for browser support */ | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
|
||
&_dp { | ||
background-color: $cp-bg-color; | ||
background-color: rgb(68 68 68); | ||
padding: var(--bt-size-10); | ||
border-radius: var(--bt-size-10); | ||
top: $cp-top; | ||
left: $cp-left; | ||
z-index: $cp-z-index; | ||
top: 27px; | ||
left: -12px; | ||
z-index: 9999; /* Hacky? */ | ||
display: none; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to use a variable from here |
||
position: absolute; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
.warning { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
display: grid; | ||
place-content: center; | ||
height: var(--bt-size-percent-100); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.button { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
display: grid; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
place-content: center; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.copyinput { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
display: grid; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
place-content: center; | ||
overflow: hidden; | ||
gap: var(--bt-size-5); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
.fb { | ||
/* flex direction is already row | ||
Move z-index near position, | ||
flex properties together */ | ||
height: var(--bt-size-64); | ||
position: absolute; | ||
right: var(--bt-size-18); | ||
z-index: var(--bt-z-index-dropdown); | ||
display: flex; | ||
height: var(--bt-size-64); | ||
align-items: center; | ||
justify-content: flex-end; | ||
flex-direction: row; | ||
position: absolute; | ||
right: var(--bt-size-18); | ||
|
||
&__container { | ||
right: var(--bt-size-10); | ||
position: sticky; | ||
right: var(--bt-size-10); | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-end; | ||
flex-direction: row; | ||
gap: var(--bt-size-10); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
.fh { | ||
position: sticky; | ||
padding: var(--bt-size-4); | ||
border-radius: var(--bt-size-10); | ||
display: flex; | ||
align-items: center; | ||
border-radius: var(--bt-size-10); | ||
padding: var(--bt-size-4); | ||
position: sticky; | ||
flex-direction: row; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
$menu-height: calc(100dvh - 204px); | ||
$menu-mobile-height: calc(100dvh - 168px); | ||
$menu-collapsed-height: calc(100dvh - 202px); | ||
|
||
.menu { | ||
height: $menu-height; | ||
height: calc(100dvh - 204px); | ||
overflow-y: auto; | ||
|
||
&__collapsed { | ||
height: $menu-collapsed-height; | ||
height: calc(100dvh - 202px); | ||
} | ||
|
||
@media (max-width: 768px) { | ||
height: $menu-mobile-height; | ||
height: calc(100dvh - 168px); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The placements are not in the center
Now:
Before:
