Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_single.scss « scss « assets - github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b75aaa0988e063bcdc219fde50cd9e921b7fe0e5 (plain)
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

.single {
  line-height: 2;
  color: #4C4E4D;
  font-size: 16px;

  .single-title {
    font-size: 30px;
    font-weight: 500;
    font-family: 'Monda', -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif;
    @include mobile {
      font-size: 26px;
    }
  }

  a {
    color: var(--theme-color);
  }

  pre {
    border-radius: 2px;
    padding: 20px;
    overflow: auto;

    code {
      font-size: 14px;
    }
  }

  code {
    font-family: "menlo", serif;
  }

  p {
    margin: 30px 0 30px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    outline: none;
    margin: 30px 0 30px;
    font-family: 'Monda', -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  ol, ul {
    list-style: inherit;
    padding-left: 20px;
  }
}

.single-meta {
  color: #999;

  .single-date {
    margin-right: 10px;
  }
  a {
    color: #999;
    margin-right: 10px;
  }
}

.single-toc {
  width: 240px;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: #909090;
  position: fixed;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);

  @include mobile {
    display: none;
  }

  .toc-list-item {
    transition: color .2s;
  }

  .toc-link {
    &:before {
      display: none;
    }
  }

  .toc-list {
    padding-left: 20px;
    margin: 5px 0;
  }


  .toc-list-item {
    margin-bottom: 5px;
    @include text-truncate;
  }

  .is-active-li {
    & > a {
      color: #303030;
    }
  }

  & > .toc-list {
    padding-left: 0;
  }

  ol, ul {
    list-style: none;
  }
}