]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/mobile.css
7beeb7a2e7063445c29d6dbdf206867f7546224a
[friendica.git] / view / theme / vier / mobile.css
1 aside, header, #nav-events-link, #nav-search-box, #nav-admin-link, #activitiy-by-date-tab, #shared-links-tab,
2 .wall-item-location {
3   display: none;
4 }
5
6 .hide-comments-outer {
7   width: calc(100% - 105px);
8 }
9
10 section {
11   box-sizing: border-box;
12   left: 0px;
13   width: 100%;
14   max-width: 100%;
15   padding: 5px;
16 }
17
18 body, section, nav .nav-menu, div.pager, ul.tabs {
19   font-size: 16px;
20 }
21
22 .wall-item-container .wall-item-ago, .wall-item-network,.type-link blockquote, .type-video blockquote {
23   font-size: 13px;
24 }
25
26 nav {
27   min-width: 100%;
28 }
29
30 .wall-item-container .wall-item-content {
31   max-width: 100%;
32   overflow: hidden;
33   text-overflow: ellipsis;
34 /*  margin-left: -70px;
35   padding-top: 25px; */
36 }
37
38 nav ul {
39     margin-left: 0px;
40 }
41
42
43 .wall-item-container .wall-item-content img,
44 .children .wall-item-container .wall-item-item .wall-item-content img,
45 .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image {
46   max-width: 650px;
47 }
48
49 @media screen and (max-width: 800px) {
50   .wall-item-container .wall-item-content img,
51   .children .wall-item-container .wall-item-item .wall-item-content img,
52   .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image {
53     max-width: 450px;
54   }
55 }
56
57 @media screen and (max-width: 600px) {
58   .wall-item-container .wall-item-content img,
59   .children .wall-item-container .wall-item-item .wall-item-content img,
60   .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image {
61     max-width: 350px;
62   }
63   a.desktop-view { display: none; }
64   a.mobile-view { display: initial; }
65   #nav-apps-link { display: none; }
66
67   .wall-item-container .wall-item-info { width: auto; }
68   .contact-photo-wrapper { width: 55px; }
69   .wwto { left: 0px; }
70
71   .type-link > a { height: 120px; width: 100%; overflow: hidden; display: block; }
72   .type-link > a > img { display: block; max-width: 100%!important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
73
74     /** oembed **/
75   .embed_video {
76     float: none;
77     margin: 0px;
78     width: 100%;
79     overflow: hidden;
80     display: block;
81   }
82   .embed_video > img {
83     display: block;
84     width: 100% !important;
85     height: 100% !important;
86     max-width: 100% !important;
87     object-fit: cover !important;
88   }
89   .embed_video > div {
90     background-image: none !important; background-color: transparent !important;
91     width: 100% !important; height: 110px !important;
92   }
93
94 }
95
96 @media screen and (max-width: 480px) {
97   .wall-item-container .wall-item-content img,
98   .wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image {
99     max-width: 200px;
100   }
101   /* fix img width in threaded view - maybe there exists a better possibility to do this 
102     maybe this needs also to be done for tablet view*/
103   .children .wall-item-container .wall-item-item .wall-item-content img {
104     max-width: 100%;
105   }
106   iframe {
107     max-width: 100%;
108   }
109
110   
111   /* the top-nav notfication menu */
112   nav #nav-notifications-linkmenu .menu-popup {
113         position: fixed;
114         left: 10px;
115         right: 10px;
116         top: 44px;
117         bottom: 10px;
118         width: auto;
119         max-width: none;
120         max-height: none;
121   }
122   
123
124 }
125
126 .wall-item-container.thread_level_2,
127 .wall-item-container.thread_level_3,
128 .wall-item-container.thread_level_4,
129 .wall-item-container.thread_level_5,
130 .wall-item-container.thread_level_6,
131 .wall-item-container.thread_level_7 {
132   margin-left: 0;
133   width: calc(100% - 10px);
134 }
135
136 .wall-item-container.thread_level_2 .wall-item-content,
137 .wall-item-container.thread_level_3 .wall-item-content,
138 .wall-item-container.thread_level_4 .wall-item-content,
139 .wall-item-container.thread_level_5 .wall-item-content,
140 .wall-item-container.thread_level_6 .wall-item-content,
141 .wall-item-container.thread_level_7 .wall-item-content {
142   max-width: 100%;
143 }
144
145 /* aside in/out */
146 .mobile-aside-toggle {
147         display: block !important;
148 }
149 .mobile-aside-toggle a {
150         line-height: 35px;
151         padding: 0 10px;
152 }
153 .mobile-aside-toggle a i {
154         font-size: 22px;
155         color: #CCC;
156 }
157
158 aside {
159         display: block;
160         position: fixed;
161         max-width: 400px;
162         width: 80%;
163         left: -100%;
164         -webkit-transition: left 0.5s;
165         -moz-transition: left 0.5s;
166         -o-transition: left 0.5s;
167         transition: left 0.5s;
168 }
169
170 aside.show {
171         left: 0;
172 }
173
174 /* tabs */
175 .tabs { position: relative; height: 25px!important; }
176 .tabs li { width: 100%; }
177 .tabs .tab { display: none;}
178 .tabs .tab.active { display: block; }
179 .tabs::after {
180         font-family: FontAwesome;
181         text-align: right;
182         content: "\f13a";
183         display: block;
184         position: absolute;
185         left: 0; right:0; top: 0; bottom: 0;
186         padding: 8px 2px 0 0;
187 }
188
189 .tabs.show {
190         position: fixed;
191         z-index: 1000;
192         left: 10px;
193         right: 10px;
194         top: 0px;
195         bottom: 10px;
196         height: auto !important;
197         border: 1px solid #ccc;
198 }
199 .tabs.show::after { display: none; }
200 .tabs.show .tab { display: block; }
201
202 /* jot buttons */
203 #profile-jot-submit,
204 #jot-preview-link {
205     float: none;
206     display: block;
207     width: 100%;
208     margin: 0 0 1em 0;
209 }
210 #profile-jot-submit-wrapper > div {
211     margin: 0 1em 1em 0;
212 }
213 #profile-jot-submit-wrapper > div#profile-jot-perms { margin: 0; }
214  
215 /* ACL window */
216 #profile-jot-acl-wrapper, #profile-jot-acl-wrapper * { box-sizing: border-box; }
217 #acl-wrapper { width: 100%; float: none; }
218 #acl-search { width: 100%; float: none; padding-right: 0px; margin-bottom: 1em; }
219 #acl-showall { width: 100%; height: 48px; margin-bottom: 1em; }
220 .acl-list-item { width: auto; float: none; height: auto; overflow: hidden; position: relative;}
221 .acl-list-item img { width: 48px; height: 48px; }
222 .acl-list-item p { height: auto; font-size: inherit; }
223 .acl-list-item a {
224   float: none;
225   position: absolute;
226   top: 5px;
227   right: 5px;
228   height: 48px;
229   padding: 10px 2px 2px 2px;
230   font-size: 12px;
231   width: 20%;
232   text-align: center;
233   background-position: center 5px;
234 }
235 .acl-list-item a.acl-button-hide { right: 25%; }
236 /* flexbox for ACL window */
237 #cboxLoadedContent,
238 #cboxLoadedContent > div,
239 #acl-wrapper {
240   display: -ms-Flexbox !important;
241   -ms-box-orient: vertival;
242
243   display: -webkit-flex !important;
244   display: -moz-flex !important;
245   display: -ms-flex !important;
246   display: flex !important;
247
248   -webkit-flex-flow: column;
249   -moz-flex-flow: column;
250   -ms-flex-flow: column;
251   flex-flow: column;
252   
253   -webkit-flex: 1 100%;
254   -moz-flex: 1 100%;
255   -ms-flex: 1 100%;
256   flex: 1 100%;
257 }
258 #acl-list {
259   -webkit-flex: 1 1 auto;
260   -moz-flex: 1 1 auto;
261   -ms-flex: 1 1 auto;
262   flex: 1 1 auto;  
263 }
264
265 /** input elements **/
266 input,
267 textarea,
268 select {
269     font-size: 18px;
270     border: 1px solid #888;
271     padding: 0.2em;
272 }
273 input:focus,
274 textarea:focus,
275 select:focus {
276     box-shadow: 1px 1px 10px rgba(46, 151, 255, 0.62);
277 }
278
279 .field, .field > * {  box-sizing: border-box; }
280 .field label { width: 100%; float: none; display: block; }
281 .field input, .field textarea, .field select { max-width: 100%; width: 100%; }
282 .field.yesno .onoff,
283 .field.checkbox input { width: auto; float: right; }
284 .field.yesno label,
285 .field.checkbox label { width: 70%; float: left; }
286 .field .field_help { margin: 0; }
287
288 /** event **/
289 .event-start, .event-end { width: auto; }
290 .event-start .dtstart, .event-end .dtend { float: none; display: block; }
291
292