~vallode/vallode-com

ref: 72983394235f2c5c56d8d6671d24dcb30c7f283f vallode-com/sass/style.scss -rw-r--r-- 1.5 KiB
72983394vallode Fix git init sentence in dotfiles 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
Why SCSS variables and not CSS variables? SCSS interpolates the actual values
into the compiled CSS, saving a few precious bytes!

You could use single letter CSS variables like var(--t) (8 bytes) but that
sacrifices developer experience.

i.e var(--teal) 11 bytes vs #36acb8 (7 bytes)
*/
$green: #88b04b;
$darkGreen: #3F6209;
$gray: #e6e6e6;

$foreground: black;
$highlight: $green;
$background: #f9fbff;

*,
*::before,
*::after {
  box-sizing: inherit;
}


// NOTE: Some base styles are inlined in base.html
:root {
  box-sizing: border-box;
  color: $foreground;
  
  /**
  This value is debatably good, but I enjoy the simplicity of 1rem being equal
  to exactly 10 pixels.
  */
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  margin: 0;
  
  @media screen and (max-width: 700px) {
    flex-direction: column;
  }
}

main {
  background: $background;
  border: 3px solid $highlight;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  margin-right: auto;
  margin: 1.6rem;
  max-width: 60ch;
  padding: 1.6rem;
  position: relative;
  
  &::before {
    background-image: radial-gradient($gray 0.3rem, transparent 0.3rem);
    background-size: 1.8rem 1.8rem;
    content: '';
    display: block;
    height: 100%;
    left: 1rem;
    position: absolute;
    top: 0;
    transform: rotate(3deg);
    width: calc(100% + 3rem);
    z-index: -1;
  }
  
  @media screen and (max-width: 700px) {
    border: none;
    border-top: 3px solid $highlight;
    margin: 0;
    overflow: hidden;
  }
}

@import "base";

@import "templates/header";
@import "templates/main";