mirror of
https://github.com/rafaelveiga/obsidian-widgets.git
synced 2026-07-22 09:10:24 +00:00
149 lines
No EOL
2.2 KiB
CSS
149 lines
No EOL
2.2 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
/*
|
|
Clock Widget
|
|
*/
|
|
.Clock_Face {
|
|
font-size: 60px;
|
|
line-height: 60px;
|
|
text-align: center;
|
|
}
|
|
|
|
.Clock_Divider {
|
|
height: 1px;
|
|
width: 100%;
|
|
margin: 20px 0;
|
|
background: var(--color-accent-1)
|
|
}
|
|
|
|
.Clock_Date {
|
|
font-size: 20px;
|
|
line-height: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.Clock__time-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.Clock__am-pm {
|
|
font-size: 20px;
|
|
line-height: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/*
|
|
Quote Widget
|
|
*/
|
|
.Quote_Container {
|
|
padding: 30px;
|
|
text-align: center;
|
|
|
|
background: var(--color-base-10);
|
|
border: 1px solid var(--color-accent-1);
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.Quote_Text {
|
|
font-size: 20px;
|
|
font-family: serif;
|
|
|
|
font-style: italic !important; /* overwriting obsidian default style */
|
|
}
|
|
|
|
.Quote_Author {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/*
|
|
Countdown Widget
|
|
*/
|
|
.Countdown_Container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.Countdown_Item {
|
|
text-align: center;
|
|
border: 1px solid var(--color-accent-1);
|
|
border-radius: 10px;
|
|
padding: 20px 0;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.Countdown_Item h3 {
|
|
font-size: 50px;
|
|
line-height: 50px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.Countdown_Item small {
|
|
color: var(--text-muted)
|
|
}
|
|
|
|
.Countdown_To {
|
|
text-align: center;
|
|
margin-top: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/*
|
|
Counter Widget
|
|
*/
|
|
.Counter__container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.Counter__counter {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.Counter__text {
|
|
color: var(--text-muted);
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/*
|
|
Widget config
|
|
*/
|
|
.WidgetConfig__actions {
|
|
opacity: 0;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.WidgetConfig__container:hover .WidgetConfig__actions{
|
|
opacity: 1;
|
|
}
|
|
|
|
.WidgetConfig__input-group {
|
|
margin: 10px 0;
|
|
} |