Skip to content

Commit 39d37e7

Browse files
committed
Improve CSS for smaller displays
- Changed the margin to padding on the inline axis, preventing text from butting up against the edge of the display. - Enable flex-wrap on authorship info. This prevents an overflow on the inline axis. This combined with moving `flex: 1` prevents the inner text from wrapping, improving readability. Fixes #2486, along with other improvements.
1 parent 5c0557e commit 39d37e7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/styles/application.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ noscript {
9999
composes: width-limit;
100100
display: flex;
101101
flex-direction: column;
102-
margin: 15px;
102+
margin: 15px 0;
103+
padding: 0 15px;
103104
}
104105

105106
.fork-me {

app/styles/crate/version.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ div.header {
148148
.authorship {
149149
.top, .bottom {
150150
display: flex;
151+
flex-wrap: wrap;
151152

152-
> * { flex: 1; }
153+
> * { margin-right: 1em; }
153154
}
154155

156+
.top > * { flex: 1 }
157+
155158
@media only screen and (min-width: 890px) {
156159
flex: 3;
157160
border-left: 2px solid var(--gray-border);

0 commit comments

Comments
 (0)