Files
multigranja/multigranja/static/css/layout/global.css
T
Eberton 9374bfd71b HTMX + Modal
Implementado HTMX no projeto, o mesmo permite manipulação dinâmica de HTML por meio de requisições. O mesmo foi utilizado para implementar modais no sistema.
2026-05-24 18:30:01 -03:00

169 lines
3.3 KiB
CSS

/* DEFAULTS */
body {
background-color: var(--color-bg-light);
}
.w33 {
width: 33%;
}
/* SIDE BAR */
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 250px;
background-color: var(--color-bg-sidebar);
padding: 0 var(--space-md);
overflow-y: auto;
overflow-x: hidden;
z-index: 150;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.sidebar-brand {
text-align: center;
padding: var(--space-md);
color: var(--color-text-light);
font-weight: bold;
font-size: var(--font-lg);
display: block;
margin-bottom: var(--space-sm);
}
.sidebar-menu {
margin: var(--space-sm) 0;
}
.sidebar-header {
color: var(--color-text-light);
font-size: var(--font-sm);
margin-top: var(--space-xs);
padding: var(--space-xs) 0;
text-transform: uppercase;
opacity: 0.6;
}
.sidebar-link {
color: var(--color-text-light);
padding: var(--space-xs) var(--space-xs);
border-radius: var(--border-radius-sm);
width: 100%;
display: block;
opacity: 1;
transition: opacity var(--transition-speed-long) cubic-bezier(0.2, 0.85, 0.75, 1.7), transform var(--transition-speed) ease;
}
.active {
background-color: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(8px);
box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 0 rgba(255, 255, 255, 0.2);
}
/* SIDEBAR TOGGLING */
body.sidebar-collapsed .sidebar {
transform: translateX(-250px);
}
body.sidebar-collapsed .sidebar-link {
opacity: -20;
transform: translateX(260px);
}
body.sidebar-collapsed .navbar,
body.sidebar-collapsed .main-content {
transform: translateX(0);
width: 100%;
}
.sidebar,
.navbar,
.main-content {
transition: all var(--transition-speed) ease;
}
/* NAV BAR */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
transform: translateX(250px);
height: var(--header-height);
width: calc(100% - 250px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 var(--space-md);
z-index: 149;
}
#sidebar-toggle {
cursor: pointer;
}
/* Inicio do css do seletor antigo */
.navbar-farm-selector {
display: flex;
flex-direction: column;
align-items: center;
cursor: default;
opacity: 0.75;
transition: all var(--transition-speed) ease;
}
.navbar-farm-selector:hover {
opacity: 1;
}
.farm-name {
font-size: var(--font-md);
font-weight: 500;
margin: 0;
white-space: nowrap;
}
/* Fim do css do seletor antigo */
.navbar-user-info {
display: flex;
justify-content: flex-end;
gap: var(--space-md);
}
.username {
cursor: default;
}
/* MAIN CONTENT */
.main-content {
position: absolute;
top: var(--header-height);
left: 0;
bottom: 0;
right: 0;
transform: translateX(250px);
padding: var(--space-lg);
width: calc(100% - 250px);
overflow-y: auto;
}
/* BASE MODAL */
.modal-base {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
background-color: var(--color-bg-light);
padding: var(--space-lg);
border-radius: var(--space-sm);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}