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

app.css « assets - github.com/nanxiaobei/hugo-paper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c549c02c78338c9f432546ab6c17b5c2d67ef8d0 (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
/*
 * Paper
 * A simple, clean, flexible Hugo theme
 * https://github.com/nanxiaobei/hugo-paper
 * Designed by 南小北 (https://lee.so/)
 * Updated in 2022.7.20
 */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html,
  body {
    @apply h-full;
  }

  body {
    -webkit-tap-highlight-color: transparent;
    background: #fbfbfb;

    @apply dark:bg-black;
  }
}

@layer components {
  .btn {
    @apply rounded-full bg-black py-4 px-6 text-sm text-white no-underline shadow-lg duration-100 active:scale-95 dark:bg-white dark:text-black;
  }

  .link {
    @apply duration-200 hover:text-black dark:hover:text-white;
  }
}

@layer utilities {
  .not-ready * {
    @apply !transition-none;
  }

  .btn-menu::before,
  .btn-menu::after {
    @apply block h-[2px] w-5 bg-black duration-200 content-[''] dark:invert;
  }

  .nav-wrapper {
    background: #fbfbfb;
  }

  .open {
    @apply overflow-hidden;
  }

  .open .btn-menu::before {
    @apply w-6 translate-y-[5.5px] rotate-45;
  }

  .open .btn-menu::after {
    @apply w-6 -translate-y-[5.5px] -rotate-45;
  }

  .open .nav-wrapper {
    @apply top-0;
  }

  article {
    @apply text-lg leading-[1.9] text-black dark:text-white;
  }

  article pre {
    @apply -mx-8 !p-8 shadow-lg;
  }

  article blockquote {
    padding-left: calc(theme('space.8') - 3px) !important;
    margin-left: calc(theme('space.8') * -1) !important;

    @apply !border-black;
  }
}