_iframe.scss
2.36 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
body.iframe-mode {
.main-sidebar {
display: none;
}
.content-wrapper {
margin-left: 0 !important;
margin-top: 0 !important;
padding-bottom: 0 !important;
}
.main-header,
.main-footer {
display: none;
}
}
body.iframe-mode-fullscreen {
overflow: hidden;
}
.content-wrapper {
height: 100%;
&.iframe-mode {
.btn-iframe-close {
color: $danger;
position: absolute;
line-height: 1;
right: .125rem;
top: .125rem;
z-index: 10;
visibility: hidden;
&:hover,
&:focus {
animation-name: fadeIn;
animation-duration: $transition-speed;
animation-fill-mode: both;
visibility: visible;
}
@include on-touch-device () {
visibility: visible;
}
}
.navbar-nav {
overflow-y: auto;
width: 100%;
.nav-link {
white-space: nowrap;
}
.nav-item {
position: relative;
&:hover,
&:focus {
.btn-iframe-close {
animation-name: fadeIn;
animation-duration: $transition-speed;
animation-fill-mode: both;
visibility: visible;
@include on-touch-device () {
visibility: visible;
}
}
}
}
}
.tab-content {
position: relative;
}
.tab-pane + .tab-empty {
display: none;
}
.tab-empty {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.tab-loading {
position: absolute;
top: 0;
left: 0;
width: 100%;
display: none;
background-color: $main-bg;
> div {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
}
iframe {
border: 0;
width: 100%;
height: 100%;
margin-bottom: -8px;
.content-wrapper {
padding-bottom: 0 !important;
}
}
body.iframe-mode-fullscreen & {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin-left: 0 !important;
height: 100%;
min-height: 100%;
z-index: $zindex-main-sidebar + 10;
}
}
}
.permanent-btn-iframe-close {
.btn-iframe-close {
animation: none !important;
visibility: visible !important;
opacity: 1;
}
}