personal-site/sass/_container.scss -rw-r--r-- 2.6 KiB View raw
                                                                                
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
.container {
  .image-desc {
    font-style: italic;
    color: $headers;
    text-align: center;
    font-size: 15px;
  }

  .page-title {
    margin-bottom: 0px;
  }

  .page-meta-data {
    font-family: $serif-stack;
    margin-top: -.25rem;
    margin-bottom: .75rem;
    font-size: 18px;
    display: block;
    color: $light_text;
    font-style: italic;

    span {
      color: $text;
    }
  }

  hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  code, ul li code {
    @include wrap-word;

    font-family: $monospace-stack;
    font-size: 14px;
    padding: 2px 4px;
    color: $code_text;
    background-color: $code_background;
    border-radius: 4px;
  }

  pre {
    @include wrap-word;
    padding: 0.5em 1em;
    font-size: 14px;
    background-color: $code_background !important;
    box-shadow: 0 4px 2px hsla(0, 0%, 0%, 0.2);

    span {
      background-color: $code_background !important;
    }
  }

  p {
    @include anchor-colors;
    @include anchor-style;

    margin-bottom: 1rem;
  }

  img.smol-img {
    display: block;
    max-height: 25rem;
    width: auto;
    margin: 0px auto 2rem auto
  }

  p img.full {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2);
  }

  p, li, h6 {
    font-family: $serif-stack;
    line-height: 1.5;
  }

  /* Post Headers */
  h1 {
    text-align: left;
    font-weight: bold;
    margin-bottom: 0px;
  }

  h6 {
    text-align: center;
    font-size: 14px;
    color: $med_text;
    margin-top: -1.5rem;
  }

  h1,h2,h3,h4,h5 {
    font-family: $serif-stack;
    font-weight: bold;
    margin-bottom: .5rem;
  }

  table {
    border-spacing: 1;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin: 1rem auto;
    position: relative;

    * {
      position: relative;
    }

    td, th {
      padding: 6px 8px;
      padding-left: 15px;
    }

    thead tr {
      background-color: $primary;
      color: rgb(248, 248, 248);
      font-weight: bold;
      border-bottom: 1px solid #ccc;
    }

    tbody tr {
      &:nth-child(odd) {
        background-color: $table_lighter;
      }

      &:nth-child(even) {
        background-color: $table_darker;
      }


      &:last-child {
        td {
          border: none;
        }
      }

      &:hover {
        background-color: $table_highlight;
        cursor: pointer;
      }
    }
  }

  blockquote {
    border-left: 4px solid $primary;

    @media (min-width: $mobile-screen) {
      margin-left: 2rem;
    }

    p {
      margin-bottom: 10px;
    }

    ul {
      &:last-child {
        margin-bottom: 2.5rem;
      }
    }
  }
}