Skip to content

Commit

Permalink
Add some mobile css for themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Prouillet committed Mar 5, 2018
1 parent c0ea30e commit fcd6cbc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions docs/sass/_themes.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@

.themes-container {
padding: 3rem;
width: 80%;
margin: 0 auto;

img {
max-width: 100%;
}
}

@media only screen and (max-width: 1000px) {
.themes-container {
width: 100%;
margin: 0 1rem;
}
}

.themes {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -50,3 +59,21 @@

padding: 1rem;
}


@media only screen and (max-width: 1000px) {
.themes .theme {
width: 100%;
}
}

@media only screen and (max-width: 1000px) {
.theme-info {
flex-direction: column;
align-items: center;

img {
margin-bottom: 1rem;
}
}
}
2 changes: 1 addition & 1 deletion docs/templates/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>{{ page.title }}</h1>
<p>{{ page.description }}</p>
<p><b>Author:</b> {{page.extra.author.name}}</p>
<p><b>License:</b> {{page.extra.license}}</p>
<p><b>Homepage:</b> {{page.extra.homepage}}</p>
<p><b>Homepage:</b> <a href="{{page.extra.homepage}}">{{page.extra.homepage}}</a></p>
<p><b>Last updated:</b> {{page.extra.updated }}</p>
</div>
</div>
Expand Down

0 comments on commit fcd6cbc

Please sign in to comment.