-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtab bar v6.html
169 lines (159 loc) · 4.75 KB
/
tab bar v6.html
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<title>tab bar mockup</title>
</head>
<body>
<div id="main" style="display: flex;width: 100%">
<div class="navigationWrapper">
<button class="navigation" id="backButton"><!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" fill-opacity="context-fill-opacity">
<path d="M14.375 8 3.048 8l4.308-4.308a.626.626 0 0 0-.885-.885L1 8.281l0 .689 5.472 5.473a.623.623 0 0 0 .884 0 .628.628 0 0 0 0-.885L3.048 9.25l11.327 0a.625.625 0 0 0 0-1.25z"/>
</svg>
</button>
<button class="navigation" id="forwardButton"><!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" fill-opacity="context-fill-opacity">
<path d="m1.625 8 11.327 0-4.308-4.308a.626.626 0 0 1 .885-.885L15 8.281l0 .689-5.472 5.473a.623.623 0 0 1-.884 0 .628.628 0 0 1 0-.885l4.308-4.308-11.327 0a.625.625 0 0 1 0-1.25z"/>
</svg>
</button>
<button class="navigation" id="reloadButton">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" fill-opacity="context-fill-opacity">
<path d="M10.707 6 14.7 6l.3-.3 0-3.993a.5.5 0 0 0-.854-.354l-1.459 1.459A6.95 6.95 0 0 0 8 1C4.141 1 1 4.141 1 8s3.141 7 7 7a6.97 6.97 0 0 0 6.968-6.322.626.626 0 0 0-.562-.682.635.635 0 0 0-.682.562A5.726 5.726 0 0 1 8 13.75c-3.171 0-5.75-2.579-5.75-5.75S4.829 2.25 8 2.25a5.71 5.71 0 0 1 3.805 1.445l-1.451 1.451a.5.5 0 0 0 .353.854z"/>
</svg>
</button>
</div>
<div id="tabcontainer">
<!-- <button class="tab1">Text</button> -->
</div>
<div style="height:95%">
<button id="plus">
<svg id="plusPicture" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" fill-opacity="context-fill-opacity">
<path d="M7 9.75 7 14a.625.625 0 0 0 1.25 0l0-4.25.5-.5 4.25 0A.625.625 0 0 0 13 8L8.75 8l-.5-.5 0-4.25a.625.625 0 0 0-1.25 0L7 7.5l-.5.5-4.25 0a.625.625 0 0 0 0 1.25l4.137 0z"/>
</svg>
</button>
</div>
</div>
<style type="text/css">
div{
border-radius: 4px;
}
a{
color: black;
display: inline-block;
height: 100%;
text-decoration: none;
}
svg{
transition: rotate 0.1s
}
img{
vertical-align: middle;
padding-right: 2px;
}
.tab{
display: inline-block;
/*height: 45px;*/
background: #e9e9ed;
color: black;
font-family: "MS Shell Dlg 2",Tahoma, serif;
padding: 2px;
margin-right: 4px;
min-width: 80px; /*65px*/
max-width: 12em;
border: 1px solid #ddd;
border-radius: 0px;
height: inherit;
box-sizing: border-box;
white-space: pre;
}
.selected{
background: #b1b1b9;
border-color: "transparent";
}
.hidden{
display: none;
}
#tabcontainer{
/*these two properties seem to have fixed the tabs overflowing the container slightly*/
overflow-x: auto;
overflow-y: hidden;
/*the prevoius working config which had this slight bug was only one overflow property, and that is overflow-y: auto; */
white-space: nowrap;
scrollbar-width: none;
width: 99%;
height: 95%;
box-sizing: border-box;
}
#plus{
margin-left: 10px;
margin-right: 5px;
width: 2.5rem;
/*height: 40px;*/
height: 100%
}
.navigation{
width: 2.6rem;
/*height: 36px;*/ /*45px*/
margin: 0px 3px 0px;
height: 100%;
}
.navigationWrapper{
height: 95%;
}
#main{
white-space: nowrap;
position: fixed;
top: 2px;
left:2px;
box-sizing: border-box;
height: 88%;
align-items: center;
}
.closeButton{
margin: 5px;
margin-right: 0px;
}
body{
white-space: nowrap;
background: white;
}
@media (prefers-color-scheme: dark) {
body{
background: #1c1b22;
color: #ddd;
}
button{
background: #323340;
border: none;
}
svg{
color: white;
}
.tab{
background: #1c1b22;
border: none;
margin-left: 10px;
padding-left: 4px;
}
.tabseparator{
border-radius: 0px;
}
.selected{
background: #42414d;
}
.tab > a{
color: white;
}
#menuItem{
color: white;
}
}
</style>
<script src="openNewTab6.js"></script>
</body>
</html>