Skip to content

Commit

Permalink
chore(css) add custom variables: --color, --color-transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Dec 30, 2019
1 parent 03cfca8 commit aeb6f76
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion css/query.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

/* текущий файл под курсором */
.current-file {
background-color: rgba(49, 123, 249, .40);
background-color: var(--color-transparent);
color: white;
}
/* делаем иконки под курсом белыми */
Expand Down
13 changes: 9 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
:root {
--color: rgba(49, 123, 249);
--color-transparent: rgba(49, 123, 249, 0.4);
}

html {
height : 94%;
}
Expand Down Expand Up @@ -42,7 +47,7 @@ body, pre, code {

.panel, .cmd-button {
border: 1px solid;
border-color: rgba(49, 123, 249, 0.4);
border-color: var(--color-transparent);
}

.icon {
Expand Down Expand Up @@ -89,7 +94,7 @@ body, pre, code {
bottom : 5px;
left : 16px;
font-size : 10px;
color : rgb(49, 123, 249);
color : var(--color);
content : attr(data-progress);
}

Expand All @@ -109,7 +114,7 @@ body, pre, code {

.cmd-button:active {
color: white;
background-color: rgb(49, 123, 249);
background-color: var(--color);
transition: ease 0.1s;
}

Expand Down Expand Up @@ -159,7 +164,7 @@ a:hover, a:active {
}

.current-file {
box-shadow: 0 0 0 1px rgba(49, 123, 249, 0.4) inset;
box-shadow: 0 0 0 1px var(--color-transparent) inset;
}

.cut-file {
Expand Down
2 changes: 1 addition & 1 deletion css/user-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.cloudcmd-user-menu > option:checked {
box-shadow: 20px -20px 0 2px rgba(49, 123, 249) inset;
box-shadow: 20px -20px 0 2px var(--color) inset;
}

.cloudcmd-user-menu-button {
Expand Down

0 comments on commit aeb6f76

Please sign in to comment.