~ryanford/git-blog-tup

a81a0cc942d5c2878872eb6c203df828c13648f1 — Ryan Ford 3 years ago 05f6c92
increase base REM size 16px -> 20px
M src/assets/scss/codeblocks.scss => src/assets/scss/codeblocks.scss +1 -1
@@ 22,7 22,7 @@ pre, .sh_highlight {
.sh_function {
  color: var(--color-base0D);
}
.sh_identifier {}
// .sh_identifier {}
.sh_keyword {
  color: var(--color-base0E);
}

M src/assets/scss/index.scss => src/assets/scss/index.scss +0 -49
@@ 1,54 1,5 @@
header {
  height: 3.125rem;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  background-color: var(--color-base08);

  .branding {
    padding: 0.625rem;
    font-size: 1.5rem;
    font-family: Lucida Sans Typewriter, Lucida Console, monaco, Bitstream Vera Sans Mono, monospace, monospace;
  }
}

.content-wrapper {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  padding: 0 0.625rem;
  line-height: 1.5;

  .post-title {
    text-transform: capitalize;
  }
}

footer {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
  text-align: center;

  span {
    font-size: 0.875rem;
  }

  .copyright {
    margin-top: 0.625rem;
    text-transform: capitalize;
  }
}

@media (min-width: 62.5rem) {
  header {
    width: 62.5rem;
  }

  .content-wrapper {
    width: 62.5rem;
  }
}

M src/assets/scss/main.scss => src/assets/scss/main.scss +1 -0
@@ 1,3 1,4 @@
@import 'partials/reset';
@import 'partials/colors';
@import 'partials/theme';
@import 'partials/global';

A src/assets/scss/partials/_global.scss => src/assets/scss/partials/_global.scss +55 -0
@@ 0,0 1,55 @@
header {
  height: 2.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  background-color: var(--color-base08);

  .branding {
    padding: 0.5rem;
    font-size: 1.5rem;
    font-family: Lucida Sans Typewriter, Lucida Console, monaco, Bitstream Vera Sans Mono, monospace, monospace;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  padding: 0 0.5rem;
  line-height: 1.5;
}

footer {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  align-items: center;
  text-align: center;

  a {
    font-size: 0.8rem;
  }

  span {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
  }

  .copyright {
    text-transform: capitalize;
  }
}

@media (min-width: 50rem) {
  header {
    width: 50rem;
  }

  .content-wrapper {
    width: 50rem;
  }
}

M src/assets/scss/partials/_theme.scss => src/assets/scss/partials/_theme.scss +25 -20
@@ 2,6 2,11 @@
  box-sizing: border-box;
}

html {
  font-size: 20px;
  margin-left: calc(100vw - 100%); // avoid layout shift from scrollbar
}

body {
  min-height: 100vh;
  display: flex;


@@ 16,22 21,22 @@ body {

h1, h2, h3, h4, h5, h6 {
  font-family: Arial Narrow, Arial, sans-serif;
  letter-spacing: 0.0625rem;
  letter-spacing: 0.05rem;
}

@for $i from 1 through 6 {
  h#{$i} {
    font-size: #{1 + 1.2 * (1 - ($i / 6))}rem;
    margin-bottom: #{0.625 + 1.2 * (1 - ($i / 6))}rem;
    font-size: #{1 + 1 * ((6 / 5) - ($i / 6))}rem;
    margin: 0 0 #{0.4 + 1 * ((6 / 5) - ($i / 6))}rem 0;
  }
}

p {
  margin: 0 0 1.25rem 0;
  margin: 0 0 1rem 0;
}

small, sub, sup {
  font-size: 0.875rem;
  font-size: 0.8rem;
}

mark {


@@ 40,8 45,8 @@ mark {
}

hr {
  margin: 1.25rem auto;
  border: 0.0625rem solid var(--color-base08);
  margin: 1rem 0;
  border: 0.05rem solid var(--color-base08);
}

a {


@@ 60,13 65,13 @@ a {

dl, ol, ul {
  padding: 0;
  margin: 0 0 2.5rem 0;
  margin: 0 0 2rem 0;
}

blockquote {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  border-left: 0.3125rem solid var(--color-base04);
  margin: 0 0 2rem 0;
  padding: 1rem;
  border-left: 0.25rem solid var(--color-base04);
  background-color: var(--color-base08);
  font-style: italic;



@@ 88,21 93,21 @@ pre, code {

pre {
  display: block;
  margin: 1.25rem 0;
  padding: 0.625rem;
  margin: 1rem 0;
  padding: 0.5rem;
  overflow-x: auto;
}

code {
  display: inline-block;
  height: 100%;
  padding: 0 0.625rem;
  font-size: 0.875rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

table {
  margin-bottom: 2.5rem;
  margin: 0 0 2rem 0;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;


@@ 119,12 124,12 @@ tr:nth-child(2n) {
}

td, th {
  padding: 0.3125rem 0.625rem;
  padding: 0.25rem 0.5rem;
}

button, input[type="submit"], input[type="reset"], input[type="button"] {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;


@@ 148,8 153,8 @@ button, input[type="submit"], input[type="reset"], input[type="button"] {

textarea, select, input {
  width: 100%;
  margin-bottom: 0.625rem;
  padding: 0.625rem;
  margin: 0 0 0.5rem 0;
  padding: 0.5rem;
  border: 0;
  border-radius: 0;
  background-color: var(--color-foreground);

M src/assets/scss/post.scss => src/assets/scss/post.scss +8 -57
@@ 1,27 1,6 @@
header {
  height: 3.125rem;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  background-color: var(--color-base08);

  .branding {
    padding: 0.625rem;
    font-size: 1.5rem;
    font-family: Lucida Sans Typewriter, Lucida Console, monaco, Bitstream Vera Sans Mono, monospace, monospace;
  }
}

.content-wrapper {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  padding: 0 0.625rem;
  line-height: 1.5;

  .post-nav {
    margin: 0.625rem 0;
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;



@@ 43,63 22,35 @@ header {
  }

  .author {
    font-size: 0.875rem;
    font-size: 0.8rem;
  }

  .published-date {
    font-size: 0.875rem;
    font-size: 0.8rem;
  }

  .modified-date {
    font-size: 0.875rem;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-base02);

    a {
      font-size: 0.875rem;
      font-size: 0.8rem;
    }
  }

  @at-root .changelog {
    li {
      margin-top: 0.625rem;
      margin-bottom: 0.5rem;

      span {
        display: block;
      }

      blockquote {
        padding: 0.3125rem;
        padding-left: 0.625rem;
        padding: 0.25rem;
        padding-left: 0.5rem;
      }
    }
  }
}

footer {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: center;
  text-align: center;

  span {
    font-size: 0.875rem;
  }

  .copyright {
    margin-top: 0.625rem;
    text-transform: capitalize;
  }
}

@media (min-width: 62.5rem) {
  header {
    width: 62.5rem;
  }

  .content-wrapper {
    width: 62.5rem;
  }
}