Skip to content

Commit 4f9aeb3

Browse files
Merge pull request #568 from evestera/narrow-screen-styling-tweaks
Tweak layout for elements on crate page to fix some small issues with narrow screens
2 parents 17638f0 + 1387539 commit 4f9aeb3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/styles/app.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ body {
6565
}
6666

6767
.sep { margin: 0 10px; color: darken($html-bg, 10%); }
68-
.nav, .menu { @include flex-grow(2); text-align: right; }
68+
.nav, .menu {
69+
@include flex-grow(2);
70+
text-align: right;
71+
margin-right: 5px;
72+
}
6973

7074
.menu { display: none; }
7175
.menu ul.dropdown {
@@ -129,6 +133,8 @@ body {
129133
#mobile-search {
130134
display: none;
131135
margin-bottom: 10px;
136+
margin-left: 5px;
137+
margin-right: 5px;
132138
input.search {
133139
width: 100%;
134140
margin: 0;

app/styles/crate.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
.info {
1111
@include display-flex;
12+
@include flex-wrap(wrap);
1213
@include align-items(center);
1314
}
1415
h1 {
@@ -316,6 +317,7 @@
316317
h3 { margin-bottom: 5px; }
317318
.section {
318319
@include flex(1);
320+
margin-right: 10px;
319321
li { line-height: 24px; }
320322
.date { color: $main-color-light; padding-left: 5px; }
321323
}

0 commit comments

Comments
 (0)