Skip to content

Commit b9052e0

Browse files
committed
fix: update styles for new chrome versions
1 parent c652302 commit b9052e0

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

chrome-options.css

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
display: none;
77
}
88

9+
.chrome-bootstrap .frame {
10+
display: flex;
11+
align-items: stretch;
12+
margin-bottom: 31px;
13+
}
14+
915
.chrome-bootstrap .frame .navigation {
1016
display: none;
1117
}
1218

1319
.chrome-bootstrap .frame .mainview {
1420
-webkit-margin-start: 10px;
21+
width: calc(100% - 155px);
22+
position: relative;
23+
max-height: 450px;
1524
}
1625

1726
.chrome-bootstrap .frame .mainview header {
@@ -38,41 +47,40 @@
3847
display: block;
3948
}
4049

41-
.chrome-bootstrap.show-sidebar .frame .mainview {
42-
-webkit-margin-start: 155px;
43-
}
44-
4550
.chrome-bootstrap.show-tab-title .frame .mainview header {
4651
display: block;
47-
}
48-
49-
.chrome-bootstrap.show-tab-title .frame .content {
50-
padding-top: 55px;
52+
position: relative;
5153
}
5254

5355
.chrome-bootstrap .frame .content .tab-desc {
5456
display: block;
5557
}
5658

57-
.chrome-bootstrap .navigation {
59+
.chrome-bootstrap .frame .navigation {
5860
background: #fff;
5961
position: relative;
6062
}
6163

6264
.chrome-bootstrap .frame .mainview > div {
63-
position: static;
65+
position: relative;
66+
top: 0;
67+
left: 0;
68+
float: none;
69+
height: 100%;
70+
max-height: 450px;
71+
display: flex;
72+
flex-direction: column;
6473
}
6574

6675
.chrome-bootstrap .frame .mainview > div:not(.selected) {
67-
position: relative;
68-
height: 0;
69-
width: 0;
70-
overflow: hidden;
71-
transition: margin 100ms;
76+
position: absolute;
77+
left: -99999px;
78+
float: left;
7279
}
7380

7481
.chrome-bootstrap .frame .mainview > div > .content {
75-
padding-bottom: 10%;
82+
height: 100%;
83+
position: relative;
7684
}
7785

7886
.chrome-bootstrap .predefined-sound,
@@ -332,7 +340,7 @@
332340

333341
.chrome-bootstrap .preview-image {
334342
position: absolute;
335-
margin: 0.65em 0 40px;
343+
margin-top: 0.65em;
336344
padding: 5px;
337345
border-radius: 5px;
338346
background: #fff;

0 commit comments

Comments
 (0)