Skip to content

Commit

Permalink
Merge pull request #95 from EvgenyOrekhov/update
Browse files Browse the repository at this point in the history
- Make page min-height to be 100% and make footer be at the bottom
- Use default cursor for non-link list items in `<nav>`
- Use link colors for `<code>` links
  • Loading branch information
EvgenyOrekhov authored May 30, 2020
2 parents 9239a38 + 6d52d53 commit d7a8a1e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 13 deletions.
19 changes: 18 additions & 1 deletion src/css/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@
--max-body-width: 48rem;
}

html {
height: 100%;
}

body {
margin: 0 auto 0.5rem;
margin: 0 auto;
width: calc(100% - 1rem);
max-width: var(--max-body-width);
overflow-wrap: break-word;
display: flex;
flex-direction: column;

/* `- 2px` is a hack for getting rid of vertical scroll */
min-height: calc(100% - 2px);
}

main {
flex-grow: 1;
}

img {
Expand Down Expand Up @@ -207,6 +220,10 @@ body > footer {
text-align: center;
}

body > footer {
padding-bottom: 1rem;
}

td,
th {
padding: 0.5rem;
Expand Down
4 changes: 2 additions & 2 deletions src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
}

/* stylelint-disable-next-line selector-max-universal */
nav li > *:not(ul):not(:only-child) {
cursor: pointer;
nav li > *:not(ul):not(a):not(:only-child) {
cursor: default;
}

/* stylelint-disable-next-line selector-max-universal */
Expand Down
24 changes: 14 additions & 10 deletions src/css/themes/bulma.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,30 @@ body {
color: var(--text-color);
}

a {
code {
background-color: var(--code-background-color);
border-color: var(--code-background-color);
color: var(--code-text-color);
}

a,
a code {
color: var(--link-color);
text-decoration: none;
}

a:visited {
a:visited,
a:visited code {
color: var(--link-visited-color);
}

a:hover {
a:hover,
a:hover code {
color: var(--link-hover-color);
}

a:active {
a:active,
a:active code {
color: var(--link-active-color);
}

Expand Down Expand Up @@ -183,12 +193,6 @@ tfoot > tr:nth-child(even) {
background-color: var(--highlighted-background-color);
}

code {
background-color: var(--code-background-color);
border-color: var(--code-background-color);
color: var(--code-text-color);
}

kbd {
background-color: var(--highlighted-background-color);
border: var(--border-width) solid var(--border-hover-color);
Expand Down

0 comments on commit d7a8a1e

Please sign in to comment.