refactor(styles): simplify color variables and update CSS constants
Add new color palette file and refactor constant definitions to use variable tokens.
This commit is contained in:
46 files changed
+1789
-1815
No files matched your search
@@ -0,0 +1,81 @@
|
||||
#launcher {
|
||||
background-color: @bg-a50;
|
||||
padding: 0;
|
||||
border-radius: apply(radius-md);
|
||||
min-width: 640px;
|
||||
border: 1px solid @fg-a10;
|
||||
}
|
||||
|
||||
/* #launcher-search { */
|
||||
/* color: @shadow; */
|
||||
/* } */
|
||||
#header_box {
|
||||
padding: 0px 20px 0 20px;
|
||||
color: @shadow;
|
||||
}
|
||||
|
||||
#close-button,
|
||||
#config-button {
|
||||
background-color: transparent;
|
||||
border-radius: apply(radius-xs);
|
||||
padding: 6px;
|
||||
transition: all apply(transition-fast) ease;
|
||||
}
|
||||
|
||||
#close-button:hover,
|
||||
#close-button:focus,
|
||||
#config-button:hover,
|
||||
#config-button:focus {
|
||||
background-color: @fg-a10;
|
||||
border-radius: apply(radius-xs);
|
||||
}
|
||||
|
||||
#close-button.focused,
|
||||
#config-button.focused {
|
||||
background-color: @primary-a20;
|
||||
border-radius: apply(radius-xs);
|
||||
box-shadow: 0 0 0 2px @primary-a40;
|
||||
}
|
||||
|
||||
#close-button.focused #close-label {
|
||||
color: @primary;
|
||||
}
|
||||
|
||||
#config-button.focused #config-label {
|
||||
color: @primary;
|
||||
}
|
||||
|
||||
#close-button:active {
|
||||
background-color: @fg-a20;
|
||||
border-radius: apply(radius-xs);
|
||||
}
|
||||
|
||||
#close-label {
|
||||
color: @fg-a70;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#close-button:active #close-label {
|
||||
color: @fg-a90;
|
||||
}
|
||||
|
||||
#config-button:active {
|
||||
background-color: @fg-a20;
|
||||
border-radius: apply(radius-xs);
|
||||
}
|
||||
|
||||
#config-label {
|
||||
color: @fg-a70;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#config-button:active #config-label {
|
||||
color: @fg-a90;
|
||||
}
|
||||
|
||||
#launcher-icon-label {
|
||||
font-size: 20px;
|
||||
padding: 6px;
|
||||
color: @fg-a80;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
@import url("launcher/general.css");
|
||||
@import url("launcher/search.css");
|
||||
@import url("launcher/results.css");
|
||||
@import url("launcher/network.css");
|
||||
@@ -0,0 +1,15 @@
|
||||
#network-password-entry {
|
||||
border: 1px solid @fg-a20;
|
||||
background: @fg-a05;
|
||||
color: @fg-a90;
|
||||
padding: 12px;
|
||||
border-radius: apply(radius-sm);
|
||||
margin-bottom: 8px;
|
||||
font-size: apply(font-base);
|
||||
}
|
||||
|
||||
#network-password-entry:focus {
|
||||
border: 1px solid @primary-a60;
|
||||
background: @fg-a10;
|
||||
box-shadow: 0 0 0 3px @primary-a20;
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
#launcher-results-scroll {
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
padding: 0 20px 20px 20px;
|
||||
}
|
||||
|
||||
#launcher-results-scroll scrollbar {
|
||||
border-radius: 0;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#launcher-results-scroll scrollbar slider {
|
||||
border-radius: apply(radius-2xs);
|
||||
min-width: 4px;
|
||||
min-height: 20px;
|
||||
background-color: @fg-a30;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#launcher-results-scroll scrollbar:hover slider {
|
||||
background-color: @fg-a50;
|
||||
}
|
||||
|
||||
#launcher-results {
|
||||
background: transparent;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
#launcher-result-item {
|
||||
border-radius: apply(radius-sm);
|
||||
padding: 12px 16px;
|
||||
margin: 2px 0;
|
||||
min-height: 64px;
|
||||
transition: all apply(transition-fast);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@keyframes loadSlot {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
#launcher-result-item:focus,
|
||||
#launcher-result-item:selected,
|
||||
#launcher-result-item:hover,
|
||||
#launcher-result-item.selected {
|
||||
border-radius: apply(radius-sm);
|
||||
background-color: @primary-a80;
|
||||
padding: 12px 16px;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
#launcher-result-item.selected #result-item-title {
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#launcher-result-item.selected #result-item-subtitle {
|
||||
color: @fg-a80;
|
||||
}
|
||||
|
||||
#launcher-result-item.selected #result-item-plugin {
|
||||
color: @fg-a60;
|
||||
}
|
||||
|
||||
#result-item-main {
|
||||
min-height: 56px;
|
||||
}
|
||||
|
||||
#launcher-result-item {
|
||||
min-height: 56px;
|
||||
}
|
||||
|
||||
#result-item-icon {
|
||||
min-width: 56px;
|
||||
min-height: 56px;
|
||||
margin-right: 16px;
|
||||
border-radius: apply(radius-md);
|
||||
}
|
||||
|
||||
#result-item-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: @fg-a95;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
#result-item-subtitle {
|
||||
font-size: apply(font-base);
|
||||
color: @fg-a60;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#result-item-plugin {
|
||||
font-size: apply(font-sm);
|
||||
color: @fg-a40;
|
||||
font-style: normal;
|
||||
margin-bottom: 4px;
|
||||
opacity: 1;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#launcher-search {
|
||||
font-weight: 400;
|
||||
font-size: 36px;
|
||||
background-color: transparent;
|
||||
color: @fg-a95;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
padding: 12px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#launcher-search:focus {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#launcher-search selection {
|
||||
color: white;
|
||||
background-color: @primary-a80;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user