-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cb 3960 migrate core blocks components to css modules (#2578)
* CB-3960 removes unused SlideBox styles * CB-3960 makes menu panel reshadowless * CB-3960 makes menu bar small item reshadowless * CB-3960 removes reshadow from loaders * fix: loader styles are the same as was * fix: CB-3960 fix hidden actions in table footer * fix: menu trigger --------- Co-authored-by: mr-anton-t <[email protected]>
- Loading branch information
1 parent
1f3ae6a
commit c8457c2
Showing
18 changed files
with
534 additions
and
567 deletions.
There are no files selected for viewing
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,119 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
.loader { | ||
margin: auto; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
opacity: 0; | ||
transition: opacity cubic-bezier(0.4, 0, 0.2, 1) 0.3s; | ||
&:global(.animate) { | ||
opacity: 1; | ||
} | ||
& .staticImage { | ||
height: 100%; | ||
width: 100%; | ||
display: none; | ||
} | ||
&.secondary, | ||
&.overlay, | ||
&:global(.secondary), | ||
&:global(.overlay) { | ||
&:not(.small):not(:global(.small)) { | ||
& .staticImage.secondaryIcon { | ||
display: block; | ||
} | ||
} | ||
&.small, | ||
&:global(.small) { | ||
& .staticImage.secondarySmallIcon { | ||
display: block; | ||
} | ||
} | ||
} | ||
&:not(.secondary):not(.overlay):not(:global(.secondary)):not(:global(.overlay)) { | ||
&:not(.small):not(:global(.small)) { | ||
& .staticImage.primaryIcon { | ||
display: block; | ||
} | ||
} | ||
&.small, | ||
&:global(.small) { | ||
& .staticImage.primarySmallIcon { | ||
display: block; | ||
} | ||
} | ||
} | ||
} | ||
.icon { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 40px; | ||
height: 40px; | ||
animation: rotation 2s infinite linear; | ||
} | ||
.message { | ||
padding: 16px; | ||
} | ||
.actions { | ||
padding-top: 42px; | ||
} | ||
.loader.inline { | ||
height: 38px; | ||
flex-direction: row; | ||
margin: 0; | ||
justify-content: left; | ||
& .icon { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
& .message { | ||
display: block; | ||
padding: 0 16px; | ||
} | ||
& .actions { | ||
padding: 0; | ||
} | ||
} | ||
.loader.small { | ||
& .icon { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
& .message { | ||
display: none; | ||
} | ||
} | ||
.loader.fullSize { | ||
height: 100%; | ||
& .icon { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
@keyframes rotation { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(359deg); | ||
} | ||
} | ||
|
||
.loaderOverlay { | ||
composes: theme-text-on-primary from global; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.4); | ||
} |
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
This file was deleted.
Oops, something went wrong.
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.