@font-face {
font-family: 'SFProDisplay-Regular';
src: local('SFProDisplay-Regular'),
url('../fonts/SFProDisplay-Regular.woff') format('woff'),
url('../fonts/SFProDisplay-Regular.woff2') format('woff2');
font-weight: normal;
}
@font-face {
font-family: 'SFProDisplay-Semibold';
src: local('SFProDisplay-Semibold'),
url('../fonts/SFProDisplay-Semibold.woff') format('woff'),
url('../fonts/SFProDisplay-Semibold.woff2') format('woff2');
font-weight: normal;
}
* {
box-sizing: border-box;
}
body {
font-family: 'SFProDisplay-Regular', sans-serif;
background-color: #E5E5E5;
}
.header {
background-color: #FA8C16;
padding: 16px 0;
box-shadow: 0px 2px 8px rgba(0,0,0,.15);
margin-bottom: 30px;
}
.header-nav {
margin-left: 60px;
margin-right: auto;
}
.header-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
width: 90%;
margin: auto;
}
.header-menu {
display: flex;
list-style: none;
padding: 0;
margin: 0;
}
.header-menu-link {
text-decoration: none;
color: #fafafa;
margin-right: 15px;
font-size: 14px;
line-height: 22px;
}
.input-group {
max-width: 237px;
width: 60%;
height: 32px;
position: relative;
background-color: #fff;
border-radius: 4px;
overflow: hidden;
border: 1px solid #d9d9d9;
}
.search-input {
height: 100%;
width: 80%;
border: none;
font-size: 14px;
line-height: 22px;
padding-left: 12px;
outline:none;
}
.search-input::-moz-placeholder {
color: #BFBFBF;
}
.search-input::-webkit-input-placeholder { color: #BFBFBF }
.search-input:-ms-input-placeholder { color: #BFBFBF }
.search-input::-ms-input-placeholder { color: #BFBFBF }
.search-input::placeholder { color: #BFBFBF }
.search-button {
height: 100%;
width: 20%;
position: absolute;
right: 0;
top: 0;
border: none;
background-color: transparent;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
outline:none;
}
.menu-toggle {
display: none;
}
.content {
max-width: 1200px;
width: 90%;
margin: auto;
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.posts {
width: 67%;
}
.post {
background-color: #fff;
border: 1px solid #E8E8E8;
margin-bottom: 30px;
}
.post-body {
padding: 35px 35px 0 35px;
}
.post-title {
font-family: 'SFProDisplay-Semibold';
margin: 0 0 15px 0;
font-weight: 600;
font-size: 16px;
line-height: 24px;
}
.post-text {
font-size: 14px;
line-height: 22px;
color: #262626;
}
.tags {
margin-bottom: 22px;
}
.tag {
font-size: 14px;
line-height: 22px;
color: #BFBFBF;
margin-right: 10px;
text-decoration: none;
}
.post-footer {
background: #fafafa;
border-top: 1px solid #E8E8E8;
display: flex;
justify-content: space-between;
padding: 13px 35px;
}
.post-buttons {
display: flex;
align-items: center;
}
.post-button .icon {
fill: #8c8c8c;
}
.icon-like, .icon-comment {
margin-right: 6px;
}
.icon-exit {
width: 20px;
height: 20px;
fill: #000;
}
.icon-fire {
fill: #fff;
width: 11px;
height: 13px;
margin-right: 10px;
}
.post-button {
background-color: transparent;
border: none;
color: #8c8c8c;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
line-height: 22px;
margin-right: 19px;
cursor: pointer;
}
.post-author {
display: flex;
align-items: center;
text-align: right;
}
.author-avatar {
width: 34px;
height: 34px;
margin-left: 9px;
border-radius: 4px;
}
.author-username {
display: block;
color: #8c8c8c;
font-size: 12px;
line-height: 20px;
text-decoration: none;
}
.post-time {
color: #bfbfbf;
font-size: 12px;
line-height: 20px;
}
.sidebar {
width: 31%;
}
.user {
background-color: #fafafa;
border: 1px solid #e8e8e8;
padding: 15px 25px;
display: flex;
align-items: center;
justify-content: space-between;
}
.user-info {
display: flex;
align-items: center;
}
.user-avatar {
border-radius: 50%;
margin-right: 17px;
}
.user-name {
font-weight: 600;
font-size: 16px;
line-height: 24px;
color: #595959;
}
.sidebar-nav {
background-color: #fff;
}
.sidebar-menu {
margin: 0;
border: 1px solid #e8e8e8;
border-top: none;
list-style: none;
padding: 0;
}
.sidebar-menu-link {
text-decoration: none;
padding: 16px 48px;
font-size: 14px;
line-height: 22px;
display: inline-block;
width: 100%;
background-color: #fff;
color: #595959;
}
.sidebar-menu-link:hover,
.sidebar-menu-link.active {
background-color: #FFFBE6;
border-right: 3px solid #FAAD14;
color: #FAAD14;
}
.button {
background-color: #faad14;
border-radius: 4px;
text-decoration: none;
color: #fff;
padding: 13px;
font-size: 16px;
line-height: 24px;
border: none;
cursor: pointer;
}
.button-outline {
border: 1px solid #FFC53D;
background-color: #fff;
border-radius: 4px;
color: #FFC53D;
cursor: pointer;
}
.button-outline .icon {
width: 14px;
height: 11px;
fill: #FFC53D;
margin-right: 10px;
}
.button-new-post {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin-top: 20px;
}
.card {
background-color: #fff;
border: 1px solid #e8e8e8;
margin-top: 20px;
}
.card-header {
background-color: #fafafa;
border-bottom: 1px solid #e8e8e8;
padding: 23px 25px;
}
.card-title {
font-family: 'SFProDisplay-Semibold';
margin: 0;
font-size: 16px;
line-height: 24px;
color: #595959;
}
.card-body {
padding: 22px 40px 30px 25px;
}
.card-body-title {
margin: 0 0 10px;
font-weight: 600;
font-size: 16px;
color: #D48806;
text-decoration: none;
}
.card-text {
font-size: 14px;
line-height: 22px;
color: #262626;
margin: 10px 0;
}
.promo {
display: block;
width: 100%;
height: 263px;
margin-top: 20px;
position: relative;
}
.promo::before {
content: 'Реклама';
position: absolute;
right: 0;
top: 0;
background-color: #c4c4c4;
padding-left: 26px;
padding-right: 26px;
font-size: 12px;
line-height: 20px;
text-align: center;
color: #fff;
}
.add-post {
display: flex;
flex-direction: column;
}
.add-title, .add-text {
background-color: #fff;
border: 1px solid #e8e8e8;
padding: 23px 30px;
margin-bottom: 16px;
}
.add-text {
min-height: 362px;
}
.add-button {
width: 100%;
max-width: 370px;
margin-right: 2%;
}
.add-post .button {
margin-right: 20px;
}
.add-post .button-outline {
margin-right: 1%
}
@media (max-width: 990px) {
.menu-toggle {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 30px;
height: 20px;
margin-left: 12px;
}
.menu-toggle span {
height: 2px;
width: 100%;
background-color: #fff;
}
.header {
position: fixed;
left: 0;
top: 0;
right: 0;
width: 100%;
z-index: 100;
}
.header-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: #FA8C16;
padding: 16px 35px;
box-shadow: 0px 2px 8px rgba(0,0,0,.15);
margin-left: 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-menu {
width: 90%;
margin: auto;
}
.content {
margin-top: 94px;
margin-bottom: 60px;
}
.sidebar {
position: fixed;
top: 64px;
right: 0;
bottom: 0;
height: calc(100% - 118px);
max-width: 320px;
width: 100%;
background-color: #fff;
padding: 30px;
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
transform: translateX(100%);
transition: transform .2s;
overflow-y: auto;
z-index: 101;
}
.sidebar.visible {
transform: translateX(0);
}
.posts {
width: 100%;
}
}
@media (max-width: 676px) {
.add-buttons {
display: flex;
flex-direction: column;
}
.add-button {
width: 100%;
max-width: 100%;
}
.add-post .button-outline {
margin-right: 0;
margin-top: 10px;
}
}
@media (max-width: 576px) {
.post-footer {
flex-direction: column;
}
.post-author {
margin-top: 15px;
}
.author-avatar {
margin-left: 0;
margin-right: 10px;
}
.author-about {
order: 2;
text-align: left;
}
.add-button {
width: 100%;
}
}