Browse Source

Add some mobile css for themes

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
fcd6cbcd32
2 changed files with 28 additions and 1 deletions
  1. +27
    -0
      docs/sass/_themes.scss
  2. +1
    -1
      docs/templates/theme.html

+ 27
- 0
docs/sass/_themes.scss View File

@@ -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;
@@ -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;
}
}
}

+ 1
- 1
docs/templates/theme.html View File

@@ -9,7 +9,7 @@
<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>


Loading…
Cancel
Save