Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / hugo-clarity / assets / sass / _base.sass
blob: 27633375d1ad013c2ab4057477fde1c205b80dad (plain) (blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
*
  box-sizing: border-box
  -webkit-appearance: none
  margin: 0
  padding: 0

body, html 
  scroll-behavior: smooth
  font-kerning: normal
  -webkit-font-feature-settings: "kern" 1
  text-rendering: optimizeLegibility
  text-rendering: geometricPrecision
  -webkit-text-size-adjust: 100%
  font-size: 100%
  &::-webkit-scrollbar-corner
    background-color: transparent
body
  font-family: var(--font)
  background: var(--choice-bg)
  color: var(--text)
  font-size: 1.1rem
  line-height: 1.5
  max-width: 1920px
  margin: 0 auto
  position: relative
  font-kerning: normal
  display: flex
  flex-direction: column
  justify-content: space-between
  min-height: 100vh
  -webkit-font-smoothing: antialiased
  -moz-osx-font-smoothing: grayscale
a
  text-decoration: none
  color: inherit
  &:focus, &:focus-within
    outline: none !important

h1,h2,h3,h4,h5
  font-family: inherit
  font-weight: 300
  padding: 5px 0
  margin: 15px 0
  color: var(--header-text)
  line-height: 1.35
  &:hover .link
    opacity: 1

h1
  font-size: 200%
  font-weight: 400
h2
  font-size: 175%
h3
  font-size: 150%
h4
  font-size: 125%
h5
  font-size: 120%
h6
  font-size: 100%

img, svg 
  max-width: 100%
  vertical-align: middle
img 
  height: auto
  margin: 1rem auto
  padding: 0
  &:focus, &:focus-within
    outline: none !important
    border: none !important

main
  flex: 1

ul
  list-style: none
  -webkit-padding-start: 0
  -moz-padding-start: 0

b, strong, em 
  font-weight: 500

hr 
  border: none
  padding: 1px
  background: darken($haze, 7.5%)
  opacity: 0.5
  margin: 1rem 0
  @media (prefers-color-scheme: dark)
    background: var(--theme)

aside
  h3
    position: relative
    margin: 0 !important
  ul
    list-style: initial
    padding-left: 1rem
  li
    padding: 0.25rem 0

table
  width: 100%
  border-collapse: collapse
  background: var(--table-haze)
  // border-style: hidden
  margin-bottom: 1.5rem
  &:not(.ln-table) t
    background: var(--table-bg)
  
th
  text-align: left

td, th
  padding: 0.5rem 1rem
  border: 1px solid var(--table-border)

td,
th
  padding: 0.5rem 1rem
  text-align: left
  font-weight: 400
  &:not(:first-child)
    padding-left: 1.5rem

th
  font-weight: 700

tbody
  padding: 0
  tr
    &:nth-child(even)
      background-color: var(--table-haze) 
    &:nth-child(odd)
      background-color: var(--table-bg)

blockquote
  margin: 25px auto
  padding: 1.5rem
  color: #555555
  padding: 1rem 1.5rem
  border-left: 0.2rem solid $theme
  position: relative
  background: var(--haze)
p
  padding: 0.8rem 0