AiDataGenByLeoFeaturesDocs/docs/Estilos.css
2026-04-21 18:09:18 -05:00

670 lines
No EOL
13 KiB
CSS

/*
//+------------------------------------------------------------------+
//| Variables principales |
//+------------------------------------------------------------------+
*/
:root {
--bg: #0a0c0f;
--surface: #111418;
--surface2: #181c22;
--border: #1e2530;
--border2: #2a3040;
--accent: #00d084;
--accent2: #0090ff;
--accent3: #ff6b35;
--text: #e8edf5;
--muted: #5a6478;
--muted2: #8a95a8;
--mono: Arial, Helvetica, sans-serif;
--general_font: 'Sora', sans-serif;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/*
//+------------------------------------------------------------------+
//| Body |
//+------------------------------------------------------------------+
*/
body {
background: var(--bg);
color: var(--text);
font-family: var(--general_font);
min-height: 100vh;
display: flex;
flex-direction: column;
}
/*
//+------------------------------------------------------------------+
//| Top bar |
//+------------------------------------------------------------------+
*/
.topbar {
position: sticky;
top: 0;
z-index: 100;
background: rgba(10, 12, 15, 0.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
padding: 0 32px;
height: 49px;
display: flex;
align-items: center;
gap: 24px;
}
/*--- Logo ---*/
.logo {
font-family: var(--mono);
font-size: 14px;
font-weight: 600;
color: var(--accent);
letter-spacing: -0.3px;
white-space: nowrap;
}
.logo em {
color: var(--muted2);
font-style: normal;
}
/*--- Buscador ---*/
.search-wrap {
flex: 1;
max-width: 400px;
position: relative;
}
.search-wrap input {
width: 100%;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px 8px 30px;
font-family: var(--mono);
font-size: 12px;
color: var(--text);
outline: none;
transition: border-color 0.2s;
}
.search-wrap input:focus {
border-color: var(--accent);
}
.search-wrap input::placeholder {
color: var(--muted);
}
.search-icon {
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
color: var(--muted);
font-size: 13px;
pointer-events: none;
}
/*--- Derecha del topbar ---*/
.topbar-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 12px;
}
.count-badge {
font-family: var(--mono);
font-size: 12px;
color: var(--muted2);
background: var(--surface2);
border: 1px solid var(--border);
padding: 3px 10px;
border-radius: 20px;
}
.count-badge span {
color: var(--accent);
font-weight: 600;
}
/*
//+------------------------------------------------------------------+
//| Layout principal |
//+------------------------------------------------------------------+
*/
.layout {
display: flex;
flex: 1;
}
/*
//+------------------------------------------------------------------+
//| Sidebar |
//+------------------------------------------------------------------+
*/
.sidebar {
width: 220px;
flex-shrink: 0;
border-right: 1px solid var(--border);
padding: 10px 0;
position: sticky;
top: 49px;
height: calc(100vh - 49px);
overflow-y: auto;
}
.sidebar-section {
margin-bottom: 24px;
}
.sidebar-heading {
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 1.2px;
padding: 0 20px 8px;
}
/*Separador entre secion categories y el examples*/
.sidebar-section+.sidebar-section {
border-top: 1px solid var(--border);
padding-top: 10px;
}
/*--- Botones del sidebar ---*/
.filter-btn {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 7px 20px;
background: none;
border: none;
cursor: pointer;
font-family: var(--general_font);
font-size: 13px;
color: var(--muted2);
text-align: left;
transition: color 0.15s, background 0.15s;
}
.filter-btn:hover {
background: var(--surface);
color: var(--text);
}
.filter-btn.active {
color: var(--accent);
background: rgba(0, 208, 132, 0.06);
}
.filter-btn .dot {
width: 7px;
height: 7px;
border-radius: 50%;
flex-shrink: 0;
}
.filter-btn .cat-count {
margin-left: auto;
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
}
.filter-btn.active .cat-count {
color: var(--accent);
}
/*
//+------------------------------------------------------------------+
//| Main |
//+------------------------------------------------------------------+
*/
.main {
flex: 1;
padding: 28px 32px;
overflow-y: auto;
}
/*
//+------------------------------------------------------------------+
//| Grid de cards |
//+------------------------------------------------------------------+
*/
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 14px;
margin-bottom: 28px;
}
/*--- Card individual ---*/
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 18px 20px;
cursor: pointer;
transition: border-color 0.2s, transform 0.15s;
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 3px;
height: 100%;
background: var(--cat-color, var(--accent));
opacity: 0;
transition: opacity 0.2s;
}
.feature-card:hover {
border-color: var(--border2);
transform: translateY(-1px);
}
.feature-card:hover::before {
opacity: 1;
}
.feature-card.expanded {
border-color: var(--accent);
}
.feature-card.expanded::before {
opacity: 1;
}
/*--- Parte superior de la card ---*/
.card_top {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 10px;
}
.card_icon {
width: 34px;
height: 34px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
flex-shrink: 0;
font-family: var(--mono);
font-weight: 600;
color: var(--cat-color, var(--accent));
background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent)) 25%, transparent);
}
.card_meta {
flex: 1;
min-width: 0;
}
.card_name {
font-family: var(--mono);
font-size: 13px;
font-weight: 600;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card_sub {
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
margin-top: 2px;
}
/*--- Badges de la card ---*/
.card_badges {
display: flex;
gap: 5px;
flex-shrink: 0;
}
.badge {
font-family: var(--mono);
font-size: 10px;
padding: 2px 8px;
border-radius: 20px;
border: 1px solid;
}
.badge_type {
color: var(--muted2);
border-color: var(--border2);
background: var(--surface2);
}
/*--- Descripcion ---*/
.card_desc {
font-size: 12px;
color: var(--muted2);
line-height: 1.5;
margin-bottom: 10px;
}
/*--- Boton expandir ---*/
.card_expand_btn {
font-family: var(--mono);
font-size: 11px;
color: var(--muted);
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
gap: 4px;
transition: color 0.15s;
}
.card_expand_btn:hover {
color: var(--accent);
}
.arrow {
transition: transform 0.2s;
display: inline-block;
font-size: 9px;
}
.feature-card.expanded .arrow {
transform: rotate(90deg);
}
/*
//+------------------------------------------------------------------+
//| Panel expandido de la card |
//+------------------------------------------------------------------+
*/
.card_detail {
display: none;
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.feature-card.expanded .card_detail {
display: block;
}
.detail_label {
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.8px;
margin-bottom: 6px;
}
.detail_section {
margin-bottom: 14px;
}
/*--- Tabla de parametros ---*/
.params_list {
display: flex;
flex-direction: column;
gap: 5px;
}
.param_row {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--mono);
font-size: 11px;
}
.param_name {
color: var(--accent2);
font-weight: 600;
min-width: 110px;
}
.param_type {
color: var(--muted);
font-size: 10px;
min-width: 120px;
}
.param_default {
color: var(--accent3);
}
.no_params {
font-family: var(--mono);
font-size: 11px;
color: var(--muted);
}
/*--- Bloque DSL ---*/
.dsl_block {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 14px;
font-family: var(--mono);
font-size: 11px;
line-height: 1.7;
overflow-x: auto;
color: var(--muted2);
}
/*Naemde del feature*/
.dsl_name {
color: var(--accent);
font-weight: 600;
}
/*key de paraemtro*/
.dsl_key {
color: var(--accent2);
}
/*val del parameotr*/
.dsl_val {
color: var(--accent3);
}
/*separador=|*/
.dsl_sep {
color: var(--muted);
}
/*
//+------------------------------------------------------------------+
//| Paginacion |
//+------------------------------------------------------------------+
*/
.pagination {
display: flex;
align-items: center;
gap: 4px;
justify-content: center;
padding-bottom: 32px;
}
.page_btn {
font-family: var(--mono);
font-size: 12px;
padding: 5px 11px;
border-radius: 6px;
border: 1px solid var(--border2);
background: var(--surface);
color: var(--muted2);
cursor: pointer;
transition: all 0.15s;
min-width: 34px;
text-align: center;
}
.page_btn:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
}
.page_btn.active {
background: rgba(0, 208, 132, 0.12);
border-color: var(--accent);
color: var(--accent);
font-weight: 600;
}
.page_btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.page_dots {
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
padding: 0 4px;
}
/*
//+------------------------------------------------------------------+
//| Estado vacio |
//+------------------------------------------------------------------+
*/
.empty {
display: none;
text-align: center;
padding: 60px 20px;
color: var(--muted);
font-size: 13px;
font-family: var(--mono);
}
.empty.show {
display: block;
}
.empty_icon {
font-size: 28px;
margin-bottom: 12px;
opacity: 0.35;
}
/*
//+------------------------------------------------------------------+
//| Footer |
//+------------------------------------------------------------------+
*/
footer {
border-top: 1px solid var(--border);
padding: 16px 32px;
font-family: var(--mono);
font-size: 11px;
color: var(--muted);
display: flex;
justify-content: space-between;
align-items: center;
}
footer a {
color: var(--muted2);
text-decoration: none;
}
footer a:hover {
color: var(--accent);
}
/*--- Scrollbar ---*/
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border2);
border-radius: 3px;
}
/*
//+------------------------------------------------------------------+
//| Descripcion |
//+------------------------------------------------------------------+
*/
/*--- Wrapper de descripcion ---*/
/*--- Descripcion ---*/
.example_desc_wrap {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 7px;
flex-direction: column;
}
.example_desc_title {
font-family: var(--mono);
font-size: 11px;
color: #0d59bb;
letter-spacing: 0.8px;
text-transform: uppercase;
white-space: nowrap;
padding-top: 3px; /* alinear con el texto */
}
/*Top, Right, Bottom, Left.*/
#example_desc {
color: rgba(63, 190, 25, 0.486);
font-size: 13px;
line-height: 1.6;
font-family: var(--general_font);
background: #111418; /* ligeramente por encima del bg */
border: 1px solid #1e2530; /* border sutil */
padding: 8px 12px;
border-radius: 6px;
flex: 1;
}
/*--- Wrapper del bloque de codigo ---*/
.example_code_wrap {
display: flex;
flex-direction: column;
gap: 6px;
}
.example_code_title {
font-family: var(--mono);
font-size: 11px;
color: var(--muted);
letter-spacing: 0.8px;
text-transform: uppercase;
}
pre {
background: #111418;
border: 1px solid #1e2530;
border-radius: 6px;
padding: 16px;
overflow-x: auto;
margin: 0; /* quitar margen default del pre */
}