Skip to content

Commit c3f04bb

Browse files
authored
Merge pull request #26 from revolter/change/wider-content-on-bigger-screens
2 parents 0e46d6f + 9710491 commit c3f04bb

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

_sass/minima/custom-styles.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ $inactive-toggle-text-color: var(--io-inactive-toggle-text-color);
3838
$button-background-color: var(--io-button-background-color);
3939
$button-hover-background-color: var(--io-button-hover-background-color);
4040

41+
$on-monitor: 1366px !default;
42+
$on-big-monitor: 1600px !default;
43+
4144
html {
4245
height: 100%;
4346
}
@@ -53,6 +56,14 @@ body {
5356
flex-grow: 1;
5457
justify-content: center;
5558

59+
@media screen and (min-width: $on-monitor) {
60+
max-width: 900px;
61+
}
62+
63+
@media screen and (min-width: $on-big-monitor) {
64+
max-width: 1200px;
65+
}
66+
5667
.home {
5768
display: flex;
5869
flex-grow: 1;
@@ -88,7 +99,7 @@ body {
8899
}
89100

90101
#toggle-full-width {
91-
@media not screen and (min-width: $on-laptop) {
102+
@include media-query($on-laptop) {
92103
display: none;
93104
}
94105
}
@@ -99,7 +110,7 @@ body {
99110
flex-direction: row;
100111
}
101112

102-
@media not screen and (min-width: $on-laptop) {
113+
@include media-query($on-laptop) {
103114
flex-direction: column;
104115
}
105116

@@ -126,7 +137,7 @@ body {
126137
border-style: solid;
127138
border-width: 1px;
128139

129-
@media not screen and (min-width: $on-laptop) {
140+
@include media-query($on-laptop) {
130141
overflow: auto;
131142
}
132143

0 commit comments

Comments
 (0)