akf-forum/public/css/common.css

212 lines
3.4 KiB
CSS
Raw Normal View History

2022-08-26 16:27:29 +03:00
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
box-sizing: border-box;
}
body {
margin: 0;
2022-09-09 15:34:12 +03:00
font-family: Poppins;
2022-08-26 16:27:29 +03:00
}
a {
text-decoration: none;
color: initial;
}
.header {
width: 100%;
padding: 20px;
display: flex;
justify-content: space-between;
2022-08-28 18:11:41 +03:00
align-items: center;
2022-08-26 16:27:29 +03:00
}
.logo {
padding: 10px;
font-size: 28px;
2022-08-31 18:11:54 +03:00
color: var(--main);
2022-08-26 16:27:29 +03:00
font-weight: 900;
}
.logo>span {
2022-08-31 18:11:54 +03:00
color: var(--second);
2022-08-26 16:27:29 +03:00
}
.buttons {
padding: 0;
display: flex;
align-items: center;
}
.btn-primary {
2022-08-31 18:11:54 +03:00
color: var(--btn-clr-1);
background-color: var(--main);
2022-08-26 16:27:29 +03:00
padding: 10px 20px 10px 20px;
border-radius: 4px;
font-weight: 700;
margin: 10px;
cursor: pointer;
2022-08-31 18:11:54 +03:00
border: 2px solid var(--main);
2022-08-26 16:27:29 +03:00
}
2022-08-31 16:12:15 +03:00
.btn-danger {
2022-08-31 18:11:54 +03:00
color: var(--btn-clr-1);
2022-08-31 18:14:21 +03:00
background-color: var(--important);
2022-08-31 16:25:35 +03:00
padding: 0px 10px 0px 10px;
2022-08-31 16:12:15 +03:00
border-radius: 4px;
font-weight: 700;
margin: 10px;
cursor: pointer;
2022-08-31 18:14:21 +03:00
border: 2px solid var(--important);
2022-08-31 16:12:15 +03:00
}
2022-08-31 16:25:35 +03:00
2022-08-26 16:27:29 +03:00
.btn-outline-primary {
2022-08-31 18:11:54 +03:00
color: var(--main);
2022-08-26 16:27:29 +03:00
padding: 10px 20px 10px 20px;
border-radius: 4px;
font-weight: 700;
margin: 10px;
cursor: pointer;
2022-08-31 18:11:54 +03:00
border: 2px solid var(--borders);
2022-08-26 16:27:29 +03:00
}
2022-08-31 16:12:15 +03:00
2022-08-26 16:27:29 +03:00
.btn-primary:hover {
2022-08-31 18:11:54 +03:00
color: var(--main);
2022-08-26 16:27:29 +03:00
background-color: rgba(0, 0, 0, 0);
2022-08-31 18:11:54 +03:00
border: 2px solid var(--main);
2022-08-26 16:27:29 +03:00
}
2022-08-31 16:12:15 +03:00
.btn-outline-primary:hover {
2022-08-31 18:11:54 +03:00
border: 2px solid var(--main);
2022-08-31 16:12:15 +03:00
}
2022-08-31 16:25:35 +03:00
.btn-danger:hover {
2022-08-31 18:14:21 +03:00
background-color: var(--important);
border: 2px solid var(--important);
2022-08-31 16:12:15 +03:00
}
.menu {
width: 100%;
padding: 20px;
display: flex;
justify-content: space-around;
}
2022-08-31 16:25:35 +03:00
2022-08-26 16:27:29 +03:00
.menu-item {
padding: 10px;
font-weight: 700;
2022-08-31 18:11:54 +03:00
background-color: var(--second);
color: var(--menu-item);
2022-08-26 16:27:29 +03:00
border-radius: 5px;
width: 100%;
text-align: center;
margin: 0px 10px 0px 0px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.active-menu {
2022-08-31 18:11:54 +03:00
background-color: var(--main);
2022-08-26 16:27:29 +03:00
}
.menu-item:hover {
2022-08-31 18:11:54 +03:00
background-color: var(--main);
2022-08-26 16:27:29 +03:00
}
.admin-bar {
font-size: 15px;
2022-08-31 18:11:54 +03:00
color: var(--menu-item);
background: var(--main);
2022-08-26 16:27:29 +03:00
text-align: center;
}
div.avatar {
padding-left: 10px;
}
.avatar>img {
width: 30px;
height: 30px;
border-radius: 50%;
margin: auto;
}
.box-username {
display: flex;
2022-08-31 16:25:35 +03:00
align-items: center;
2022-08-31 15:31:14 +03:00
justify-content: center;
2022-08-26 16:27:29 +03:00
font-size: 18px;
font-weight: 700;
2022-08-31 18:11:54 +03:00
color: var(--main);
2022-08-26 16:27:29 +03:00
}
@media (max-width: 992px) {
.header {
flex-direction: column;
align-items: center;
}
.menu {
flex-direction: column;
}
.menu-item {
margin: 0px 10px 10px 0px;
}
}
@media (max-width: 480px) {
2022-08-28 18:11:41 +03:00
.btn-outline-primary {
width: 100%;
text-align: center;
}
2022-08-26 16:27:29 +03:00
.buttons {
flex-direction: column;
width: 100%;
}
2022-08-28 18:11:41 +03:00
.btn-primary {
width: 100%;
text-align: center;
}
2022-09-09 15:34:12 +03:00
}
/*
FOOTER
*/
select {
background: #ebebeb;
border: white;
padding: 8px 20px;
font-size: 16px;
font-family: inherit;
}
select option {
font-family: inherit;
width: 290px;
}
.footer {
width: 100%;
margin-top: 10px;
background-color: var(--main);
padding: 10px;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
2022-08-31 16:25:35 +03:00
}