Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * {
- padding: 0;
- margin: 0;
- }
- html {
- box-sizing: border-box;
- }
- *, *::before, *::after {
- box-sizing: inherit;
- }
- html {
- font: 14px/1.5 Verdana, sans-serif;
- }
- body, input, table, button, form {
- font: inherit;
- }
- body {
- font-family: Arial, sans-serif;
- color: #333;
- line-height: 1.6;
- display: flex;
- flex-direction: column;
- background-color: #f0f0f0;
- min-height: 100vh; /* Минимална височина на екрана */
- padding-top: 50px; /* Добавяне на място под хедъра (според височината на хедъра) */
- padding-bottom: 50px; /* Добавяне на място над футъра (според височината на футъра) */
- box-sizing: border-box; /* Включване на падинга в размера на body */
- }
- /* Стилизация на header */
- header {
- position: fixed; /* Фиксиране на хедъра */
- top: 0; /* Разположение в горната част на страницата */
- left: 0; /* Започва от лявата страна */
- width: 100%; /* Ширина 100% от екрана */
- max-width: 100vw; /* Гарантира, че хедърът няма да надвиши ширината на екрана */
- box-sizing: border-box; /* Включва вътрешните отстъпи в размера на хедъра */
- background-color: #fff; /* Цвят на фона */
- color: #fff; /* Цвят на текста */
- padding: 5px 20px; /* Разстояние около елементите в хедъра */
- font-size: 1rem; /* Размер на шрифта */
- z-index: 1000; /* Поставя хедъра над останалото съдържание */
- display: flex; /* Използваме flexbox */
- justify-content: space-between; /* За да разположим елементите по краищата */
- align-items: center; /* Центриране по вертикала */
- box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
- }
- /* Лого */
- header .logo {
- text-decoration: none;
- color: black;
- font-weight: bold;
- transition: color 0.3s;
- margin-left: 0; /* Премахва допълнителен ляв отстъп */
- font-style: italic;
- box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
- padding: 0.2em;
- background-color:#fff;
- border-radius: 0.2em;
- }
- header h1 {
- margin: 0;
- font-size: 1.8rem;
- }
- nav {
- display: flex;
- }
- nav a {
- text-decoration: none;
- color: black;
- margin-right: 10px;
- font-size: 1rem;
- padding: 10px;
- transition: color 0.3s, border-bottom 0.3s;
- }
- nav a:last-child {
- margin-right: 0;
- }
- nav a:hover {
- color: #ffcc00;
- border-bottom: 2px solid #ffcc00;
- }
- /* Footer стилове */
- footer {
- position: fixed; /* Фиксиране на футера */
- bottom: 0; /* Разположение в долната част на страницата */
- left: 0; /* Започва от лявата страна */
- width: 100%; /* Задайте ширината на 100% от екрана */
- max-width: 100vw; /* Гарантирайте, че футерът не надвишава ширината на екрана */
- box-sizing: border-box; /* Включете вътрешните отстъпи в размера на футера */
- background-color: #fff;
- color: black; /* Цвят на текста */
- text-align: center; /* Центриране на текста */
- padding: 10px 0; /* Разстояние около текста */
- font-size: 1rem; /* Размер на шрифта */
- z-index: 1000; /* Поставяне на футера над останалото съдържание */
- box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
- }
- /*login css*/
- html {
- height: 100%;
- }
- body {
- margin: 0;
- padding: 0;
- font-family: Arial, sans-serif;
- background: linear-gradient(#141e30, #243b55);
- }
- .login-box {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 400px;
- padding: 40px;
- transform: translate(-50%, -50%);
- background: rgba(0, 0, 0, 0.5);
- box-sizing: border-box;
- box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
- border-radius: 10px;
- }
- .login-box h2 {
- margin: 0 0 30px;
- padding: 0;
- color: #fff;
- text-align: center;
- font-size: 1.8em;
- }
- .login-box .user-box {
- position: relative;
- }
- .login-box .user-box input {
- width: 100%;
- padding: 10px 0;
- font-size: 16px;
- color: #fff;
- margin-bottom: 30px;
- border: none;
- border-bottom: 1px solid #fff;
- outline: none;
- background: transparent;
- }
- .login-box .user-box label {
- position: absolute;
- top: 0;
- left: 0;
- padding: 10px 0;
- font-size: 16px;
- color: #fff;
- pointer-events: none;
- transition: 0.5s;
- }
- .login-box .user-box input:focus ~ label,
- .login-box .user-box input:valid ~ label {
- top: -20px;
- left: 0;
- color: #ffea00;
- font-size: 12px;
- }
- /* СТИЛ ЗА BUTTON */
- .login-button {
- position: relative;
- display: inline-block;
- padding: 10px 20px;
- color: #e80909;
- font-size: 16px;
- background: none;
- border: none;
- text-transform: uppercase;
- overflow: hidden;
- transition: 0.5s;
- margin-top: 40px;
- letter-spacing: 4px;
- cursor: pointer;
- }
- .login-button:hover {
- background: #e80909;
- color: #fff;
- border-radius: 5px;
- box-shadow: 0 0 5px #f1a0a0,
- 0 0 25px #e80909,
- 0 0 50px #e80909,
- 0 0 100px #f1a0a0;
- }
- .login-button span {
- position: absolute;
- display: block;
- }
- .login-button span:nth-child(1) {
- top: 0;
- left: -100%;
- width: 100%;
- height: 2px;
- background: linear-gradient(90deg, transparent, #e80909);
- animation: btn-anim1 1s linear infinite;
- }
- @keyframes btn-anim1 {
- 0% {
- left: -100%;
- }
- 50%, 100% {
- left: 100%;
- }
- }
- .login-button span:nth-child(2) {
- top: -100%;
- right: 0;
- width: 2px;
- height: 100%;
- background: linear-gradient(180deg, transparent, #e80909);
- animation: btn-anim2 1s linear infinite;
- animation-delay: 0.25s;
- }
- @keyframes btn-anim2 {
- 0% {
- top: -100%;
- }
- 50%, 100% {
- top: 100%;
- }
- }
- .login-button span:nth-child(3) {
- bottom: 0;
- right: -100%;
- width: 100%;
- height: 2px;
- background: linear-gradient(270deg, transparent, #e80909);
- animation: btn-anim3 1s linear infinite;
- animation-delay: 0.5s;
- }
- @keyframes btn-anim3 {
- 0% {
- right: -100%;
- }
- 50%, 100% {
- right: 100%;
- }
- }
- .login-button span:nth-child(4) {
- bottom: -100%;
- left: 0;
- width: 2px;
- height: 100%;
- background: linear-gradient(360deg, transparent, #e80909);
- animation: btn-anim4 1s linear infinite;
- animation-delay: 0.75s;
- }
- @keyframes btn-anim4 {
- 0% {
- bottom: -100%;
- }
- 50%, 100% {
- bottom: 100%;
- }
- }
- /*register css*/
- html {
- height: 100%;
- }
- body {
- margin: 0;
- padding: 0;
- font-family: sans-serif;
- background: linear-gradient(#141e30, #243b55);
- }
- .login-register-div {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 400px;
- padding: 40px;
- transform: translate(-50%, -50%);
- background: rgba(0,0,0,0.5);
- box-sizing: border-box;
- box-shadow: 0 15px 25px rgba(0,0,0,0.6);
- border-radius: 10px;
- color: #fff;
- }
- .login-register-box h1 {
- margin: 0 0 30px;
- padding: 0;
- color: #fff;
- text-align: center;
- font-size: 1.8em;
- }
- .form-group {
- position: relative;
- }
- .form-group input {
- width: 100%;
- padding: 10px 0;
- font-size: 16px;
- color: #fff;
- margin-bottom: 30px;
- border: none;
- border-bottom: 1px solid #fff;
- outline: none;
- background: transparent;
- }
- .form-group label {
- position: absolute;
- top: 0;
- left: 0;
- padding: 10px 0;
- font-size: 16px;
- color: #fff;
- pointer-events: none;
- transition: 0.5s;
- }
- .form-group input:focus ~ label,
- .form-group input:valid ~ label {
- top: -20px;
- left: 0;
- color: #ffea00;
- font-size: 12px;
- }
- /* Animated button styling */
- .animated-button {
- position: relative;
- display: inline-block;
- padding: 10px 20px;
- color: #e80909;
- font-size: 16px;
- text-decoration: none;
- text-transform: uppercase;
- overflow: hidden;
- transition: 0.5s;
- margin-top: 40px;
- letter-spacing: 4px;
- border: none;
- background: none;
- cursor: pointer;
- }
- .animated-button:hover {
- background: #e80909;
- color: #fff;
- border-radius: 5px;
- box-shadow: 0 0 5px #f1a0a0,
- 0 0 25px #e80909,
- 0 0 50px #e80909,
- 0 0 100px #f1a0a0;
- }
- .animated-button span {
- position: absolute;
- display: block;
- }
- .animated-button span:nth-child(1) {
- top: 0;
- left: -100%;
- width: 100%;
- height: 2px;
- background: linear-gradient(90deg, transparent, #e80909);
- animation: btn-anim1 1s linear infinite;
- }
- .animated-button span:nth-child(2) {
- top: -100%;
- right: 0;
- width: 2px;
- height: 100%;
- background: linear-gradient(180deg, transparent, #e80909);
- animation: btn-anim2 1s linear infinite;
- animation-delay: 0.25s;
- }
- .animated-button span:nth-child(3) {
- bottom: 0;
- right: -100%;
- width: 100%;
- height: 2px;
- background: linear-gradient(270deg, transparent, #e80909);
- animation: btn-anim3 1s linear infinite;
- animation-delay: 0.5s;
- }
- .animated-button span:nth-child(4) {
- bottom: -100%;
- left: 0;
- width: 2px;
- height: 100%;
- background: linear-gradient(360deg, transparent, #e80909);
- animation: btn-anim4 1s linear infinite;
- animation-delay: 0.75s;
- }
- @keyframes btn-anim1 {
- 0% { left: -100%; }
- 50%, 100% { left: 100%; }
- }
- @keyframes btn-anim2 {
- 0% { top: -100%; }
- 50%, 100% { top: 100%; }
- }
- @keyframes btn-anim3 {
- 0% { right: -100%; }
- 50%, 100% { right: 100%; }
- }
- @keyframes btn-anim4 {
- 0% { bottom: -100%; }
- 50%, 100% { bottom: 100%; }
- }
- .second-option {
- margin-top: 20px;
- text-align: center;
- }
- .second-option a {
- color: #e80909;
- text-decoration: none;
- }
- .second-option a:hover {
- text-decoration: underline;
- }
- .form-control {
- width: 100%;
- padding: 10px 0;
- font-size: 16px;
- color: #fff;
- margin-bottom: 30px;
- border: none;
- border-bottom: 1px solid #fff;
- outline: none;
- background: transparent;
- }
- input:-webkit-autofill {
- -webkit-box-shadow: 0 0 0px 1000px #0e131d inset !important; /* черен фон */
- -webkit-text-fill-color: #fff !important; /* цвят на текста */
- transition: background-color 5000s ease-in-out 0s;
- }
- /*Profile Details*/
- .info-section {
- background: #fff;
- padding: 30px;
- border-radius: 10px;
- box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px;
- max-width: 600px;
- width: 100%;
- margin: 0 auto;
- text-align: left;
- }
- .info-section h1 {
- font-size: 20px;
- margin-bottom: 20px;
- text-align: center;
- color: #222;
- }
- .profile-photo {
- margin-bottom: 20px;
- text-align: center;
- }
- .profile-photo img {
- width: 150px;
- height: 150px;
- object-fit: cover;
- border-radius: 50%;
- box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px;
- }
- .description {
- font-size: 16px;
- margin-bottom: 10px;
- text-align: center;
- }
- /* Submit-style Buttons (Edit/Delete) */
- .edit-del-buttons {
- margin-top: 20px;
- display: flex;
- gap: 1em;
- justify-content: flex-end;
- font-style: normal;
- }
- .submit-btn {
- background-color: #4c86af;
- color: white;
- padding: 7px 15px;
- font-weight: bold;
- border: none;
- border-radius: 5px;
- cursor: pointer;
- transition: background-color 0.3s ease;
- text-decoration: none;
- box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
- }
- .submit-btn:hover {
- background-color: #2d4e67;
- }
- .center-wrapper {
- display: flex;
- justify-content: center;
- align-items: center;
- height: calc(100vh - 100px); /* - header (50px) - footer (50px) */
- padding: 10px; /* предотвратява залепване при малки екрани */
- }
- /*END OF Profile Details*/
- /*Profile Update*/
- .edit-delete {
- background-color: #fff;
- padding: 10px 5px;
- border-radius: 8px;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
- width: 80%;
- max-width: 400px;
- text-align: center;
- max-height: 80vh; /* Ограничаване на височината на контейнера */
- overflow-y: auto;
- margin: 0 auto; /* Центриране и отстояние от header и footer */
- margin-top: 70px;
- }
- /* Заглавие на секцията */
- .edit-delete h2 {
- font-size: 15px;
- color: #333;
- margin-bottom: 15px;
- }
- /* Стилове за формата */
- .update-form {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- /* Полета във формата */
- form p {
- font-size: 12px;
- color: black;
- width: 80%;
- margin-bottom: 2px;
- }
- .update-form input[type="text"],
- .update-form input[type="email"],
- .update-form input[type="file"] {
- width: 100%;
- padding: 4px;
- margin-bottom: 10px;
- border: 1px solid #ccc;
- border-radius: 4px;
- font-size: 12px;
- color: black;
- }
- /* Бутон за редактиране */
- .edit-btn {
- background-color: #4c86af;
- color: white;
- border: none;
- padding: 7px 15px;
- border-radius: 5px;
- cursor: pointer;
- font-weight: bold;
- transition: background-color 0.3s ease;
- box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
- }
- .edit-btn:hover {
- background-color: #2d4e67;
- }
- /* Стил за бутона за връщане назад */
- .back-btn {
- background-color: #4c86af;
- color: white; /* Белият текст */
- padding: 7px 12px; /* Padding за създаване на "бутон" */
- border: none;
- border-radius: 5px;
- text-decoration: none; /* Премахва подчертаването на линка */
- font-weight: bold;
- display: inline-block; /* Прави линка да се държи като бутон */
- cursor: pointer;
- transition: background-color 0.3s ease;
- box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
- }
- .back-btn:hover {
- background-color: #2d4e67; /* По-светъл нюанс на черното при задържане */
- color: white; /* Запазва текста бял при задържане */
- }
- .profile-update-btn {
- margin: 2em;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- gap: 1em;
- }
- /* Скриване на CSRF токена */
- form input[name="csrfmiddlewaretoken"] {
- display: none;
- }
- /* PROFILE DELETE*/
- .profile-delete {
- display: flex;
- justify-content: center;
- align-items: center;
- height: calc(100vh - 100px);
- box-sizing: border-box;
- padding: 0;
- }
- .container {
- background-color: white;
- padding: 10px; /* Вътрешно разстояние в контейнера */
- border-radius: 8px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- text-align: center;
- width: 100%;
- max-width: 600px;
- max-height: calc(100vh - 40px); /* Ограничаване на височината до 100% от прозореца, минус малко пространство */
- overflow-y: auto; /* Скрол вътре в контейнера само ако съдържанието го изисква */
- box-sizing: border-box; /* Включване на padding в размера */
- }
- .container h1 {
- color: red;
- font-style: italic;
- }
- .container img {
- width: 100%;
- max-width: 350px; /* Намален размер на изображението */
- margin-top: 20px; /* Намален маргин */
- margin-bottom: 20px;
- border-radius: 8px;
- }
- .profile-delete-btn {
- display: flex;
- justify-content: flex-end;
- gap: 1em;
- }
- .profile-delete-yes {
- background-color: #007bff;
- color: white;
- border: none;
- padding: 6px 12px;
- border-radius: 5px;
- cursor: pointer;
- font-size: 14px;
- transition: background-color 0.3s ease;
- }
- .back-delete-btn {
- background-color: #007bff;
- color: white;
- border: none;
- padding: 6px 12px;
- border-radius: 5px;
- cursor: pointer;
- font-size: 12px;
- transition: background-color 0.3s ease;
- text-decoration: none;
- }
- .profile-delete-yes:hover {
- background-color: #0056b3;
- }
- .back-delete-btn:hover {
- background-color: #0056b3;
- }
- /* Основна секция */
- .create-publication, .update-publication {
- max-width: 500px;
- margin: 40px auto;
- padding: 20px 24px;
- background-color: #ffffff;
- border-radius: 12px;
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
- min-height: 400px;
- }
- /* Заглавие */
- .create-publication h1, .update-publication h1 {
- text-align: center;
- font-size: 24px;
- margin-bottom: 20px;
- color: #222;
- }
- /* Форма */
- #create-publication-form {
- display: flex;
- flex-direction: column;
- }
- #update-publication-form {
- display: flex;
- flex-direction: column;
- }
- .publication-container {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- /* Полета на формата */
- .publication-container input[type="text"],
- .publication-container input[type="file"],
- .publication-container textarea,
- .publication-container select {
- width: 100%;
- padding: 8px 10px;
- font-size: 14px;
- border: 1px solid #ccc;
- border-radius: 8px;
- background-color: #f9f9f9;
- transition: border-color 0.2s ease-in-out;
- }
- .publication-container input[type="text"]:focus,
- .publication-container input[type="file"]:focus,
- .publication-container textarea:focus,
- .publication-container select:focus {
- border-color: #007bff;
- outline: none;
- }
- /* Текстова област */
- .publication-container textarea {
- resize: vertical;
- min-height: 80px;
- }
- /* Бутон за създаване */
- .publication-create-btn, .publication-update-btn {
- background-color: #007bff;
- color: white;
- font-size: 15px;
- font-weight: 500;
- padding: 10px 14px;
- border: none;
- border-radius: 8px;
- cursor: pointer;
- transition: background-color 0.3s ease;
- margin-top: 6px;
- }
- .publication-create-btn:hover, .publication-update-btn {
- background-color: #0056b3;
- }
- /*feed.css*/
- /*.feed-wrapper {*/
- /* !*display: flex;*!*/
- /* !*flex-direction: column;*!*/
- /* !*align-items: center;*!*/
- /* margin-top: 3em;*/
- /* margin-bottom: 3em;*/
- /*}*/
- .feed-wrapper {
- padding: 2em;
- display: flex;
- flex-direction: column;
- /*gap: 10px;*/
- margin-top: 2em;
- margin-bottom: 1em;
- }
- .post-container {
- max-width:650px;
- margin: 0 auto 40px auto;
- background: #ffffff;
- border-radius: 2px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- overflow: hidden;
- }
- .post-header {
- display: flex;
- align-items: center;
- padding: 15px;
- border-bottom: 1px solid #ddd;
- }
- .post-footer {
- padding: 15px;
- }
- .avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- background: #ccc;
- margin-right: 10px;
- overflow: hidden;
- }
- .avatar img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- }
- .post-user-info {
- flex-grow: 1;
- }
- .user-address {
- font-size: 0.8em;
- }
- .post-user-info strong {
- display: block;
- }
- .post-image img {
- width: 100%;
- display: block;
- }
- .media {
- display: flex;
- justify-content: space-between;
- gap: 10px;
- padding: 10px;
- }
- .post-image,
- .video-wrap {
- flex: 1;
- max-width: 50%;
- }
- .media:only-child .post-image,
- .media:only-child .video-wrap,
- .media > div:only-child {
- max-width: 100%;
- }
- .post-image img,
- .video-wrap video {
- width: 100%;
- height: auto;
- display: block;
- object-fit: cover;
- border-radius: 2px;
- }
- .post-content {
- padding: 10px;
- }
- .likes {
- font-weight: bold;
- }
- .caption {
- margin: 1em 0;
- }
- .comment {
- border-top: 1px solid #eee;
- padding: 10px 15px;
- font-size: 14px;
- }
- .comment strong {
- font-weight: bold;
- }
- .comment-input {
- display: flex;
- border-top: 1px solid #ddd;
- padding: 10px 15px;
- }
- .comment-input input {
- flex-grow: 1;
- padding: 8px;
- border: 1px solid #ccc;
- border-radius: 20px;
- }
- .comment-input button {
- margin-left: 10px;
- background-color: #1877f2;
- color: white;
- border: none;
- padding: 8px 12px;
- border-radius: 20px;
- cursor: pointer;
- }
- .post-edit-delete {
- display: flex;
- margin: 0.2em;
- }
- .post-edit-delete img {
- width: 1.3em;
- height: 1em;
- object-fit: contain;
- display: block;
- }
- .post-edit-delete button {
- border: none;
- background: none;
- padding: 0;
- cursor: pointer;
- }
- .post-delete-wrapper {
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: 70vh;
- }
- .post-delete-container {
- max-width: 500px;
- width: 100%;
- padding: 20px;
- background: #ffffff;
- border-radius: 2px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- text-align: center;
- }
- .delete-post-btn,
- .go-back-btn {
- padding: 10px 16px;
- border: none;
- border-radius: 2px;
- font-weight: bold;
- cursor: pointer;
- font-size: 1rem;
- }
- .delete-buttons {
- margin-top: 20px;
- display: flex;
- justify-content: center;
- gap: 15px;
- }
- .delete-post-btn {
- background-color: #e74c3c;
- color: white;
- }
- .go-back-btn {
- background-color: #bdc3c7;
- color: #2c3e50;
- }
- .delete-post-img {
- display: flex;
- flex-direction: column;
- }
- .delete-post-img img {
- max-height: 200px;
- width: auto;
- }
- /*comment*/
- .comment-form .form-group {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-top: 10px;
- }
- .comment-form textarea {
- flex: 1;
- resize: none;
- padding: 8px;
- font-size: 14px;
- border-radius: 6px;
- border: 1px solid #ccc;
- margin-left: 5px;
- }
- .comment-button, .likes_logic button {
- background-color: #3498db;
- color: white;
- border: none;
- padding: 4px 12px;
- border-radius: 6px;
- font-weight: bold;
- cursor: pointer;
- transition: background-color 0.3s ease;
- margin-right: 5px;
- }
- .comment-button:hover {
- background-color: #2980b9;
- }
- .likes_logic {
- display: flex;
- flex-direction: column;
- padding-left: 15px;
- }
- .all-comments .comment-info {
- color: white;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement