alberti42_obsidian-import-a.../styles/styles.css

106 lines
1.9 KiB
CSS
Raw Permalink Normal View History

2024-05-12 11:46:00 +00:00
.import-plugin-hidden {
height: 0;
overflow: hidden;
}
2024-04-30 08:16:34 +00:00
2024-05-12 11:46:00 +00:00
.import-plugin table {
2024-04-30 13:33:51 +00:00
width: 100%;
border-collapse: collapse;
2024-04-30 11:00:18 +00:00
}
2024-05-12 11:46:00 +00:00
.import-plugin tr.sep {
2024-04-30 13:33:51 +00:00
padding-top: 10px;
2024-04-30 11:17:50 +00:00
border-top: 1px solid var(--background-modifier-border);
2024-04-30 13:33:51 +00:00
border-bottom: 1px solid var(--background-modifier-border);
2024-04-30 11:17:50 +00:00
}
2024-05-12 11:46:00 +00:00
.import-plugin td {
2024-04-30 13:33:51 +00:00
padding: 18px 0 18px 0;
2024-04-30 11:00:18 +00:00
}
2024-05-12 11:46:00 +00:00
.import-plugin .import-question {
2024-04-30 13:33:51 +00:00
width: 75%;
text-align: left;
2024-04-30 08:16:34 +00:00
}
2024-05-12 11:46:00 +00:00
.import-plugin .import-option-A {
2024-04-30 13:33:51 +00:00
width: auto;
text-align: right;
padding-right: 5px;
}
2024-05-12 11:46:00 +00:00
.import-plugin .import-option-B {
2024-04-30 13:33:51 +00:00
width: auto;
text-align: left;
padding-left: 5px;
padding-right: 5px;
}
2024-04-30 20:52:42 +00:00
.import-buttons {
2024-04-30 13:33:51 +00:00
display: flex; /* Establishes this container as a flex container */
2024-04-30 20:52:42 +00:00
justify-content: flex-end; /* Aligns children (the button) to the right */
2024-04-30 13:33:51 +00:00
}
/* Style for the container that holds the buttons */
2024-04-30 20:52:42 +00:00
.import-buttons button {
padding: 16px 16px;
margin: 15px 0 0 15px; /* Optional: Adds margin on the right for spacing from container edge */
2024-04-30 08:16:34 +00:00
}
2024-04-30 22:21:09 +00:00
/* Focus styles for accessibility */
2024-05-01 14:46:18 +00:00
/*
2024-04-30 22:21:09 +00:00
.import-buttons button:focus {
outline: 3px solid var(--interactive-accent-hover);
outline-offset: 2px;
}
2024-05-01 14:46:18 +00:00
*/
2024-04-30 22:21:09 +00:00
2024-05-12 11:46:00 +00:00
.import-switch {
2024-04-30 13:33:51 +00:00
position: relative;
display: inline-block;
width: 50px;
/* Width of the slider */
height: 24px;
/* Height of the slider */
2024-04-30 08:16:34 +00:00
}
2024-05-12 11:46:00 +00:00
.import-switch input {
2024-04-30 13:33:51 +00:00
opacity: 0;
width: 0;
height: 0;
2024-04-30 08:16:34 +00:00
}
2024-05-12 11:46:00 +00:00
.import-slider {
2024-04-30 13:33:51 +00:00
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--color-base-60);
transition: .4s;
border-radius: 24px;
2024-04-30 10:34:47 +00:00
}
2024-05-12 11:46:00 +00:00
.import-slider:before {
2024-04-30 13:33:51 +00:00
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 2px;
bottom: 2px;
background-color: white;
transition: .2s;
border-radius: 50%;
2024-04-30 10:34:47 +00:00
}
2024-05-12 11:46:00 +00:00
input:checked+.import-slider:before {
2024-04-30 13:33:51 +00:00
transform: translateX(26px);
/* Adjust translation distance */
2024-04-30 10:34:47 +00:00
}
2024-05-12 11:46:00 +00:00
.import-slider:hover {
2024-04-30 13:33:51 +00:00
/* Keep the original accent color on hover */
background-color: var(--color-base-70);
2024-04-30 10:34:47 +00:00
}