shulkerscript-webpage/src/styles/playground.scss

54 lines
1.2 KiB
SCSS
Raw Normal View History

2024-06-20 15:43:14 +02:00
.playground {
display: grid;
2024-06-20 20:11:00 +02:00
grid-template-columns: clamp(100px, 15%, 400px) auto;
2024-06-20 15:43:14 +02:00
grid-template-areas:
"header header"
"files editor";
> header {
grid-area: header;
}
> .file-view {
grid-area: files;
display: flex;
flex-direction: column;
2024-06-20 20:40:59 +02:00
margin-right: 0.5cm;
overflow-x: hidden;
overflow-y: auto;
2024-06-20 20:40:59 +02:00
.entries {
button {
border: none;
width: 100%;
text-align: left;
background-color: transparent;
cursor: pointer;
&:hover {
background-color: #444444;
}
2024-06-20 20:40:59 +02:00
&:disabled {
cursor: default;
color: var(--sl-color-text);
background-color: #333;
}
}
}
2024-06-20 15:43:14 +02:00
}
> .editor {
grid-area: editor;
}
}
:root[data-theme='light'] {
.playground > .file-view .entries button {
&:hover {
background-color: var(--sl-color-gray-5);
}
&:disabled {
background-color: var(--sl-color-gray-6);
}
}
}