-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathstyle.css.patch
209 lines (201 loc) · 4.36 KB
/
style.css.patch
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
--- /dev/null
+++ src/main/java/com/lushprojects/circuitjs1/public/style.css
@@ -1,123 +1,94 @@
@charset "UTF-8";
-/*Hide all mobile elements when in desktop usage*/
-.trigger, .toptrigger, .triggerLabel, toptriggerlabel {
+.trigger, .toptrigger, .triggerLabel, .toptriggerlabel {
display: none;
}
-@media only screen and (max-width: 600px) {
- .triggerLabel {
- display: initial;
- border-radius: 10px 0px 0px 10px;
- background: white;
- width: 20px;
- height: 50px;
- position: absolute;
- top: 50px;
- right: 0;
- z-index: 1;
- transition: right 1s;
- }
- .triggerLabel:before {
- content: "‖";
- font-size: 32px;
- padding-left: 3px;
- position: absolute;
- padding-top: 5px;
- }
- .toptriggerlabel {
- z-index: 1;
- top: 5px;
- right: 5px;
- width: 20px;
- height: 20px;
- position: absolute;
- }
- .toptriggerlabel:before {
- content: "☰";
- font-size: 16px;
- padding-left: 2px;
- pointer-events: none;
- }
+.triggerLabel {
+ display: initial;
+ border: 1px solid #bbb;
+ border-radius: 10px 0px 0px 10px;
+ background: #e3e8f3 url(images/hborder.png) repeat-x 0px -2003px;
+ width: 25px;
+ height: 60px;
+ position: absolute;
+ top: 50px;
+ right: 0;
+ z-index: 1;
+ /*transition: right 1s;*/
+ cursor: pointer;
+}
+.triggerLabel:before {
+ content: "\25C0";
+ font-size: 22px;
+ padding-left: 3px;
+ position: absolute;
+ padding-top: 5px;
+ margin: 35% 0;
+}
- /*Trick to hide the menu when the user taps out of the menu*/
- .toptrigger:checked {
- display: block;
- opacity: 0;
- width: 100%;
- height: 100%;
- z-index: 2;
- position: absolute;
- }
- .trigger:checked+.triggerLabel {
- right: 128px;
- }
+/*Trick to hide the menu when the user taps out of the menu*/
+.toptrigger:checked {
+ display: block;
+ opacity: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 2;
+ position: absolute;
+}
+.trigger:checked+.triggerLabel {
+ right: 166px;
+}
- /* selects the top panel */
- .gwt-MenuBar-horizontal>table {
- display: none;
- }
+.trigger:checked+.triggerLabel:before {
+ content: "\25B6";
+}
- /* shows the top menu when the user taps the menu icon */
- .toptrigger:checked+label+div>div>table {
- display: block !important;
- }
+/* shows the top menu when the user taps the menu icon */
+.toptrigger:checked+label+div>div>table {
+ display: block !important;
+}
- /* selects the side panel */
- .trigger+.triggerLabel+div {
- width: 0 !important;
- background: white;
- z-index: 1;
- transition: width 1s;
- }
- .trigger:checked+.triggerLabel+div {
- width: 128px !important;
- }
+/* selects the side panel */
+.trigger+.triggerLabel+div {
+ width: 0 !important;
+ background: white;
+ z-index: 1;
+ /*transition: width 1s;*/
+ border-left: 1px solid #bbb;
+}
+.trigger:checked+.triggerLabel+div {
+ width: 166px !important;
+}
- /* selects the top menu */
- .gwt-MenuBar-horizontal>table {
- height: auto;
- position: fixed;
- width: 100%;
- text-align: center;
- top: 30px;
- background: white;
- z-index: 2;
- }
- .gwt-MenuBar-horizontal * {
- display: block;
- }
- .gwt-MenuBarPopup {
- z-index: 2;
- width: 100%;
- left: 0 !important;
- }
- .gwt-MenuBarPopup>div {
- overflow: scroll;
- z-index: 2;
- width: 100%;
- height: 300px;
- position: fixed;
- top: 30px;
- /* trick to prevent sub menus from opening in the same touch */
- transition:all 0.1s;
- }
- .gwt-MenuBarPopup>div>table {
- width: 100%;
- height: 100%;
- }
- .menuPopupMiddleCenterInner>div>table {
- width: 100%;
- text-align: center;
- }
- .menuPopupTopLeft, .menuPopupTopCenter, .menuPopupTopRight,
- .menuPopupMiddleLeft, .menuPopupMiddleRight, .menuPopupMiddleCenter,
- .menuPopupBottomLeft, .menuPopupBottomCenter, .menuPopupBottomRight {
- background: white !important;
- }
+/* selects the div containing the canvas */
+.trigger+.triggerLabel+div+div {
+ width: 100% !important;
+}
+
+/*
+for triggerLabel:
+ width: 25px;
+ height: 60px;
+for display width < 1000px:
+ width = 2.5vw (2.5 percent of 1000px and etc.)
+ height = 6vw
- /* selects the div containing the canvas */
- .trigger+.triggerLabel+div+div {
- width: 100% !important;
++ font-size=22px => font-size: 2.5vw
++ border-radius=10px => border-radius=1vw
+
+try it:
+*/
+
+@media (max-width: 1000px) {
+ .triggerLabel {
+ width: 2.5vw;
+ height: 6vw;
+ border-radius: 1vw 0px 0px 1vw;
+ }
+ .triggerLabel:before{
+ font-size: 2.5vw;
+ padding-left: 0.3vw;
+ padding-top: 0.5vw;
}
-}
+}
\ No newline at end of file