File size: 2,103 Bytes
6bcb42f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@import "../../css/units.css";
@import "../../css/colors.css";
@import "../../css/z-index.css";

.alert {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    justify-content: flex-start;
    border-radius: $space;
    padding-top: .875rem;
    padding-bottom: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 7px;
    min-height: 1.5rem;
    pointer-events: all;
}

.alert.warn {
    background: #FFF0DF;
    border: 1px solid #FF8C1A;
    box-shadow: 0px 0px 0px 2px rgba(255, 140, 26, 0.25);
}

.alert.success {
    /* tw: hardcode these colors because we change extensions-* colors to be something that looks weird here */
    background: hsla(163, 57%, 85%, 1);
    border: 1px solid hsla(163, 85%, 30%, 1);
    box-shadow: 0px 0px 0px 2px hsla(163, 57%, 85%, 1);
}

.alert-spinner {
    self-align: center;
}

.icon-section {
    min-width: 1.25rem;
    min-height: 1.25rem;
    display: flex;
    padding-right: 1rem;
}

.alert-icon {
    vertical-align: middle;
}

.alert-message {
    color: #555;
    font-weight: bold;
    font-size: .8125rem;
    line-height: .875rem;
    display: flex;
    align-items: center;
    padding-right: .5rem;
}

.alert-buttons {
    display: flex;
    flex-direction: row;
}

.alert-close-button {
    outline-style:none;
}

.alert-close-button-container {
    outline-style: none;
    width: 30px;
    height: 30px;
    align-self: center;
}

.alert-connection-button {
    min-height: 2rem;
    width: 6.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.35rem;
    background: #FF8C1A;
    color: white;
    font-weight: 700;
    font-size: 0.77rem;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    outline-style:none;
}

[dir="ltr"] .alert-connection-button {
    margin-right: 13px;
}

[dir="rtl"] .alert-connection-button {
    margin-left: 13px;
}

/* prevent last button in list from too much margin to edge of alert */
.alert-buttons > :last-child {
    margin-left: 0;
    margin-right: 0;
}