Add styling for mobile breakpoint

This commit is contained in:
Maciej Matuszewski 2018-01-11 00:23:35 +01:00
parent 986e5c4efb
commit 4efa3ed9b3
3 changed files with 42 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width">
<title>truebit | Art Project</title>
<link href="https://fonts.googleapis.com/css?family=Rubik+Mono+One|Work+Sans:400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rubik+Mono+One|Work+Sans:300,400,500,700" rel="stylesheet">
<!-- build:css css/main.css -->
<link rel="stylesheet" href="/css/main.css">
<!-- endbuild -->

View File

@ -12,7 +12,7 @@
<div class="project__images">
{{#each project.images as |imageSrc|}}
<img src={{imageSrc}} class="project__image--{{@index}}" alt="" />
<img src={{imageSrc}} class="project__image project__image--{{@index}}" alt="" />
{{/each}}
</div>

View File

@ -1,5 +1,45 @@
.project {
position: relative;
padding: 25px;
color: $color-white;
background-color: $color-orange;
&__content {
margin-top: 20px;
font-size: 18px;
font-weight: 300;
}
&__subheader {
font-weight: 400;
}
&__images {
padding-top: 10px;
}
&__image {
max-width: 100%;
margin: 10px 0;
}
&__button {
margin-top: 10px;
}
&__counter {
position: absolute;
bottom: 20%;
left: 22px;
font-size: 24px;
transform: rotate(-90deg);
transform-origin: left center;
}
&__link {
display: block;
margin-top: 20px;
font-size: 12px;
text-transform: uppercase;
}
}