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

_notice.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 00035ae78efc3b14145b4023900ae41e0902ee3a (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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
.notices {
    position: relative;
    border-radius: .125rem;
    color: #fff;
    margin: 0 1rem;
    padding: .3rem 0.5rem .3rem 2rem;
    font-size: 0.95rem;

    a {
        text-decoration: underline;
    }

    > table {
        table-layout:fixed;
        width: 100%;
        margin: 10px 0;
        border-spacing: 0;
    }

    &.warning {
        border-top: 30px solid #ffca28;
        background: #fefaf5;
        color: #161209;

        &::before {
          position: absolute;
          content: url("data:image/svg+xml,%0A%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#f57f17' d='M 12 3.0292969 C 11.436813 3.0292969 10.873869 3.2917399 10.558594 3.8164062 L 1.7617188 18.451172 C 1.1134854 19.529186 1.94287 21 3.2011719 21 L 20.796875 21 C 22.054805 21 22.886515 19.529186 22.238281 18.451172 L 13.441406 3.8164062 C 13.126131 3.29174 12.563187 3.0292969 12 3.0292969 z M 12 5.2988281 L 20.236328 19 L 3.7636719 19 L 12 5.2988281 z M 11 9 L 11 14 L 13 14 L 13 9 L 11 9 z M 11 16 L 11 18 L 13 18 L 13 16 L 11 16 z'/%3E%3C/svg%3E");
          top: -26.5px;
          left: 0.4rem;
          height: 100%;
        }

        &::after {
          position: absolute;
          content: attr(data-title);
          font-family: $title-font;
          font-weight: bold;
          top: -26.5px;
          left: 2rem;
          height: 100%;
          color: #424242;
        }

        a {
            font-weight: bold;
            color: rgba(134, 74, 22, 0.995);
            @include themify($themes) {
                @include on-event {
                    color: themed('link-hover');
                }
            }
        }

        > table {
            thead {
                background: #f1b37e;
            }

            th {
                color: rgba(134, 74, 22, 0.995);
            }

            th, td {
                padding: 5px 15px;
                border: 1px double rgba(166, 106, 54, 0.45);
            }
        }

        p > code, li > code, td > code, code {
            padding: 3px 7px;
            color: rgba(150, 90, 38, 0.995) !important;
            background-color: darken(#fefaf5, 6%) !important;
        }
    }

    &.error {
        border-top: 30px solid #d58181;
        background: #fbeded;
        color: #161209;

        &::before {
          position: absolute;
          content: url("data:image/svg+xml,%0A%3C%3Fxml version='1.0'%3F%3E%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#b71c1c' d='M 5 3 C 3.895 3 3 3.895 3 5 L 3 19 C 3 20.105 3.895 21 5 21 L 19 21 C 20.105 21 21 20.105 21 19 L 21 5 C 21 3.895 20.105 3 19 3 L 5 3 z M 5 5 L 19 5 L 19 19 L 5 19 L 5 5 z M 8.4101562 7 L 7 8.4101562 L 10.589844 12 L 7 15.589844 L 8.4101562 17 L 12 13.410156 L 15.589844 17 L 17 15.589844 L 13.410156 12 L 17 8.4101562 L 15.589844 7 L 12 10.589844 L 8.4101562 7 z'/%3E%3C/svg%3E");
          top: -26.5px;
          left: 0.4rem;
          height: 100%;
        }

        &::after {
          position: absolute;
          content: attr(data-title);
          font-family: $title-font;
          font-weight: bold;
          top: -26.5px;
          left: 2rem;
          height: 100%;
          color: #424242;
        }

        a {
            font-weight: bold;
            color: rgba(116, 40, 40, 0.995);
            @include themify($themes) {
                @include on-event {
                    color: themed('link-hover');
                }
            }
        }

        > table {
            thead {
                background: #d58181;
            }

            th {
                color: rgba(116, 40, 40, 0.995);
            }

            th, td {
                padding: 5px 15px;
                border: 1px double rgba(148, 72, 72, 0.45);
            }
        }

        p > code, li > code, td > code, code {
            padding: 3px 7px;
            color: rgba(132, 56, 56, 0.995) !important;
            background-color: darken(#fbeded, 6%) !important;
        }
    }

    &.info {
        border-top: 30px solid #6bb1e0;
        background: #e6f3fb;
        color: #161209;

        &::before {
            position: absolute;
            content: url("data:image/svg+xml,%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#01579b' d='M 12 2 C 6.4889971 2 2 6.4889971 2 12 C 2 17.511003 6.4889971 22 12 22 C 17.511003 22 22 17.511003 22 12 C 22 6.4889971 17.511003 2 12 2 z M 12 4 C 16.430123 4 20 7.5698774 20 12 C 20 16.430123 16.430123 20 12 20 C 7.5698774 20 4 16.430123 4 12 C 4 7.5698774 7.5698774 4 12 4 z M 11 7 L 11 9 L 13 9 L 13 7 L 11 7 z M 11 11 L 11 17 L 13 17 L 13 11 L 11 11 z'/%3E%3C/svg%3E");
            top: -26.5px;
            left: 0.4rem;
            height: 100%;
        }

        &::after {
          position: absolute;
          content: attr(data-title);
          font-family: $title-font;
          font-weight: bold;
          top: -26.5px;
          left: 2rem;
          height: 100%;
          color: #424242;
        }

        a {
            font-weight: bold;
            color: rgba(31, 87, 125, 0.995);
            @include themify($themes) {
                @include on-event {
                    color: themed('link-hover');
                }
            }
        }

        > table {
            thead {
                background: #6bb1e0;
            }

            th {
                color: rgba(31, 87, 125, 0.995);
            }

            th, td {
                padding: 5px 15px;
                border: 1px double rgba(63, 119, 157, 0.45);
            }
        }

        p > code, li > code, td > code, code {
            padding: 3px 7px;
            color: rgba(47, 103, 141, 0.995) !important;
            background-color: darken(#e6f3fb, 6%) !important;
        }
    }

    &.success {
        border-top: 30px solid #84c578;
        background: #e8f7e6;
        color: #161209;

        &::before {
          position: absolute;
          content: url("data:image/svg+xml,%0A%3Csvg fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='21px' height='21px'%3E%3Cpath fill='#1b5e20' d='M 12 2 C 6.4889971 2 2 6.4889971 2 12 C 2 17.511003 6.4889971 22 12 22 C 17.511003 22 22 17.511003 22 12 C 22 6.4889971 17.511003 2 12 2 z M 12 4 C 16.430123 4 20 7.5698774 20 12 C 20 16.430123 16.430123 20 12 20 C 7.5698774 20 4 16.430123 4 12 C 4 7.5698774 7.5698774 4 12 4 z M 16.292969 8.2929688 L 10 14.585938 L 7.7070312 12.292969 L 6.2929688 13.707031 L 10 17.414062 L 17.707031 9.7070312 L 16.292969 8.2929688 z'/%3E%3C/svg%3E");
          top: -26.5px;
          left: 0.4rem;
          height: 100%;
        }

        &::after {
          position: absolute;
          content: attr(data-title);
          font-family: $title-font;
          font-weight: bold;
          top: -26.5px;
          left: 2rem;
          height: 100%;
          color: #424242;
        }

        a {
            font-weight: bold;
            color: rgba(56, 109, 47, 0.995);
            @include themify($themes) {
                @include on-event {
                    color: themed('link-hover');
                }
            }
        }

        > table {
            thead {
                background: #84c578;
            }

            th {
                color: rgba(56, 109, 47, 0.995);
            }

            th, td {
                padding: 5px 15px;
                border: 1px double rgba(82, 141, 79, 0.45);
            }
        }

        p > code, li > code, td > code, code {
            padding: 3px 7px;
            color: rgba(72, 125, 63, 0.995) !important;
            background-color: darken(#e8f7e6, 6%) !important;
        }
    }
}