Created
March 16, 2018 19:27
-
-
Save RANUX/c46678d05c67cd0372af42c1bd52728f to your computer and use it in GitHub Desktop.
Styles from task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
width: 280px; | |
min-height: 250px; | |
padding-top: 50px; | |
padding-left: 10px; | |
padding-right: 10px; | |
font-size: 12px; | |
font-family: "Arial", sans-serif; | |
line-height: 1.2; | |
color: #7f8c8d; | |
background: #ecf0f1; | |
} | |
.post-stats .icon { | |
width: 15px; | |
height: 15px; | |
} | |
.post { | |
position: relative; | |
padding-left: 75px; | |
} | |
.post-title { | |
color: #2980b9; | |
font-size: 20px; | |
} | |
.post-date { | |
position: absolute; | |
background: #fff; | |
top: 0; | |
left: 0; | |
padding-left: 9px; | |
padding-right: 9px; | |
padding-top: 19px; | |
padding-bottom: 18px; | |
font-size: 15px; | |
font-weight: bold; | |
border-bottom: 5px solid #bdc3c7; | |
} | |
.post-type { | |
position: absolute; | |
width: 55px; | |
height: 55px; | |
top: 70px; | |
left: 0; | |
background: #7f8c8d url(http://htmlacademy.ru/assets/course14/quotes.png) no-repeat 50% 50%; | |
border-bottom: 5px solid #bdc3c7; | |
} | |
.post-author { | |
padding-top:5px; | |
} | |
.post-author a { | |
color: #2980b9; | |
text-decoration: none; | |
} | |
.post-stats { | |
position: relative; | |
padding-top: 5px; | |
display: inline-block; | |
padding-left: 20px; | |
padding-right: 10px; | |
} | |
.post-stats a { | |
color: #2980b9; | |
text-decoration: none; | |
} | |
.post-text { | |
width: 170px; | |
padding: 10px 10px 10px 15px; | |
background: #fff; | |
border-bottom: 5px solid #bdc3c7; | |
} | |
.icon { | |
position: absolute; | |
top: 5; | |
left: 0; | |
background: url(http://htmlacademy.ru/assets/course14/post-challenge.png) no-repeat 0 0; | |
} | |
.icon-comments { | |
background-position: -20px 0; | |
} | |
.result-img { | |
display: none; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 300px; | |
height: 300px; | |
opacity: 0.4; | |
background: url(https://htmlacademy.ru/upload/files/task_538/sol_e3c92cf5034a72aa1fea6b416a9ac24b.png) no-repeat; | |
z-index: 10; | |
} | |
/* | |
Все размеры, отступы, координаты, размеры шрифтов (не заданные в body) кратны 5 или 10. | |
Адреса картинок: | |
/assets/course14/quotes.png | |
/assets/course14/post-challenge.png | |
Картинка «кавычки» выровнена по центру | |
Финальное испытание достаточно сложное, поэтому HTML-разметку делать не придется. | |
Но обилие множества декоративных элементов заставит вас попотеть. | |
Адреса картинок и подсказки есть в комментарии в CSS-коде. А вот используемые цвета: | |
#ffffff | |
#7f8c8d | |
#2980b9 | |
#bdc3c7 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment