/* Kártyák reszponzív elrendezése */ .main-home { display: flex; flex-direction: column; align-items: center; padding: 20px; } .create-post-card { background-color: var(--color-white); border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 20px; width: 100%; max-width: 800px; margin-bottom: 20px; } .post-comment{ padding-left: 60px; } .comment p{ padding: 20px; } .profile-section { display: flex; align-items: center; margin-bottom: 15px; } .profile-info { margin-left: 10px; /* A kép és a név közötti távolság */ } .profile-name { font-size: 1.2em; /* Név mérete */ margin: 0; } .profile-img { border-radius: 50%; width: 50px; /* Ugyanakkora, mint a példa bejegyzés */ height: 50px; /* Ugyanakkora, mint a példa bejegyzés */ } .input-container { display: flex; align-items: center; /* Egy sorba állítja az input mezőt és a gombot */ gap: 10px; /* Távolság az input mező és a küldés gomb között */ width: 100%; /* Szélesség teljes kitöltése */ } /* Gomb stílus az input-container osztályban */ .input-container button { font-family: inherit; font-size: 16px; /* Csökkentett betűméret */ background: #4169E1; color: white; padding: 0.5em 0.8em; /* Csökkentett padding */ padding-left: 0.8em; /* Kisebb bal oldali padding */ display: flex; align-items: center; border: none; border-radius: 12px; /* Kisebb lekerekítés */ overflow: hidden; transition: all 0.2s; cursor: pointer; } /* Span stílus a gombon belül */ .input-container button span { display: block; margin-left: 0.2em; /* Csökkentett margó */ transition: all 0.3s ease-in-out; } /* SVG stílus a gombon belül */ .input-container button svg { display: block; transform-origin: center center; transition: transform 0.3s ease-in-out; } /* Hover animáció a SVG wrapper-re a gombon belül */ .input-container button:hover .svg-wrapper { animation: fly-1 0.6s ease-in-out infinite alternate; } /* Hover állapot SVG a gombon belül */ .input-container button:hover svg { transform: translateX(1em) rotate(45deg) scale(1); /* Csökkentett eltolás és méret */ } /* Hover állapot span a gombon belül */ .input-container button:hover span { transform: translateX(4em); /* Csökkentett eltolás */ } /* Aktív állapot a gombon belül */ .input-container button:active { transform: scale(0.9); /* Kisebb aktív állapot */ } /* Bounce animáció */ @keyframes fly-1 { from { transform: translateY(0.1em); } to { transform: translateY(-0.1em); } } #postInput { flex: 1; /* Fill available space */ border: none; padding: 10px; border-radius: 25px; color: var(--color-black); background-color: var(--color-bg); font-size: 1em; outline: none; margin-right: 10px; /* Space between input and button */ resize: vertical; /* Allow vertical resizing */ max-height: calc(1.2em * 8); /* Limit the height to 8 rows */ line-height: 1.2em; /* Set line height to match the row size */ /* Hide scrollbar */ overflow: hidden; /* Hides the scrollbar but prevents scrolling */ resize: none; } #postInput:hover { overflow-y: auto; /* Allows scrolling when hovering, without the scrollbar showing */ } /* Hide scrollbar for WebKit browsers */ #postInput::-webkit-scrollbar { display: none; } /* Hide scrollbar for Firefox */ #postInput { scrollbar-width: none; /* Firefox */ } /* Gomb stílusai */ button { font-family: inherit; font-size: 16px; background: #4169E1; color: white; padding: 0.5em 0.8em; display: flex; align-items: center; border: none; border-radius: 16px; overflow: hidden; transition: all 0.2s; cursor: pointer; } button:hover { transform: scale(1.05); background-color: #3658B4; } button span { display: block; margin-left: 0.3em; transition: all 0.3s ease-in-out; } button svg { display: block; transform-origin: center center; transition: transform 0.3s ease-in-out; } /* Kártyák stílusai */ .card-container { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 800px; margin-bottom: 20px; } .card { background-color: var(--color-white); border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 20px; width: 100%; } .card-header { display: flex; align-items: center; justify-content: space-between; /* Balra a profilkép, jobbra a név és dátum */ margin-bottom: 10px; } .card-profile-img { border-radius: 50%; width: 50px; /* Ugyanakkora, mint az új bejegyzés */ height: 50px; /* Ugyanakkora, mint az új bejegyzés */ margin-right: 10px; } .card-user-info { display: flex; justify-content: space-between; /* A név és a dátum külön keretben */ flex: 1; /* Növelje a helyet */ } .card-profile-name { margin: 0; font-size: 1.2em; /* Név mérete */ font-weight: bold; color: var(--color-black); } .card-date { color: #888; /* Szürke szín */ font-size: 0.9em; /* Kisebb méret, fele akkora */ text-align: right; /* Jobbra igazítva */ } .card p { margin: 10px 0; /* Hozzáadott margó a bejegyzés szövegéhez */ } .post-actions { display: flex; justify-content: flex-end; /* Kommentek gomb jobbra igazítása */ padding-top: 10px; } /* Reakció gombok */ .reaction-btn { background-color: #4169E1; /* Kék háttér a gomboknak */ border: none; cursor: pointer; display: flex; align-items: center; padding: 8px; /* Párna a gombokon */ border-radius: 8px; /* Lekerekített sarkok */ margin-right: 15px; /* Távolság a gombok között */ transition: background-color 0.3s; /* Háttér szín animáció */ } .reaction-btn:hover { background-color: #3658B4; /* Sötétebb kék a hover állapotban */ } .reaction-btn img { width: 24px; /* Állítsd be a nyilak méretét */ height: 24px; transition: transform 0.2s; /* Animációs transzformáció */ } .reaction-btn:hover .arrow-up { animation: bounce-up 0.5s infinite alternate; /* Felfelé pattogó animáció */ transform: rotate(270deg); /* Felfelé mutató */ } .reaction-btn:hover .arrow-down { animation: bounce-down 0.5s infinite alternate; /* Lefelé pattogó animáció */ transform: rotate(90deg); /* Lefelé mutató */ } /* Bounce animáció */ @keyframes bounce-up { 0% { transform: rotate(270deg) translateX(0); } 100% { transform: rotate(270deg) translateX(5px); } } @keyframes bounce-down { 0% { transform: rotate(90deg) translateX(0); } 100% { transform: rotate(90deg) translateX(5px); } } .reaction-count { font-size: 1em; /* Számláló méret */ color: white; /* Számláló szín */ margin-left: 5px; /* Távolság a számláló és a nyíl között */ } h2 { color: var(--color-black); } /* Komment szekció stílusok */ .comments-section { padding: 15px; background-color: var(--second-bg); border-top: 1px solid #ccc; margin-top: 10px; } /* Komment írása rész */ .write-comment { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; } .comment-profile-img { border-radius: 50%; width: 40px; height: 40px; } .comment-input { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #ccc; font-family: inherit; font-size: 1em; resize: none; background-color: var(--color-bg); } .submit-comment-btn { background-color: royalblue; color: white; border: none; padding: 0.5em 1em; border-radius: 10px; cursor: pointer; } .submit-comment-btn:hover { background-color: #3658B4; } /* Komment szekció stílusok */ .comments-section { padding: 15px; background-color: var(--second-bg); border-top: 1px solid var(--linecolor); margin-top: 10px; border-radius: 0 0 8px 8px; } /* Komment írása rész */ .write-comment { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; } .comment-profile-img { border-radius: 50%; width: 40px; height: 40px; } .comment-input { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #cccccc00; font-family: inherit; font-size: 0.9em; resize: none; overflow-y: scroll; } .comment-input::-webkit-scrollbar { display: none; } .comment-input { scrollbar-width: none; } .comment-input { -ms-overflow-style: none; } .submit-comment-btn { background-color: royalblue; color: white; border: none; padding: 0.5em 1em; border-radius: 10px; cursor: pointer; } .submit-comment-btn:hover { background-color: #3658B4; } /* Komment lista */ .comment-list { display: flex; flex-direction: column; gap: 15px; max-height: 300px; /* Maximális magasság a kommentekhez */ overflow-y: auto; /* Görgethetővé teszi a kommenteket */ padding-right: 10px; /* Kis extra hely a görgetősávnak */ } /* Görgetősáv stílus beállítása (opcionális) */ /* WebKit alapú böngészők (Chrome, Safari) */ .comment-list::-webkit-scrollbar { width: 8px; } .comment-list::-webkit-scrollbar-thumb { background-color: #ccc; /* Görgetősáv szín */ border-radius: 4px; } .comment-list::-webkit-scrollbar-thumb:hover { background-color: #ccc; /* Görgetősáv hover állapota */ } /* Firefox görgetősáv */ .comment-list { scrollbar-width: thin; scrollbar-color: #ccc var(--second-bg); } .comment { display: flex; gap: 10px; } .comment-content { color: var(--color-black); background-color: var(--color-white); padding: 10px; border-radius: 10px; box-shadow: 0 2px 4px rgba(--linecolor); flex: 1; } .comment-header { display: flex; justify-content: space-between; margin-bottom: 5px; } .comment-name { font-weight: bold; } .comment-date { font-size: 0.8em; color: #888; } /* Komment szöveg kisebb méretben */ .comment-text { font-size: 1em; /* Kisebb betűméret a komment szövegének */ margin-bottom: 5px; } /* Komment reakció gombok */ .comment-actions { display: flex; gap: 0px; margin-top: 5px; } .reaction-btn { background-color: #4169E1; border: none; cursor: pointer; display: flex; align-items: center; padding: 5px 20px; transition: background-color 0.3s; } #reaction-btn-right{ border-radius: 0 8px 8px 0; margin-left: 0; } #reaction-btn-left{ margin-right: 0; border-radius: 8px 0 0 8px; } .reaction-btn:hover { background-color: #3658B4; } .reaction-btn img { width: 20px; /* Kommentek nyilak kisebb méretűek */ height: 20px; transition: transform 0.2s; } .reaction-btn:hover .arrow-up { animation: bounce-up 0.5s infinite alternate; transform: rotate(270deg); } .reaction-btn:hover .arrow-down { animation: bounce-down 0.5s infinite alternate; transform: rotate(90deg); } .reaction-count { font-size: 0.9em; /* Számláló mérete kisebb a kommenteknél */ color: white; margin-left: 5px; } /* Bounce animáció a komment reakciókhoz is */ @keyframes bounce-up { 0% { transform: rotate(270deg) translateX(0); } 100% { transform: rotate(270deg) translateX(5px); } } @keyframes bounce-down { 0% { transform: rotate(90deg) translateX(0); } 100% { transform: rotate(90deg) translateX(5px); } }