tweak responsive css to center previews better
This commit is contained in:
191
app/assets/stylesheets/specific/z_responsive.scss
Normal file
191
app/assets/stylesheets/specific/z_responsive.scss
Normal file
@@ -0,0 +1,191 @@
|
||||
@import "../common/000_vars.scss";
|
||||
|
||||
#desktop-version-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 660px) {
|
||||
#desktop-version-link {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#saved-searches-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div#page {
|
||||
padding: 0 2px;
|
||||
> div /* div#c-$controller */ {
|
||||
> div /* div#a-$action */ {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
/* Move #sidebar below #content. */
|
||||
> aside#sidebar {
|
||||
font-size: 1.5em;
|
||||
float: none;
|
||||
width: auto;
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#maintoggle {
|
||||
display: inline;
|
||||
background-color: lighten($link_color, 13%);
|
||||
padding: 0.8em 1.2em 0.8em 1.2em;
|
||||
border-radius: 20% 20% 0 0;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
|
||||
&.toggler-active {
|
||||
background-color: lighten($link_color, 25%);
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Make the quick search box in the navbar full width. */
|
||||
header#top menu form input {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
form {
|
||||
input[type=text], input[type=submit], select {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
div#page section#content {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#comments h2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.paginator {
|
||||
font-size: 16pt;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
padding: 3pt;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
line-height: 1.4em;
|
||||
|
||||
a, span {
|
||||
padding: 3px 18px;
|
||||
margin: 6px 3px;
|
||||
display: inline-block;
|
||||
border-radius: 15%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
article.post-preview {
|
||||
margin: 0 0 10px 0;
|
||||
width: 48vw;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
a {
|
||||
width: 48vw;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
img {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
img#image {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
div#options {
|
||||
margin-top: 10px;
|
||||
font-size: 24pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
div#tags {
|
||||
margin-top: 30px;
|
||||
|
||||
li {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
a.search-tag {
|
||||
font-size: 24pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
div#page {
|
||||
div.comments-for-post div.list-of-comments article.comment div.content {
|
||||
clear: both;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header#top menu.main {
|
||||
background-color: lighten($link_color, 25%);
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
display: block;
|
||||
font-size: 2em;
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 0.825em;
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
header {
|
||||
border-bottom: 2px solid lighten($link_color, 13%);
|
||||
text-align: center;
|
||||
line-height: 2em;
|
||||
h1 {
|
||||
display: inline; //Needed for menu button
|
||||
}
|
||||
}
|
||||
|
||||
div#page {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 440px) {
|
||||
input#expand-search {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#post-sections {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
div article.post-preview {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
#tos-notice {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user