aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/partials/tailwind.html
blob: 2492d72c542f11c9f69f762a4082bfd14ab3f91d (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
<style type="text/tailwindcss">
  @layer utilities {

    /* Container */
    .container-blog {
      max-width: 700px;
      margin: 0 auto;
    }

    /* User text selection */
    ::selection {
      @apply bg-yellow-100 text-black;
    }

    ::-moz-selection {
      @apply bg-yellow-100 text-black;
    }

    /* Headings */
    article.single h2 {
      @apply text-2xl font-bold mb-4 mt-8;
    }

    article.single h3 {
      @apply text-xl font-bold mb-4 mt-8;
    }

    article.single h4 {
      @apply text-lg font-bold mb-4 mt-8;
    }

    /* Paragraph */
    article.single p {
      @apply mb-5;
    }

    /* Links */
    article.single a {
      @apply underline hover:bg-yellow-100;
    }

    /* Blockquote */
    article.single blockquote {
      background-image: url('/general/alert-light.svg');
      background-size: 30px 30px;
      background-repeat: no-repeat;
      background-position: 0 5px;
      @apply pl-12 my-8;
    }

    /* Media: Images, audio, video */
    article.single img {
      @apply rounded w-full !bg-gray-50 my-8;
    }

    article.single video {
      @apply rounded w-full !bg-gray-50;
    }

    article.single audio {
      @apply w-full mb-6;
    }

    /* Code */
    article.single code {
      @apply bg-yellow-100 rounded px-2 py-1 text-xs font-medium;
    }

    article.single pre {
      @apply !bg-gray-50 rounded text-xs p-4 mb-6 overflow-x-auto;
    }

    article.single pre code {
      background: unset;
      padding: unset;
      @apply leading-relaxed;
    }

    /* Tables */
    article.single table {
      @apply w-full border border-black border-collapse mb-4;
    }

    article.single table tr,
    article.single table td,
    article.single table th {
      @apply px-4 py-2 border text-left;
    }

    /* Unordered list */
    article.single ul {
      @apply list-disc pl-6 md:pl-10 mb-6;
    }

    /* Ordered list */
    article.single ol {
      @apply list-decimal pl-8 md:pl-10;
    }

    /* Katex */
    article.single .katex-display {
      @apply my-10;
    }

  }
</style>