Files
MosisDesigner/assets/ui/components.rcss
2026-01-15 23:52:09 +01:00

705 lines
12 KiB
Plaintext

/* ==============================================
Components: Material UI Components
============================================== */
/* ============== Status Bar ============== */
.status-bar {
height: 24px;
padding: 0 12px;
background-color: transparent;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: #FFFFFF;
}
.status-bar-time {
font-weight: 500;
}
.status-bar-icons {
display: flex;
gap: 4px;
}
/* ============== App Bar ============== */
.app-bar {
height: 56px;
padding: 0 16px;
background-color: #1E1E1E;
display: flex;
align-items: center;
}
.app-bar-nav {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 8px;
}
.app-bar-title {
font-size: 20px;
font-weight: 500;
flex: 1;
color: #FFFFFF;
}
.app-bar-actions {
display: flex;
}
/* ============== Buttons ============== */
.btn {
padding: 12px 24px;
font-size: 14px;
font-weight: 500;
font-family: LatoLatin;
text-align: center;
border-radius: 4px;
cursor: pointer;
}
.btn-primary {
background-color: #BB86FC;
color: #000000;
}
.btn-primary:hover {
background-color: #D4A5FF;
}
.btn-primary:active {
background-color: #9A67EA;
}
.btn-secondary {
background-color: #03DAC6;
color: #000000;
}
.btn-secondary:hover {
background-color: #4AEADB;
}
.btn-outlined {
background-color: transparent;
border: 1px solid #BB86FC;
color: #BB86FC;
}
.btn-outlined:hover {
background-color: rgba(187, 134, 252, 0.1);
}
.btn-text {
background-color: transparent;
color: #BB86FC;
padding: 8px 16px;
}
.btn-text:hover {
background-color: rgba(187, 134, 252, 0.1);
}
/* Icon Button */
.btn-icon {
width: 48px;
height: 48px;
padding: 0;
border-radius: 24px;
background-color: transparent;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
}
.btn-icon:hover {
background-color: rgba(255, 255, 255, 0.1);
}
/* Floating Action Button */
.btn-fab {
width: 56px;
height: 56px;
border-radius: 28px;
background-color: #BB86FC;
color: #000000;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
position: absolute;
bottom: 72px;
right: 16px;
}
.btn-fab:hover {
background-color: #D4A5FF;
}
/* ============== Input Fields ============== */
.input-container {
margin-bottom: 16px;
}
.input-label {
font-size: 12px;
color: #B3B3B3;
margin-bottom: 4px;
}
.input-field {
width: 100%;
padding: 12px 0;
font-size: 16px;
font-family: LatoLatin;
color: #FFFFFF;
background-color: transparent;
border: none;
border-bottom: 1px solid #333333;
}
.input-field:focus {
border-bottom-color: #BB86FC;
}
.input-field:hover {
border-bottom-color: #666666;
}
/* Search Input */
.search-bar {
display: flex;
align-items: center;
padding: 8px 16px;
background-color: #2D2D2D;
border-radius: 24px;
margin: 8px 16px;
}
.search-icon {
font-size: 20px;
color: #B3B3B3;
margin-right: 12px;
}
.search-input {
flex: 1;
background-color: transparent;
border: none;
font-size: 16px;
color: #FFFFFF;
}
/* ============== Cards ============== */
.card {
background-color: #1E1E1E;
border-radius: 8px;
padding: 16px;
margin: 8px;
}
.card-elevated {
background-color: #2D2D2D;
}
.card-header {
font-size: 20px;
font-weight: 500;
margin-bottom: 8px;
color: #FFFFFF;
}
.card-subtitle {
font-size: 14px;
color: #B3B3B3;
margin-bottom: 12px;
}
.card-content {
font-size: 14px;
color: #B3B3B3;
}
.card-actions {
display: flex;
justify-content: flex-end;
margin-top: 16px;
gap: 8px;
}
/* ============== Lists ============== */
.list {
display: flex;
flex-direction: column;
}
.list-item {
display: flex;
align-items: center;
padding: 12px 16px;
min-height: 48px;
cursor: pointer;
}
.list-item:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.list-item:active {
background-color: rgba(255, 255, 255, 0.1);
}
.list-item-avatar {
width: 40px;
height: 40px;
border-radius: 20px;
background-color: #BB86FC;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: #000000;
}
.list-item-icon {
width: 40px;
height: 40px;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #B3B3B3;
}
.list-item-content {
flex: 1;
display: flex;
flex-direction: column;
}
.list-item-title {
font-size: 16px;
color: #FFFFFF;
}
.list-item-subtitle {
font-size: 14px;
color: #B3B3B3;
margin-top: 2px;
}
.list-item-action {
font-size: 24px;
color: #666666;
}
.list-divider {
height: 1px;
background-color: #333333;
margin-left: 72px;
}
.list-header {
padding: 16px 16px 8px 16px;
font-size: 14px;
font-weight: 500;
color: #BB86FC;
}
/* ============== Bottom Navigation ============== */
.bottom-nav {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 56px;
background-color: #1E1E1E;
display: flex;
border-top: 1px solid #333333;
}
.bottom-nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
color: #666666;
}
.bottom-nav-item:hover {
color: #B3B3B3;
}
.bottom-nav-item.active {
color: #BB86FC;
}
.bottom-nav-icon {
font-size: 24px;
margin-bottom: 4px;
}
.bottom-nav-label {
font-size: 12px;
}
/* ============== Dialogs/Modals ============== */
.modal-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
}
.modal-dialog {
background-color: #2D2D2D;
border-radius: 8px;
padding: 24px;
width: 280px;
max-width: 90%;
}
.modal-title {
font-size: 20px;
font-weight: 500;
color: #FFFFFF;
margin-bottom: 16px;
}
.modal-content {
font-size: 14px;
color: #B3B3B3;
margin-bottom: 24px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
/* ============== Toast/Snackbar ============== */
.toast {
position: absolute;
bottom: 72px;
left: 16px;
right: 16px;
background-color: #323232;
color: #FFFFFF;
padding: 14px 16px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
}
.toast-action {
color: #BB86FC;
font-weight: 500;
margin-left: 16px;
}
/* ============== Toggle/Switch ============== */
.toggle {
width: 36px;
height: 20px;
border-radius: 10px;
background-color: #666666;
position: relative;
cursor: pointer;
}
.toggle.active {
background-color: rgba(187, 134, 252, 0.5);
}
.toggle-thumb {
width: 16px;
height: 16px;
border-radius: 8px;
background-color: #B3B3B3;
position: absolute;
top: 2px;
left: 2px;
}
.toggle.active .toggle-thumb {
background-color: #BB86FC;
left: 18px;
}
/* ============== Chips/Tags ============== */
.chip {
display: inline-flex;
align-items: center;
padding: 6px 12px;
background-color: #2D2D2D;
border-radius: 16px;
font-size: 14px;
color: #FFFFFF;
margin: 4px;
}
.chip-icon {
margin-right: 8px;
}
.chip-delete {
margin-left: 8px;
font-size: 18px;
color: #B3B3B3;
}
/* ============== Dividers ============== */
.divider {
height: 1px;
background-color: #333333;
}
.divider-inset {
margin-left: 72px;
}
/* ============== App Grid (Home Screen) ============== */
.app-grid {
display: flex;
flex-wrap: wrap;
padding: 16px;
}
.app-icon {
width: 25%;
display: flex;
flex-direction: column;
align-items: center;
padding: 12px 0;
cursor: pointer;
}
.app-icon:hover {
background-color: rgba(255, 255, 255, 0.05);
border-radius: 8px;
}
.app-icon-image {
width: 48px;
height: 48px;
border-radius: 12px;
background-color: #BB86FC;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #000000;
margin-bottom: 8px;
}
.app-icon-label {
font-size: 12px;
color: #FFFFFF;
text-align: center;
}
/* ============== Dock ============== */
.dock {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80px;
background-color: rgba(30, 30, 30, 0.9);
display: flex;
justify-content: space-around;
align-items: center;
padding: 0 32px;
}
.dock-item {
width: 56px;
height: 56px;
border-radius: 14px;
background-color: #BB86FC;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: #000000;
cursor: pointer;
}
.dock-item:hover {
transform: scale(1.1);
}
/* ============== Dial Pad ============== */
.dial-pad {
display: flex;
flex-wrap: wrap;
padding: 16px;
}
.dial-key {
width: 33.33%;
height: 72px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 36px;
}
.dial-key:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.dial-key:active {
background-color: rgba(255, 255, 255, 0.2);
}
.dial-key-number {
font-size: 32px;
font-weight: 300;
color: #FFFFFF;
}
.dial-key-letters {
font-size: 10px;
color: #B3B3B3;
letter-spacing: 2px;
margin-top: 2px;
}
.dial-display {
font-size: 36px;
font-weight: 300;
color: #FFFFFF;
text-align: center;
padding: 24px 16px;
letter-spacing: 2px;
}
.dial-actions {
display: flex;
justify-content: center;
padding: 16px;
gap: 48px;
}
.dial-call-btn {
width: 64px;
height: 64px;
border-radius: 32px;
background-color: #4CAF50;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
color: #FFFFFF;
cursor: pointer;
}
.dial-call-btn:hover {
background-color: #66BB6A;
}
/* ============== Chat Bubbles ============== */
.chat-container {
display: flex;
flex-direction: column;
padding: 16px;
gap: 8px;
}
.chat-bubble {
max-width: 75%;
padding: 10px 14px;
border-radius: 18px;
font-size: 14px;
}
.chat-bubble-sent {
align-self: flex-end;
background-color: #BB86FC;
color: #000000;
border-bottom-right-radius: 4px;
}
.chat-bubble-received {
align-self: flex-start;
background-color: #2D2D2D;
color: #FFFFFF;
border-bottom-left-radius: 4px;
}
.chat-timestamp {
font-size: 11px;
color: #666666;
text-align: center;
margin: 8px 0;
}
.chat-input-container {
display: flex;
align-items: center;
padding: 8px 16px;
background-color: #1E1E1E;
border-top: 1px solid #333333;
}
.chat-input {
flex: 1;
padding: 10px 16px;
background-color: #2D2D2D;
border-radius: 24px;
border: none;
font-size: 16px;
color: #FFFFFF;
margin-right: 8px;
}
.chat-send-btn {
width: 40px;
height: 40px;
border-radius: 20px;
background-color: #BB86FC;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color: #000000;
cursor: pointer;
}