summaryrefslogtreecommitdiff
path: root/themes/hugo-coder/assets/scss/_notices.scss
blob: 1b3a5e7748e6d04bb89adb4f539f581f4fd1c21f (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
.notice {
  border-radius: 0.2rem;
  position: relative;
  margin: 2rem 0;
  padding: 0 0.75rem;
  overflow: auto;

  .notice-title {
    position: relative;
    font-weight: 700;
    margin: 0 -0.75rem;
    padding: 0.2rem 3.5rem;
    border-bottom: 1px solid $bg-color;

    i {
      position: absolute;
      top: 50%;
      left: 1.8rem;
      transform: translate(-50%, -50%);
    }
  }

  .notice-content {
    display: block;
    margin: 2rem 2rem;
  }
}

.notice.note {
  background-color: $bg-color-notice-note-content;

  .notice-title {
    background-color: $bg-color-notice-note-title;

    i {
      color: $fg-color-notice-note-icon;
    }
  }
}

.notice.tip {
  background-color: $bg-color-notice-tip-content;

  .notice-title {
    background-color: $bg-color-notice-tip-title;

    i {
      color: $fg-color-notice-tip-icon;
    }
  }
}

.notice.example {
  background-color: $bg-color-notice-example-content;

  .notice-title {
    background-color: $bg-color-notice-example-title;

    i {
      color: $fg-color-notice-example-icon;
    }
  }
}

.notice.question {
  background-color: $bg-color-notice-question-content;

  .notice-title {
    background-color: $bg-color-notice-question-title;

    i {
      color: $fg-color-notice-question-icon;
    }
  }
}

.notice.info {
  background-color: $bg-color-notice-info-content;

  .notice-title {
    background-color: $bg-color-notice-info-title;

    i {
      color: $fg-color-notice-info-icon;
    }
  }
}

.notice.warning {
  background-color: $bg-color-notice-warning-content;

  .notice-title {
    background-color: $bg-color-notice-warning-title;

    i {
      color: $fg-color-notice-warning-icon;
    }
  }
}

.notice.error {
  background-color: $bg-color-notice-error-content;

  .notice-title {
    background-color: $bg-color-notice-error-title;

    i {
      color: $fg-color-notice-error-icon;
    }
  }
}