summaryrefslogtreecommitdiff
path: root/assets/sass/_alert.sass
blob: 6de1c2f65bbbaf9fd3a562e52e821f7692127f08 (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
@import variables

.alert
  padding: 8px 35px 8px 14px
  margin-top: 5px
  margin-bottom: 5px
  color: alert-color('default')
  background-color: alert-bg-color('default')
  border: 1px solid alert-border-color('default')
  border-radius: 4px

.alert-success
  color: alert-color('success')
  background-color: alert-bg-color('success')
  border-color: alert-border-color('success')

.alert-error
  color: alert-color('error')
  background-color: alert-bg-color('error')
  border-color: alert-border-color('error')

.alert-info
  color: alert-color('info')
  background-color: alert-bg-color('info')
  border-color: alert-border-color('info')

.alert-normal
  color: alert-color('normal')
  background-color: alert-bg-color('normal')
  border-color: alert-border-color('normal')

.alert
  ul
    margin-top: 10px
    margin-bottom: 10px
  li
    margin-left: 25px

.alert-fade-out
  text-align: center
  position: fixed
  bottom: 0
  left: 20%
  width: 60%
  padding-top: 5px
  padding-bottom: 5px
  margin-bottom: 0
  border-width: 1px 0 0
  border-radius: 4px 4px 0 0
  z-index: 9999
  opacity: 1
  animation: fadeout 5s linear forwards

@keyframes fadeout
  0%
    opacity: 1
  100%
    opacity: 0