code-server/packages/vscode/src/dialog.scss

161 lines
2.8 KiB
SCSS
Raw Normal View History

.dialog {
2019-02-27 04:09:59 +07:00
--primary: #2A2E37;
--border: black;
--faded: #a0a1a5;
--disabled: #888;
2019-02-27 04:09:59 +07:00
--header-background: #161616;
--header-foreground: white;
--list-active-selection-background: rgb(0, 120, 160);
--list-active-selection-foreground: white;
--list-hover-background: rgb(36, 39, 46);
font-family: inherit;
box-shadow: 0 18px 80px 10px rgba(0, 0, 0, 0.1);
background-color: var(--primary);
display: flex;
flex-direction: column;
user-select: none;
overflow: hidden;
border-radius: 5px;
2019-02-27 04:09:59 +07:00
.monaco-tl-twistie {
display: none;
}
2019-02-27 04:09:59 +07:00
.title {
background-color: var(--header-background);
color: var(--header-foreground);
padding: 1px;
font-size: 11px;
font-weight: normal;
text-transform: uppercase;
white-space: nowrap;
padding: 5px 10px;
2019-02-27 04:09:59 +07:00
}
.nav {
display: flex;
flex-direction: row;
padding: 4px;
border-bottom: 1px solid var(--border);
}
.path {
display: flex;
flex-direction: row;
.path-part {
padding: 5px;
border-radius: 3px;
font-size: 1.02em;
2019-02-27 04:09:59 +07:00
cursor: pointer;
&:not(:first-child) {
margin-left: 5px;
}
&.active {
font-weight: bold;
color: var(--list-active-selection-foreground);
}
}
}
.dialog-grid {
display: grid;
grid-template-columns: 2fr 0.2fr 0.8fr;
}
.headings {
padding: 8px;
font-size: 12px;
}
.file-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
.dialog-entry {
cursor: pointer;
font-size: 1.02em;
padding: 0px 8px;
.dialog-entry-info {
display: flex;
flex-direction: row;
}
2019-02-27 04:09:59 +07:00
.dialog-entry-icon {
width: 16px;
height: 19px;
margin-right: 5px;
}
.dialog-entry-size {
text-align: right;
}
.dialog-entry-mtime {
padding-left: 8px;
}
2019-02-27 04:09:59 +07:00
&:hover {
background-color: var(--list-hover-background);
}
&.active {
background-color: var(--list-active-selection-background);
color: var(--list-active-selection-foreground);
}
&.disabled, &.disabled:hover {
background-color: var(--primary);
color: var(--disabled);
cursor: initial;
}
2019-02-27 04:09:59 +07:00
}
}
.buttons {
display: flex;
flex-direction: row;
padding: 10px;
position: relative;
background: var(--primary);
border-top: 1px solid var(--border);
button:first-child {
margin-left: auto;
margin-right: 10px;
}
button {
background: transparent;
outline: none;
border: 0;
color: var(--faded);
padding: 10px;
padding-left: 18px;
padding-right: 18px;
transition: 150ms background ease, 150ms color ease;
cursor: pointer;
border-radius: 5px;
&:hover {
background: var(--titlebar);
color: white;
}
}
button[disabled], button[disabled]:hover {
color: var(--disabled);
cursor: initial;
}
2019-02-27 04:09:59 +07:00
}
}
.monaco-shell .monaco-tree.focused.no-focused-item:focus:before, .monaco-shell .monaco-list:not(.element-focused):focus:before {
display: none;
2019-02-27 04:09:59 +07:00
}