Created
June 9, 2015 21:06
-
-
Save cyb3rD/235ddea1e2a4dc011e69 to your computer and use it in GitHub Desktop.
Info Card sample
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> | |
| <head> | |
| <title>Испытание: карточка курса</title> | |
| <link rel="stylesheet" type="text/css" href="card.css"> | |
| <meta charset="utf-8"> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <div class="card-header"> | |
| Card «CardName» | |
| </div> | |
| <div class="card-body"> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
| tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
| quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | |
| consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | |
| cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | |
| proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
| </div> | |
| <div class="share"> | |
| <a class="social social-fb" href="#"></a> | |
| <a class="social social-tw" href="#"></a> | |
| <a class="social social-gp" href="#"></a> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
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:280px; | |
| padding-top:20px; | |
| padding-left:20px; | |
| font-size:14px; | |
| font-family:"Arial", sans-serif; | |
| line-height:1.2; | |
| background:#ecf0f1; | |
| } | |
| .card { | |
| width: 200px; | |
| padding: 20px; | |
| background: #1abc9c; | |
| color: #fff; | |
| } | |
| .card-header { | |
| font-size: 20px; | |
| margin-bottom:20px; | |
| } | |
| .card-body { | |
| margin:0; | |
| padding 0; | |
| } | |
| .share { | |
| width:auto; | |
| margin:0 auto; | |
| margin-top:25px; | |
| } | |
| .social{ | |
| display:inline-block; | |
| width:30px; | |
| height:30px; | |
| margin-right:5px; | |
| vertical-align:middle; | |
| background-image: url('https://htmlacademy.ru/assets/course14/social-challenge.png'); | |
| background-repeat: no-repeat; | |
| background-color:#16a085; | |
| } | |
| .social-fb{ | |
| background-position: 0 0; | |
| } | |
| .social-tw{ | |
| background-position: -30px 0; | |
| } | |
| .social-gp{ | |
| background-position: -60px 0; | |
| } | |
| /* | |
| Все размеры, отступы, координаты, размеры шрифтов (не заданные в body) кратны 5 или 10. | |
| Адрес картинки-спрайта: | |
| /assets/course14/social-challenge.png | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment