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

cdata.css « src - github.com/marketempower/axiom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a6a46b34ddc9f1dbf1c74469b1e98c30a890643e (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
/* cdata */
/*
 * Targets bare HTML elements (w/o inline styles/classes)
 * High specificity to prevent excess cascading
*/

.cdata {
  @apply text-raven-900a;

  /* Deal with long non-spaced strings that break layout */
  @apply break-words;

  /* <hN>:typography */
  & > h1,
  & > h2,
  & > h3,
  & > h4,
  & > h5,
  & > h6 {
    @apply font-content-sans font-semibold leading-tighter tracking-tight;
  }

  /* <h1>:typography */
  & > h1 {
    @apply text-34;
  }

  /* <hN>:typography */
  & > h2 {
    @apply text-26;
  }

  & > h3 {
    @apply text-2xl;
  }

  & > h4,
  & > h5,
  & > h6 {
    @apply text-xl;
  }

  /* <p>, <ul>, <ol>, <blockquote p>:typography */
  & > p,
  & > ol,
  & > ul,
  & > blockquote p {
    @apply font-content-serif font-normal text-xl;
    line-height: 1.6; /* 32px */
    letter-spacing: -0.004em;
  }

  /* margin-top */
  & > * + * {
    @apply mt-9;
  }

  /* <hN> margin-top:stacked */
  & > h1 + *,
  & > h2 + *,
  & > h3 + *,
  & > h4 + *,
  & > h5 + *,
  & > h6 + * {
    @apply mt-3;
  }

  /* extra margin */
  & > * + h1 {
    @apply mt-10;
  }

  /* less margin */
  & li > p + p,
  & > blockquote > p + p {
    @apply mt-8;
  }

  /* remove margin */
  /* inline injections */
  & > link,
  & > script,
  & > style,
  & > script:first-child + *,
  & > style:first-child + *,
  & > script:first-child + style + *,
  & > style:first-child + script + * {
    @apply mt-0;
  }

  /* <a>:link:visited */
  & > a:not([role=button]):link,
  & > a:not([role=button]):visited,
  & > p a:link,
  & > p a:visited,
  & > ol li a:link,
  & > ol li a:visited,
  & > ul li a:link,
  & > ul li a:visited,
  & > blockquote a:link,
  & > blockquote a:visited,
  & > figure figcaption a:link,
  & > figure figcaption a:visited,
  & .link:link,
  & .link:visited,
  & > table a:link,
  & > table a:visited,
  & > .table-responsive > table a:link,
  & > .table-responsive > table a:visited,
  & > .footnotes a:link,
  & > .footnotes a:visited {
    color: #007bff;
  }

  /* <a>:hover:active */
  & > a:not([role=button]):hover,
  & > p a:hover,
  & > ol li a:hover,
  & > ul li a:hover,
  & > blockquote a:hover,
  & > figure figcaption a:hover,
  & .link:hover,
  & > table a:hover,
  & > .table-responsive > table a:hover,
  & > .footnotes a:hover {
    @apply underline;
    color: #0056b3;
  }

  /* <blockquote> */
  /*
   Needs to support blockquotes with multiple structures:
   markdown:
    - quote single or multiple paragraphs
    - line-break (two-spaces, <br>), plus cite
   shortcode: formal structure
   */
  & > blockquote {
    @apply pl-5 border-l-4 border-raven-300;

    & p {
      /* see above at <blockquote p>:typography */
      @apply text-raven-700;
    }

    & footer, & cite {
      @apply font-basic-sans text-base leading-normal text-raven-500;
    }
  }

  /* <ul>, <ol>, <li> */
  & > ul,
  & > ul li ul,
  & > ul li ol,
  & > ol,
  & > ol li ol,
  & > ol li ul,
  & > .footnotes > ol {
    padding-inline-start: 1.875rem;
  }

  & > ul,
  & > ul li ul,
  & > ol li ul {
    @apply list-disc;
  }

  & > ol,
  & > ol li ol,
  & > ul li ol,
  & > .footnotes > ol {
    @apply list-decimal;
  }

  /* <hr> */
  & > hr {
    @apply h-px;
    background-image: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.24), rgba(0,0,0,0));
    border: 0;
  }

  /* <table> */
  & > table,
  & > .table-responsive > table {
    @apply w-full max-w-full;

    & th {
      @apply font-semibold;
      text-align: inherit;
    }

    & th, & td {
      @apply p-2 align-top border-t border-raven-100;
    }

    & thead th {
      @apply align-bottom border-b-2 border-raven-100;
    }

    & tbody + tbody {
      @apply border-t-2 border-raven-100;
    }
  }

  /* hugo footnotes */
  & .footnotes {
    @apply text-sm text-raven-500;
    & > hr {
      @apply mt-6 mb-2;
    }
    & .footnote-backref {
      visibility: hidden;
      &::before {
        content: "\2191 \00A0";
        visibility: visible;
      }
    }
  }

  /* enhancements */
  & > .lead {
    @apply font-basic-sans font-light leading-snug text-2xl;
    letter-spacing: normal;
  }

  /* overrides */
  & > .mt-0 {
    margin-top: 0;
  }
}