~vallode/vallode-com

ref: 54881a1978d2bcac2ecc25e998131544c926eb44 vallode-com/sass/style.scss -rw-r--r-- 1.2 KiB
54881a19vallode Restyle a bit 4 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
/**
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 {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  margin-right: auto;
  max-width: 60ch;
  padding: 1.2rem;
  position: relative;

  @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";