Fixed header template and updated popover
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / popover.scss
CommitLineData
cf1e012a
AE
1.popover {
2 background-color: $wcfContentBackground;
3 border: 1px solid $wcfContentBorder;
4 opacity: 0;
5 position: absolute;
6 top: 0;
7 vertical-align: middle;
8 visibility: hidden;
9 width: 400px !important;
10 z-index: 500;
11
12 @include boxShadow(2px, 2px, rgba(0, 0, 0, .2), 10px);
13
14 transition: visibility 0s linear .3s, opacity .3s linear;
15
16 &.active {
17 opacity: 1;
18 visibility: visible;
19
20 transition-delay: 0s;
21 }
22
23 &.disableAnimation {
24 transition: none !important;
25
26 > .popoverContent {
27 transition: none !important;
28 }
29
30 > .elementPointer > span {
31 transition: none !important;
32 }
33 }
34
35 > .popoverContent {
36 background-color: $wcfContentBackground;
37 border-radius: 3px;
38 color: $wcfContentText;
39 max-height: 320px;
40 min-height: 36px;
41 opacity: 1;
42 overflow: hidden;
43 padding: 10px;
44
45 transition: opacity .3s linear;
46
47 a {
48 color: $wcfContentLink;
49
50 &:hover {
51 color: $wcfContentLinkActive;
52 }
53 }
54
55 &:not(.loading) {
56 ~ .fa-spinner {
57 display: none;
58 }
59
60 ~ .elementPointer {
61 > span {
62 border-color: $wcfContentBackground $wcfContentBorder;
63 border-style: solid;
64 border-width: 0 5px 5px;
65 left: -5px;
66 opacity: 1;
67 position: absolute;
68 top: 3px;
69
70 transition: opacity .3s linear;
71 }
72
73 &.flipVertical > span {
74 border-width: 5px 5px 0;
75 bottom: 3px;
76 top: auto;
77 }
78 }
79 }
80
81 &.loading {
82 opacity: 0;
83 transition: height .3s linear, opacity 0s;
84
85 ~ .elementPointer > span {
86 opacity: 0;
87
88 transition: opacity 0s;
89 }
90 }
91 }
92
93 > .elementPointer {
94 border-color: rgba(0, 0, 0, .4) transparent;
95 border-style: solid;
96 border-width: 0 6px 6px;
97 top: -2px;
98
99 &.flipVertical {
100 border-width: 6px 6px 0;
101 bottom: -2px;
102 top: auto;
103 }
104 }
105
106 > .fa-spinner {
107 color: rgba(255, 255, 255, 1);
108 left: 50%;
109 margin-left: -14px;
110 margin-top: -14px;
111 position: absolute;
112 top: 50%;
113
114 @include textShadow(black);
115 }
116}