Finals
This commit is contained in:
583
css/settings.css
583
css/settings.css
@ -1,295 +1,362 @@
|
||||
/* Konténer, ami összefogja a beállításokat */
|
||||
/* Általános beállítások */
|
||||
:root {
|
||||
--color-white: #ffffff;
|
||||
--color-black: #333333;
|
||||
--color-bg: #f5f5f5;
|
||||
--color-primary: #007bff;
|
||||
--color-primary-hover: #0056b3;
|
||||
--color-danger: #dc3545;
|
||||
--color-danger-hover: #bd2130;
|
||||
--transition: all 0.3s ease;
|
||||
--border-radius: 12px;
|
||||
--box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-black);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Konténer beállítások */
|
||||
.settings-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 10px; /* Belépő margó hozzáadása */
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Kártyák stílusa */
|
||||
/* Kártya stílusok */
|
||||
.settings-card {
|
||||
flex: 1;
|
||||
min-width: 300px;
|
||||
max-width: 48%;
|
||||
margin: 10px;
|
||||
padding: 20px;
|
||||
background-color: var(--color-white);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
||||
transition: var(--transition);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center; /* Kártyán belül középre igazítás */
|
||||
text-align: center; /* Szövegek középre igazítása */
|
||||
}
|
||||
|
||||
/* Telefonos nézet */
|
||||
@media (max-width: 768px) {
|
||||
.settings-card {
|
||||
max-width: 100%;
|
||||
margin: 10px 0;
|
||||
}
|
||||
background-color: var(--color-white);
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: var(--box-shadow);
|
||||
margin-bottom: 30px;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-card h2 {
|
||||
margin-bottom: 20px;
|
||||
color: var(--color-black);
|
||||
font-size: 1.5em; /* Nagyobb betűméret a címekhez */
|
||||
background-color: var(--second-bg);
|
||||
padding: 15px;
|
||||
margin: -20px -20px 20px -20px;
|
||||
border-top-left-radius: var(--border-radius);
|
||||
border-top-right-radius: var(--border-radius);
|
||||
font-size: 1.5em;
|
||||
color: var(--color-black);
|
||||
}
|
||||
|
||||
/* Zene beállítások kártya */
|
||||
.music-settings {
|
||||
max-width: 600px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.music-settings #video-container {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.music-settings #youtubePlayer {
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
/* Címke és beviteli mezők */
|
||||
.mini-label {
|
||||
color: var(--color-black);
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
text-align: left; /* Balra igazítás a címkékhez */
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
color: var(--color-black);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.settings-card input[type="text"],
|
||||
.settings-card textarea {
|
||||
width: 100%;
|
||||
color: black;
|
||||
margin-bottom: 15px;
|
||||
padding: 10px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box; /* Box-sizing hozzáadása, hogy a padding ne befolyásolja a méretet */
|
||||
input[type="text"],
|
||||
textarea {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-black);
|
||||
}
|
||||
|
||||
.settings-card textarea {
|
||||
height: 150px; /* Fix magasság a szöveges beviteli mezőhöz */
|
||||
resize: vertical; /* Csak függőlegesen méretezhető */
|
||||
}
|
||||
|
||||
#video-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.loop-switch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.loop-switch input[type="checkbox"] {
|
||||
margin-right: 10px;
|
||||
width: 30px;
|
||||
height: 16px;
|
||||
appearance: none;
|
||||
background-color: #ddd;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.loop-switch input[type="checkbox"]:checked {
|
||||
background-color: #4CAF50;
|
||||
}
|
||||
|
||||
.loop-switch input[type="checkbox"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.loop-switch input[type="checkbox"]:checked::before {
|
||||
transform: translateX(14px);
|
||||
textarea {
|
||||
height: 150px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/* Kapcsoló és gomb konténer */
|
||||
.loop-switch,
|
||||
.button-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px; /* A gombok közötti távolság */
|
||||
margin-top: 15px;
|
||||
flex-wrap: wrap; /* Törés kisebb képernyőn */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
/* Gomb stílusok */
|
||||
.settings-button {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
|
||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Alapárnyék */
|
||||
width: auto; /* Automatikus szélesség a tartalom alapján */
|
||||
max-width: 200px; /* Maximális szélesség */
|
||||
flex: 1; /* Fele-fele arányban oszlik meg a gomb szélessége */
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
color: var(--color-white);
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.settings-button:hover {
|
||||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Hover esetén erősebb árnyék */
|
||||
transform: translateY(-4px); /* Enyhe felemelkedés */
|
||||
#save-music,
|
||||
#save-profile {
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.settings-button:active {
|
||||
transform: translateY(0); /* Vissza az eredeti helyzetbe */
|
||||
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Alapállapot */
|
||||
}
|
||||
|
||||
#save-music, .settings-button {
|
||||
background-color: #007bff;
|
||||
#save-music:hover,
|
||||
#save-profile:hover {
|
||||
background-color: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
#reset-music {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#save-music, .settings-button:hover {
|
||||
background-color: #0056b3;
|
||||
background-color: var(--color-danger);
|
||||
}
|
||||
|
||||
#reset-music:hover {
|
||||
background-color: rgb(171, 0, 0);
|
||||
background-color: var(--color-danger-hover);
|
||||
}
|
||||
|
||||
/* Reszponzív beállítások kisebb képernyőkre */
|
||||
@media (max-width: 768px) {
|
||||
.settings-button {
|
||||
max-width: 100%; /* Mobilnézetben a gombok teljes szélességet elfoglalnak */
|
||||
}
|
||||
}
|
||||
|
||||
/* Felnőtt tartalmak szűrése kapcsoló stílusai */
|
||||
/* Rocker switch (NSFW gomb) stílusok */
|
||||
.rocker {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
color: #888;
|
||||
width: 7em;
|
||||
height: 4em;
|
||||
overflow: hidden;
|
||||
border-bottom: 0.5em solid #eee;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
color: #888;
|
||||
width: 7em;
|
||||
height: 4em;
|
||||
overflow: hidden;
|
||||
border-bottom: 0.5em solid #eee;
|
||||
}
|
||||
|
||||
.rocker-small {
|
||||
font-size: 0.75em;
|
||||
/* Sizes the switch */
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.rocker::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #999;
|
||||
border: 0.5em solid #eee;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.rocker input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.switch-left,
|
||||
.switch-right {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 2.5em;
|
||||
width: 3em;
|
||||
transition: 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.switch-left {
|
||||
height: 2.4em;
|
||||
width: 2.75em;
|
||||
left: 0.85em;
|
||||
bottom: 0.4em;
|
||||
background-color: #ddd;
|
||||
transform: rotate(15deg) skewX(15deg);
|
||||
}
|
||||
|
||||
.switch-right {
|
||||
right: 0.5em;
|
||||
bottom: 0;
|
||||
background-color: #bd5757;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.switch-left::before,
|
||||
.switch-right::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0.4em;
|
||||
height: 2.45em;
|
||||
bottom: -0.45em;
|
||||
background-color: #ccc;
|
||||
transform: skewY(-65deg);
|
||||
}
|
||||
|
||||
.switch-left::before {
|
||||
left: -0.4em;
|
||||
}
|
||||
|
||||
.switch-right::before {
|
||||
right: -0.375em;
|
||||
background-color: transparent;
|
||||
transform: skewY(65deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left {
|
||||
background-color: #0084d0;
|
||||
color: #fff;
|
||||
bottom: 0px;
|
||||
left: 0.5em;
|
||||
height: 2.5em;
|
||||
width: 3em;
|
||||
transform: rotate(0deg) skewX(0deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left::before {
|
||||
background-color: transparent;
|
||||
width: 3.0833em;
|
||||
}
|
||||
|
||||
input:checked + .switch-left + .switch-right {
|
||||
background-color: #ddd;
|
||||
color: #888;
|
||||
bottom: 0.4em;
|
||||
right: 0.8em;
|
||||
height: 2.4em;
|
||||
width: 2.75em;
|
||||
transform: rotate(-15deg) skewX(-15deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left + .switch-right::before {
|
||||
background-color: #ccc;
|
||||
}
|
||||
.settings-card {
|
||||
padding: 15px; /* A kártya párnázása */
|
||||
}
|
||||
|
||||
.settings-card h2 {
|
||||
font-size: 1.3em; /* Cím mérete */
|
||||
padding: 12px; /* Cím körüli párnázás */
|
||||
margin: 0; /* Margó eltávolítása a cím körül */
|
||||
text-align: left; /* Balra igazítás */
|
||||
}
|
||||
|
||||
.content-filter-container {
|
||||
display: flex; /* Flexbox elrendezés */
|
||||
flex-direction: column; /* Függőleges irány */
|
||||
align-items: center; /* Elemei középre igazítása */
|
||||
}
|
||||
|
||||
.content-filter-container .mini-label {
|
||||
margin-bottom: 10px; /* Térköz a címke és a kapcsoló között */
|
||||
align-self: flex-start; /* Balra igazítás a labelnek */
|
||||
}
|
||||
|
||||
/* Középre helyezés a kapcsoló konténerhez */
|
||||
.switch-container {
|
||||
display: flex;
|
||||
justify-content: center; /* Középre igazítás */
|
||||
width: 100%; /* 100% szélesség */
|
||||
}
|
||||
|
||||
/* Keyboard Users */
|
||||
input:focus + .switch-left {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
input:checked:focus + .switch-left {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input:focus + .switch-left + .switch-right {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input:checked:focus + .switch-left + .switch-right {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* Reszponzív beállítások */
|
||||
@media (max-width: 768px) {
|
||||
.settings-container {
|
||||
padding: 10px; /* Kép beállítások */
|
||||
}
|
||||
|
||||
.rocker-small {
|
||||
font-size: 0.75em;
|
||||
/* Sizes the switch */
|
||||
margin: 1em;
|
||||
.settings-card {
|
||||
padding: 15px; /* Kártya párnázása */
|
||||
}
|
||||
|
||||
.rocker::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #999;
|
||||
border: 0.5em solid #eee;
|
||||
border-bottom: 0;
|
||||
|
||||
.music-settings {
|
||||
max-width: 100%; /* Zene beállítások reszponzív */
|
||||
}
|
||||
|
||||
.rocker input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.switch-left,
|
||||
.switch-right {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 2.5em;
|
||||
width: 3em;
|
||||
transition: 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.switch-left {
|
||||
height: 2.4em;
|
||||
width: 2.75em;
|
||||
left: 0.85em;
|
||||
bottom: 0.4em;
|
||||
background-color: #ddd;
|
||||
transform: rotate(15deg) skewX(15deg);
|
||||
}
|
||||
|
||||
.switch-right {
|
||||
right: 0.5em;
|
||||
bottom: 0;
|
||||
background-color: #bd5757;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.switch-left::before,
|
||||
.switch-right::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 0.4em;
|
||||
height: 2.45em;
|
||||
bottom: -0.45em;
|
||||
background-color: #ccc;
|
||||
transform: skewY(-65deg);
|
||||
}
|
||||
|
||||
.switch-left::before {
|
||||
left: -0.4em;
|
||||
}
|
||||
|
||||
.switch-right::before {
|
||||
right: -0.375em;
|
||||
background-color: transparent;
|
||||
transform: skewY(65deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left {
|
||||
background-color: #0084d0;
|
||||
color: #fff;
|
||||
bottom: 0px;
|
||||
left: 0.5em;
|
||||
height: 2.5em;
|
||||
width: 3em;
|
||||
transform: rotate(0deg) skewX(0deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left::before {
|
||||
background-color: transparent;
|
||||
width: 3.0833em;
|
||||
}
|
||||
|
||||
input:checked + .switch-left + .switch-right {
|
||||
background-color: #ddd;
|
||||
color: #888;
|
||||
bottom: 0.4em;
|
||||
right: 0.8em;
|
||||
height: 2.4em;
|
||||
width: 2.75em;
|
||||
transform: rotate(-15deg) skewX(-15deg);
|
||||
}
|
||||
|
||||
input:checked + .switch-left + .switch-right::before {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
/* Keyboard Users */
|
||||
input:focus + .switch-left {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
input:checked:focus + .switch-left {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input:focus + .switch-left + .switch-right {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input:checked:focus + .switch-left + .switch-right {
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
/* CSS részletek, beleértve a lock-container stílusokat */
|
||||
.lock-container {
|
||||
display: flex; /* Flexbox elrendezés */
|
||||
align-items: center; /* Vertikális középre igazítás */
|
||||
justify-content: center; /* Horizontális középre igazítás */
|
||||
margin: 15px 0; /* Margó a zár gomb körül */
|
||||
}
|
||||
|
||||
.lock-label {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: rgb(80, 80, 80);
|
||||
border-radius: 15px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.lock-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transform: rotate(-10deg);
|
||||
}
|
||||
|
||||
.shackle {
|
||||
background-color: transparent;
|
||||
height: 9px;
|
||||
width: 14px;
|
||||
border-top-right-radius: 10px;
|
||||
border-top-left-radius: 10px;
|
||||
border-top: 3px solid white;
|
||||
border-left: 3px solid white;
|
||||
border-right: 3px solid white;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.lock-body {
|
||||
width: 15px;
|
||||
}
|
||||
|
||||
#lock {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#lock:checked + .lock-label .lock-wrapper .shackle {
|
||||
transform: rotateY(150deg) translateX(3px);
|
||||
transform-origin: right;
|
||||
}
|
||||
|
||||
#lock:checked + .lock-label {
|
||||
background-color: rgb(167, 71, 245);
|
||||
}
|
||||
|
||||
.lock-label:active {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
|
Reference in New Issue
Block a user