]> git.mxchange.org Git - friendica.git/blob - view/theme/vier/mobile.css
d90f391688be537b6b31cec5cc8c0a8d2ea267b1
[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.embed_rich { width: 100% !important }
107     /* TODO: check if this is needed.
108    * oembedded iframe usually have "width" and "height" as attributes
109    * that override this rule */
110   iframe {
111     max-width: 100%;
112   }
113
114   /* the top-nav notfication menu
115     Note: the device needs a min display width of 320px */
116   #nav-notifications-menu {
117     width: 270px;
118   }
119 }
120
121 .wall-item-container.thread_level_2,
122 .wall-item-container.thread_level_3,
123 .wall-item-container.thread_level_4,
124 .wall-item-container.thread_level_5,
125 .wall-item-container.thread_level_6,
126 .wall-item-container.thread_level_7 {
127   margin-left: 0;
128   width: calc(100% - 10px);
129 }
130
131 .wall-item-container.thread_level_2 .wall-item-content,
132 .wall-item-container.thread_level_3 .wall-item-content,
133 .wall-item-container.thread_level_4 .wall-item-content,
134 .wall-item-container.thread_level_5 .wall-item-content,
135 .wall-item-container.thread_level_6 .wall-item-content,
136 .wall-item-container.thread_level_7 .wall-item-content {
137   max-width: 100%;
138 }
139
140 /* aside in/out */
141 .mobile-aside-toggle {
142         display: block !important;
143 }
144 .mobile-aside-toggle a {
145         line-height: 35px;
146         padding: 0 10px;
147 }
148 .mobile-aside-toggle a i {
149         font-size: 22px;
150         color: #CCC;
151 }
152
153 aside {
154         display: block;
155         position: fixed;
156         max-width: 400px;
157         width: 80%;
158         left: -100%;
159         -webkit-transition: left 0.5s;
160         -moz-transition: left 0.5s;
161         -o-transition: left 0.5s;
162         transition: left 0.5s;
163 }
164
165 aside.show {
166         left: 0;
167 }
168
169 /* tabs */
170 .tabs { position: relative; height: 25px!important; }
171 .tabs li { width: 100%; }
172 .tabs .tab { display: none;}
173 .tabs .tab.active { display: block; }
174 .tabs::after {
175         font-family: FontAwesome;
176         text-align: right;
177         content: "\f13a";
178         display: block;
179         position: absolute;
180         left: 0; right:0; top: 0; bottom: 0;
181         padding: 8px 2px 0 0;
182 }
183
184 .tabs.show {
185         position: fixed;
186         z-index: 1000;
187         left: 10px;
188         right: 10px;
189         top: 0px;
190         bottom: 10px;
191         height: auto !important;
192         border: 1px solid #ccc;
193 }
194 .tabs.show::after { display: none; }
195 .tabs.show .tab { display: block; }
196
197 /* jot buttons */
198 #profile-jot-submit,
199 #jot-preview-link {
200     float: none;
201     display: block;
202     width: 100%;
203     margin: 0 0 1em 0;
204 }
205 #profile-jot-submit-wrapper > div {
206     margin: 0 1em 1em 0;
207 }
208 #profile-jot-submit-wrapper > div#profile-jot-perms { margin: 0; }
209  
210 /* ACL window */
211 #profile-jot-acl-wrapper, #profile-jot-acl-wrapper * { box-sizing: border-box; }
212 #acl-wrapper { width: 100%; float: none; }
213 #acl-search { width: 100%; float: none; padding-right: 0px; margin-bottom: 1em; }
214 #acl-showall { width: 100%; height: 48px; margin-bottom: 1em; }
215 .acl-list-item { width: auto; float: none; height: auto; overflow: hidden; position: relative;}
216 .acl-list-item img { width: 48px; height: 48px; }
217 .acl-list-item p { height: auto; font-size: inherit; }
218 .acl-list-item a {
219   float: none;
220   position: absolute;
221   top: 5px;
222   right: 5px;
223   height: 48px;
224   padding: 10px 2px 2px 2px;
225   font-size: 12px;
226   width: 20%;
227   text-align: center;
228   background-position: center 5px;
229 }
230 .acl-list-item a.acl-button-hide { right: 25%; }
231 /* flexbox for ACL window */
232 #cboxLoadedContent,
233 #cboxLoadedContent > div,
234 #acl-wrapper {
235   display: -ms-Flexbox !important;
236   -ms-box-orient: vertival;
237
238   display: -webkit-flex !important;
239   display: -moz-flex !important;
240   display: -ms-flex !important;
241   display: flex !important;
242
243   -webkit-flex-flow: column;
244   -moz-flex-flow: column;
245   -ms-flex-flow: column;
246   flex-flow: column;
247   
248   -webkit-flex: 1 100%;
249   -moz-flex: 1 100%;
250   -ms-flex: 1 100%;
251   flex: 1 100%;
252 }
253 #acl-list {
254   -webkit-flex: 1 1 auto;
255   -moz-flex: 1 1 auto;
256   -ms-flex: 1 1 auto;
257   flex: 1 1 auto;  
258 }
259
260 /** input elements **/
261 input,
262 textarea,
263 select {
264     font-size: 18px;
265     border: 1px solid #888;
266     padding: 0.2em;
267 }
268 input:focus,
269 textarea:focus,
270 select:focus {
271     box-shadow: 1px 1px 10px rgba(46, 151, 255, 0.62);
272 }
273
274 .field, .field > * {  box-sizing: border-box; }
275 .field label { width: 100%; float: none; display: block; }
276 .field input, .field textarea, .field select { max-width: 100%; width: 100%; }
277 .field.yesno .onoff,
278 .field.checkbox input { width: auto; float: right; }
279 .field.yesno label,
280 .field.checkbox label { width: 70%; float: left; }
281 .field .field_help { margin: 0; }
282
283 /** event **/
284 .event-start, .event-end { width: auto; }
285 .event-start .dtstart, .event-end .dtend { float: none; display: block; }
286
287