Skip to content

Commit 5603819

Browse files
committed
Change desktop layout to a fixed width column, increase font-size and legibility
1 parent 20c600a commit 5603819

File tree

7 files changed

+29
-23
lines changed

7 files changed

+29
-23
lines changed

src/scss/_pagecontent.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ h1 {
2424

2525
p, td, th {
2626
margin: 0 0 $paragraph-margin-bottom;
27-
font-size: rem(15);
27+
font-size: rem(16);
2828
line-height: $paragraph-lineheight;
2929
text-rendering: $paragraph-text-rendering;
3030
}
@@ -97,3 +97,9 @@ blockquote {
9797
margin-bottom: 0;
9898
}
9999
}
100+
.Permalink {
101+
margin-left: -1em;
102+
width: 1em;
103+
display: inline-block;
104+
text-align: center;
105+
}

src/scss/_settings.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
$global-font-size: 100%;
4747
$body-font-size: 100%;
48-
$global-width: rem-calc(664);
48+
$global-width: rem-calc(708);
4949
$global-lineheight: 1.5;
5050
$foundation-palette: (
5151
primary: #1f4a7f,
@@ -563,4 +563,4 @@ $topbar-background: $light-gray;
563563
$topbar-submenu-background: $topbar-background;
564564
$topbar-title-spacing: 1rem;
565565
$topbar-input-width: 200px;
566-
$topbar-unstack-breakpoint: medium;
566+
$topbar-unstack-breakpoint: medium;

src/scss/_sidebar.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ aside.sidebar {
44
text-shadow: 0 0 rem(15) rgba(0,0,0,0.15);
55

66
@include breakpoint(large) {
7-
border-right: 3px solid #132843;
7+
//border-right: 3px solid #132843;
88
}
99
}
1010

@@ -180,9 +180,9 @@ nav.pagenav {
180180

181181
// 2nd level link
182182
> ul > li > ul > li > a {
183-
padding-left: rem(45);
184-
font-size: rem(12);
185-
text-transform: uppercase;
183+
padding-left: rem(30);
184+
font-size: rem(14);
185+
//text-transform: uppercase;
186186
//background-image: #{"url(\"data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='216' height='146' viewBox='0 0 216 146' fill='#fff'><path d='M144.988 65.667l-53.12-53.04c-1.955-2.063-4.398-3.095-7.332-3.095s-5.377 1.033-7.333 3.096l-6.192 6.11c-2.01 2.01-3.014 4.454-3.014 7.333 0 2.825 1.005 5.297 3.015 7.415L110.608 73 71.01 112.596c-2.01 2.01-3.015 4.454-3.015 7.334 0 2.823 1.005 5.295 3.015 7.414l6.192 6.11c2.01 2.01 4.455 3.015 7.333 3.015 2.88 0 5.324-1.007 7.333-3.017l53.12-53.04c2.01-2.117 3.016-4.59 3.016-7.413 0-2.88-1.006-5.323-3.016-7.333z'/></svg>\")"};
187187
// background-size: rem(13);
188188
//background-repeat: no-repeat;
@@ -193,8 +193,8 @@ nav.pagenav {
193193

194194
// 3rd level link
195195
li li li a {
196-
padding-left: rem(60);
197-
font-size: rem(12);
196+
padding-left: rem(45);
197+
font-size: rem(14);
198198
font-weight: $global-weight-normal;
199199
}
200200

@@ -262,4 +262,4 @@ nav.pagenav .Nav__item--open>a {
262262
margin-left: -20px;
263263
width: 16px;
264264
margin-right: 4px;
265-
}
265+
}

src/scss/_template.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ html, body {
55
background: $body-background;
66
}
77
body {
8-
visibility: visible;
9-
opacity: 1;
10-
-webkit-font-smoothing: antialiased;
11-
font-size: $body-font-size;
8+
visibility: visible;
9+
opacity: 1;
10+
-webkit-font-smoothing: antialiased;
11+
font-size: $body-font-size;
12+
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
1213
}
1314

1415
* {
@@ -52,12 +53,10 @@ body {
5253
position: absolute;
5354
top: 0;
5455
right: 0;
55-
left: rem(300);
56+
left: rem(350);
5657
width: auto;
57-
left: auto;
5858
padding-top: rem(56);
59-
padding-right: calc((100% - #{rem(1024)})/2);
60-
width: rem(724);
59+
padding-right: calc((100% - #{rem(1280)})/2);
6160
}
6261
}
6362

@@ -78,12 +77,12 @@ aside.sidebar {
7877
left: 0;
7978
width: rem(300);
8079
height: 100%;
81-
padding-left: calc((100% - #{rem(1024)})/2);
80+
padding-left: rem(50);
8281
}
8382
}
8483

8584
.editfooter {
8685
p {
8786
font-size: $small-font-size;
8887
}
89-
}
88+
}

src/scss/main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ aside.sidebar {
9191
max-width: 100%;
9292
}
9393
.s-content li {
94-
font-size: .875rem;
94+
font-size: 1em;
9595
line-height: 1.6;
9696
text-rendering: optimizeLegibility;
97+
margin-bottom: 0.4em;
9798
}
9899
.s-content li > p:last-of-type {
99100
margin-bottom: 0;

themes/modmore/dist/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/modmore/dist/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)