aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/material/css/article.scss
blob: baa003725cce513565ccc04611a87aee19e40833 (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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/* ==========================================================================
   Article
   ========================================================================== */

#article {
  font-size: 20px;
  margin: 0 auto;
  max-width: 45em;
  padding: 5px 20px;
  background-color: #fff;
  box-shadow: 0 0 10px #ccc;

  article {
    color: #424242;
    font-size: 18px;
    line-height: 1.7em;
    overflow-wrap: break-word;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      color: #212121;

      strong {
        font-weight: 500;
      }
    }

    h6 {
      font-size: 1.2rem;
    }

    h5 {
      font-size: 1.6rem;
    }

    h4 {
      font-size: 1.9rem;
    }

    h3 {
      font-size: 2.2rem;
    }

    h2 {
      font-size: 2.5rem;
    }

    h1 {
      font-size: 2.7rem;
    }

    a {
      border-bottom: 1px dotted $blueAccentColor;
      text-decoration: none;
    }

    a:hover {
      border-bottom-style: solid;
    }

    ul {
      padding-left: 30px;
    }

    ul,
    ul li {
      list-style-type: disc;
    }

    blockquote {
      font-style: italic;
    }

    strong {
      font-weight: bold;
    }
  }

  img,
  figure {
    max-width: 100%;
    height: auto;
  }

  pre {
    box-sizing: border-box;
    margin: 0 0 1.75em;
    border: #e3f2fd 1px solid;
    width: 100%;
    padding: 10px;
    font-family: monospace;
    font-size: 0.8em;
    white-space: pre;
    overflow: auto;
    background: #f5f5f5;
    border-radius: 3px;
  }

  > header > h1 {
    font-size: 2em;
    margin: 2.1rem 0 0.68rem;
  }

  aside {
    .tools {
      display: flex;
      flex-flow: row wrap;

      .stats {
        font-size: 0.8em;
        margin: 8px 5px 5px;

        li {
          display: inline-flex;
          vertical-align: middle;
          margin: 3px 5px;

          i.material-icons {
            color: #3e3e3e;
            margin-right: 3px;
          }
        }

        a {
          color: #000;
          text-decoration: none;
        }
      }

      .tags {
        float: right;
        margin: 5px 15px 10px;
      }
    }

    .chip {
      background-color: $blueAccentColor;
      padding: 0 15px 0 10px;
      margin: auto 2px;
      border-radius: 6px;

      a,
      i {
        color: #fff;
      }

      i.material-icons {
        float: right;
        font-size: 20px;
        line-height: 32px;
        padding-left: 8px;
      }
    }
  }
}

.reader-mode {
  width: 70px !important;
  transition: width 0.2s ease;

  .collapsible-body {
    height: 0;
    overflow: hidden;
  }

  span {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  &:hover {
    width: 260px !important;

    span {
      opacity: 1;
    }
  }

  .collapsible-body {
    height: auto;

    li a i.material-icons {
      margin: auto 5px auto -8px;
    }
  }
}

.progress {
  position: fixed;
  top: 0;
  width: 100%;
  height: 3px;
  margin: 0;
  z-index: 9999;
}