glichPostGen / app /miniApp /styles.css
PLUTON\igor.kreyda
Initial commit
66e3a81
:root {
--bg-color: #121212;
--surface-color: #1e1e1e;
--primary-color: #6200ee;
--primary-variant: #3700b3;
--secondary-color: #03dac6;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--border-radius: 12px;
--spacing-unit: 16px;
--bottom-nav-height: 60px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Header/Content Area */
.main-content {
flex: 1;
overflow-y: auto;
padding: var(--spacing-unit);
padding-bottom: calc(var(--bottom-nav-height) + var(--spacing-unit));
}
.tab-content {
display: none;
animation: fadeIn 0.3s ease-in-out;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
h2 {
margin-bottom: var(--spacing-unit);
font-weight: 600;
color: var(--text-primary);
}
/* Form Elements */
.form-group {
margin-bottom: 24px;
background: var(--surface-color);
padding: 16px;
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
label {
display: block;
margin-bottom: 8px;
color: var(--text-secondary);
font-size: 0.9em;
font-weight: 500;
}
/* Slider */
input[type=range] {
width: 100%;
-webkit-appearance: none;
appearance: none;
background: transparent;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
height: 20px;
width: 20px;
border-radius: 50%;
background: var(--primary-color);
cursor: pointer;
margin-top: -8px;
box-shadow: 0 0 10px rgba(98, 0, 238, 0.5);
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
cursor: pointer;
background: #444;
border-radius: 2px;
}
input[type=range]:focus {
outline: none;
}
.slider-value {
text-align: right;
font-size: 0.85em;
color: var(--primary-color);
margin-top: 4px;
}
/* Select */
select {
width: 100%;
padding: 12px;
background-color: #2c2c2c;
color: var(--text-primary);
border: 1px solid #444;
border-radius: 8px;
font-size: 1em;
appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 1em;
}
select:focus {
outline: none;
border-color: var(--primary-color);
}
/* Description Box */
.description-box {
width: 100%;
min-height: 100px;
padding: 12px;
background-color: #2c2c2c;
color: #ddd;
border: 1px solid #444;
border-radius: 8px;
font-size: 0.95em;
line-height: 1.5;
resize: none;
}
/* Tags Box */
.tags-box {
width: 100%;
min-height: 80px;
padding: 12px;
background-color: #2c2c2c;
color: #ddd;
border: 1px solid #444;
border-radius: 8px;
font-size: 0.95em;
line-height: 1.5;
resize: none;
font-family: monospace;
/* To make tags look code-like */
}
/* Bottom Navigation */
.bottom-nav {
position: fixed;
bottom: 0;
width: 100%;
height: var(--bottom-nav-height);
background-color: var(--surface-color);
display: flex;
justify-content: space-around;
align-items: center;
border-top: 1px solid #333;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
z-index: 100;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-secondary);
padding: 8px;
cursor: pointer;
transition: color 0.2s;
width: 50%;
}
.nav-item.active {
color: var(--primary-color);
}
.nav-icon {
width: 24px;
height: 24px;
margin-bottom: 4px;
fill: currentColor;
}
.nav-label {
font-size: 0.75em;
}