sw-ui-controls
Version:
SW UI controls for rapid development
146 lines (140 loc) • 3.32 kB
CSS
/* Main Theme*/
:root {
--primary-color: #3498db;
/* A calming blue */
--secondary-color: #f1c40f;
/* A vibrant orange */
--background-color: #f9f9f9;
/* A light gray background */
--text-color: #333;
/* A dark gray text color */
--accent-color: #2ecc71;
/* A bright green accent color */
--error-color: #e74c3c;
/* A bright red error color */
--success-color: #2ecc71;
/* A bright green success color */
--warning-color: #f1c40f;
/* A vibrant orange warning color */
/* Dark Theme */
--primary-color-dark: #2e6da4;
/* A darker shade of the primary color */
--secondary-color-dark: #e67e73;
/* A darker shade of the secondary color */
--background-color-dark: #333;
/* A dark gray background */
--text-color-dark: #000;
/* A black text color */
--accent-color-dark: #27ae60;
/* A darker shade of the accent color */
--error-color-dark: #c0392b;
/* A darker shade of the error color */
--success-color-dark: #27ae60;
/* A darker shade of the success color */
--warning-color-dark: #e67e73;
/* A darker shade of the warning color */
/* Light Theme */
--primary-color-light: #87ceeb;
/* A lighter shade of the primary color */
--secondary-color-light: #ffd700;
/* A lighter shade of the secondary color */
--background-color-light: #fff;
/* A white background */
--text-color-light: #666;
/* A light gray text color */
--accent-color-light: #34c759;
/* A lighter shade of the accent color */
--error-color-light: #f1a9a9;
/* A lighter shade of the error color */
--success-color-light: #34c759;
/* A lighter shade of the success color */
--warning-color-light: #ffd700;
/* A lighter shade of the warning color */
}
* .error {
color: var(--error-color);
}
* .error * {
color: var(--error-color);
}
* input[type="checkbox"],
* input[type="radio"] {
accent-color: var(--accent-color);
}
* button.active {
background-color: var(--text-color);
color: var(--background-color);
}
body {
padding: 0;
margin: 0;
height: 1000px;
overflow: hidden;
}
.control-error {
font-size: 12px;
font-weight: bold;
margin: 0;
}
.sw-side-bar {
background-color: var(--background-color-light);
}
.sw-side-bar ul {
text-decoration: none;
list-style: none;
line-height: 1.5em;
}
.sw-side-bar ul li {
font-weight: 900;
}
.sw-side-bar ul li:hover {
cursor: pointer;
}
.flex,
.flex-row,
.flex-colum {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.center-items {
justify-content: center;
align-items: center;
}
.space-between {
justify-content: space-between;
}
.space-evenly {
justify-content: space-evenly;
}
.space-around {
justify-content: space-around;
}
.flex-row {
flex-direction: row;
}
.flex-colum {
flex-direction: column;
}
.w-100 {
width: 100%;
}
select {
width: 100%;
height: 30px;
}
*::-webkit-scrollbar {
width: 10px;
}
*::-webkit-scrollbar-track {
background: var(--secondary-color);
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
*::-webkit-scrollbar-thumb {
background: var(--primary-color);
border: 1px solid currentColor;
}
.active-link {
background-color: var(--text-color);
color: var(--background-color);
}