Files
matrix.to-dracula-theme/css/main.css
T
Dome a6b30c1b19 Refactor button styles and layout adjustments
Updated button styles for improved layout and transitions.
2026-04-07 21:08:06 +02:00

239 lines
5.2 KiB
CSS

/*
Copyright 2020 The Matrix.org Foundation C.I.C.
Modified 2026 for Zeitfresser Matrix Community Look & Mobile Fixes
*/
@import url('spinner.css');
@import url('client.css');
@import url('preview.css');
@import url('create.css');
@import url('open.css');
/* Globaler Fix für Box-Berechnungen */
* {
box-sizing: border-box;
}
:root {
--app-background: #1e1f29; /* Tief-Anthrazit der Webseite */
--background: #282a36; /* Hintergrund der Card */
--foreground: #f7f7fa; /* Reines Highlight-Weiß */
--font: #bdc3c7; /* Fließtext-Grau */
--grey: #64748b; /* Dunkles Grau für Identifier */
--accent: #0dbd8b; /* Matrix-Green */
--ztfr-purple: #bd93f9; /* Das Zeitfresser-Lila Akzent */
--error: #ff5555;
--link: #f7f7fa;
--borders: #2f313d;
--lightgrey: #383a59;
--spinner-stroke-size: 2px;
--sub-text: #bdc3c7;
}
html {
margin: 0;
padding: 0;
height: 100%;
overflow-x: hidden;
}
body {
background-color: var(--app-background);
background-image: none !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: var(--font);
padding: 80px 20px 0 20px;
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
h1, h2, h3 {
color: var(--foreground);
letter-spacing: -0.5px;
word-wrap: break-word;
}
p {
line-height: 1.7;
word-wrap: break-word;
}
a { text-decoration: none; color: var(--link); }
body, button, input, textarea {
font-size: 14px;
font-style: normal;
}
button, input[type=submit] {
cursor: pointer;
}
/* Die zentrale Kachel */
.card {
background-color: var(--background);
border-radius: 4px;
border-left: 4px solid var(--ztfr-purple);
box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.3);
padding: 2.5rem;
width: 100%;
}
.RootView {
margin: 0 auto;
max-width: 480px;
width: 100%;
}
/* BUTTONS: Statisch, stabilisiert und mit festen 4px Margin */
.primary, .secondary {
text-decoration: none;
font-weight: bold;
text-align: center;
padding: 14px 20px;
margin: 4px 0 !important;
display: block;
text-transform: uppercase;
letter-spacing: 1px;
width: 100%;
line-height: 1.2;
transition: background-color 0.1s linear, filter 0.1s linear, opacity 0.1s linear;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smooth: never;
transform: translateZ(0);
will-change: background-color;
backface-visibility: hidden;
}
.primary {
background: var(--foreground);
color: var(--app-background) !important;
border-radius: 4px;
border: 1px solid var(--foreground);
}
.primary:hover {
filter: brightness(0.9);
transform: none !important;
}
.secondary {
background: transparent;
color: var(--foreground);
border: 1px solid var(--foreground);
border-radius: 4px;
}
.secondary:hover {
background: rgba(255,255,255,0.05);
transform: none !important;
}
/* Fix für Button-Container (entfernt versteckte Gaps und stabilisiert Layout) */
.actions,
.ClientView .actions,
.ClientListView .actions,
.CustomInstanceView .actions {
display: flex !important;
flex-direction: column !important;
gap: 0px !important;
align-items: stretch;
justify-content: flex-start;
backface-visibility: hidden;
}
/* Entfernt den Abstand beim letzten Button in einer Gruppe */
.actions > *:last-child {
margin-bottom: 0 !important;
}
/* Input Felder */
input[type='text'].large {
width: 100%;
padding: 14px;
background: #1a1a1a !important;
border: 1px solid var(--borders);
border-radius: 4px;
font-size: 14px;
color: var(--foreground);
box-sizing: border-box;
margin-bottom: 10px;
}
.footer {
margin-top: 60px;
padding: 40px 20px;
text-align: center;
font-size: 0.85rem;
color: var(--sub-text);
opacity: 0.7;
border-top: 1px solid rgba(255, 255, 255, 0.05);
width: 100%;
}
.footer ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer li {
display: inline;
margin: 0;
}
.footer a {
color: inherit;
text-decoration: none;
border-bottom: 1px solid rgba(189, 195, 199, 0.3);
transition: all 0.3s ease;
}
.footer a:hover {
color: var(--foreground) !important;
border-bottom-color: var(--ztfr-purple) !important;
}
.footer button,
.footer input[type="submit"],
.ClientListView button.change,
.PreviewView button.change {
background: none !important;
border: none !important;
color: var(--grey) !important;
padding: 0 !important;
font-family: inherit !important;
font-size: inherit !important;
cursor: pointer !important;
border-bottom: 1px solid rgba(189, 195, 199, 0.3) !important;
}
.footer button:hover {
color: var(--foreground) !important;
border-bottom-color: var(--ztfr-purple) !important;
}
/* SPEZIELLE MOBILE ANPASSUNGEN */
@media screen and (max-width: 480px) {
body {
padding: 40px 10px 0 10px;
}
.card {
padding: 1.5rem;
border-radius: 2px;
}
h1 {
font-size: 1.5rem;
}
}