obsidian-visualiser/assets/common.css

273 lines
3.9 KiB
CSS

.ps-1
{
padding-left: 1em;
}
.pe-1
{
padding-right: 1em;
}
.pt-1
{
padding-top: 1em;
}
.pb-1
{
padding-bottom: 1em;
}
.ps-2
{
padding-left: 2em;
}
.pe-2
{
padding-right: 2em;
}
.pt-2
{
padding-top: 2em;
}
.pb-2
{
padding-bottom: 2em;
}
.ps-3
{
padding-left: 3em;
}
.pe-3
{
padding-right: 3em;
}
.pt-3
{
padding-top: 3em;
}
.pb-3
{
padding-bottom: 3em;
}
.flex
{
display: flex;
}
.block
{
display: block;
}
.inline
{
display: inline;
}
.hidden
{
display: none;
}
.row
{
display: flex;
flex-direction: row;
}
.column
{
display: flex;
flex-direction: column;
}
.gapx-1 > *
{
margin-left: .4em;
margin-right: .4em;
}
.gapx-1 > *:first-child, .gapx-2 > *:first-child, .gapx-3 > *:first-child
{
margin-left: 0;
}
.gapx-1 > *:last-child, .gapx-2 > *:last-child, .gapx-3 > *:last-child
{
margin-right: 0;
}
.gapx-2 > *
{
margin-left: .8em;
margin-right: .8em;
}
.gapx-3 > *
{
margin-left: 1.2em;
margin-right: 1.2em;
}
.gapy-1 > *
{
margin-top: .4em;
margin-bottom: .4em;
}
.gapy-1 > *:first-child, .gapy-2 > *:first-child, .gapy-3 > *:first-child
{
margin-top: 0;
}
.gapy-1 > *:last-child, .gapy-2 > *:last-child, .gapy-3 > *:last-child
{
margin-bottom: 0;
}
.gapy-2 > *
{
margin-top: .8em;
margin-bottom: .8em;
}
.gapy-3 > *
{
margin-top: 1.2em;
margin-bottom: 1.2em;
}
html.dark-mode .dark-hidden {
display: none;
}
html.dark-mode .dark-block {
display: block;
}
html.light-mode .light-hidden {
display: none;
}
html.light-mode .light-block {
display: block;
}
.align-baseline {
align-items: baseline;
}
.align-center {
align-items: center;
}
.align-stretch {
align-items: stretch;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.justify-evenly {
justify-content: space-evenly;
}
.justify-around {
justify-content: space-around;
}
@media screen and (max-width: 750px) {
.mobile-bigger {
flex: 3 1 0 !important;
}
.mobile-smaller {
flex: 1 3 0 !important;
}
.mobile-hidden {
display: none !important;
}
.mobile-block {
display: inherit !important;
}
}
@media screen and (min-width: 750px) {
.desktop-bigger {
flex: 3 1 0 !important;
}
.desktop-smaller {
flex: 1 3 0 !important;
}
.desktop-hidden {
display: none !important;
}
.desktop-block {
display: inherit !important;
}
}
.input-form.input-form-wide {
width: 600px;
min-height: 300px;
justify-content: center;
align-items: stretch;
}
.input-form {
width: 400px;
min-height: 200px;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
padding: 2em 2em 2em 2em;
border: 1px solid var(--background-modifier-border);
}
.input-group {
display: flex;
flex-direction: column;
padding: .5em;
}
.input-form h1 {
margin-top: 0px;
font-size: x-large;
}
.input-form button {
margin-top: 2em;
}
.input-group .input-label {
padding: 4px 1em;
}
.input-group .input-error {
padding: .5em 1em 4px;
color: var(--text-error);
user-select: text;
}
.input-group .input-input.input-has-error {
border-color: var(--text-error);
}
.password-validation-group {
display: flex;
flex-direction: column;
padding: .5em 2em;
}
.password-validation-title {
font-style: italic;
font-size: small;
padding-bottom: 4px;
}
.password-validation-item {
font-size: small;
padding-left: .5em;
}
.password-validation-item pre {
user-select: text;
}
.password-validation-item.validation-error {
color: var(--text-error);
}
.input-form .loading {
width: 24px;
height: 24px;
border: 4px solid var(--color-purple);
border-right-color: transparent;
border-radius: 50%;
box-sizing: content-box;
animation: rotate 1s linear infinite;
}