mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
69 lines
1.1 KiB
CSS
69 lines
1.1 KiB
CSS
body {
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 1em 2em;
|
|
background-image: url(./sand.jpg);
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
body.vscode-dark {
|
|
background-image: url(./sand-dark.jpg);
|
|
}
|
|
|
|
.notes {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 100px);
|
|
grid-template-rows: repeat(auto-fill, 100px);
|
|
grid-gap: 2em;
|
|
justify-content: center;
|
|
}
|
|
|
|
.note {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 5px;
|
|
background-color: var(--vscode-editor-background);
|
|
text-align: center;
|
|
padding: 0.6em;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.note .text {
|
|
flex: 1;
|
|
font-size: 3em;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.note .created {
|
|
font-style: italic;
|
|
font-size: 0.75em;
|
|
}
|
|
|
|
.add-button {
|
|
height: 100px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.add-button button {
|
|
background-color: var(--vscode-button-foreground);
|
|
}
|
|
|
|
.delete-button {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: none;
|
|
}
|
|
|
|
.delete-button:before {
|
|
content: 'delete';
|
|
}
|
|
|
|
.note:hover .delete-button {
|
|
display: block;
|
|
} |