forked from indymedia/epicyon
				
			Margin for links and newswire screens on mobile
							parent
							
								
									93859563dc
								
							
						
					
					
						commit
						5d0b06f199
					
				|  | @ -88,6 +88,7 @@ | ||||||
|     --column-left-width: 10vw; |     --column-left-width: 10vw; | ||||||
|     --column-center-width: 80vw; |     --column-center-width: 80vw; | ||||||
|     --column-right-width: 10vw; |     --column-right-width: 10vw; | ||||||
|  |     --column-left-mobile-margin: 10px; | ||||||
|     --column-left-top-margin: 0; |     --column-left-top-margin: 0; | ||||||
|     --column-left-header-style: uppercase; |     --column-left-header-style: uppercase; | ||||||
|     --column-left-header-background: #555; |     --column-left-header-background: #555; | ||||||
|  | @ -1721,6 +1722,9 @@ div.container { | ||||||
|         display: none; |         display: none; | ||||||
|         width: 0%; |         width: 0%; | ||||||
|     } |     } | ||||||
|  |     .col-left-mobile { | ||||||
|  |         margin-left: var(--column-left-mobile-margin); | ||||||
|  |     } | ||||||
|     .col-left { |     .col-left { | ||||||
|         float: left; |         float: left; | ||||||
|         width: 0%; |         width: 0%; | ||||||
|  | @ -1729,6 +1733,9 @@ div.container { | ||||||
|     .col-center { |     .col-center { | ||||||
|         width: 100vw; |         width: 100vw; | ||||||
|     } |     } | ||||||
|  |     .col-right-mobile { | ||||||
|  |         margin-left: var(--column-left-mobile-margin); | ||||||
|  |     } | ||||||
|     .col-right { |     .col-right { | ||||||
|         float: right; |         float: right; | ||||||
|         width: 0%; |         width: 0%; | ||||||
|  |  | ||||||
|  | @ -227,6 +227,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str, | ||||||
|         '<img loading="lazy" class="timeline-banner" ' + \ |         '<img loading="lazy" class="timeline-banner" ' + \ | ||||||
|         'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n' |         'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n' | ||||||
| 
 | 
 | ||||||
|  |     htmlStr += '<div class="col-left-mobile">\n' | ||||||
|     htmlStr += '<center>' + \ |     htmlStr += '<center>' + \ | ||||||
|         headerButtonsFrontScreen(translate, nickname, |         headerButtonsFrontScreen(translate, nickname, | ||||||
|                                  'links', authorized, |                                  'links', authorized, | ||||||
|  | @ -237,6 +238,10 @@ def htmlLinksMobile(cssCache: {}, baseDir: str, | ||||||
|                              iconsPath, editor, |                              iconsPath, editor, | ||||||
|                              False, timelinePath, |                              False, timelinePath, | ||||||
|                              rssIconAtTop, False, False) |                              rssIconAtTop, False, False) | ||||||
|  | 
 | ||||||
|  |     # end of col-left-mobile | ||||||
|  |     htmlStr += '</div>\n' | ||||||
|  | 
 | ||||||
|     htmlStr += '</div>\n' + htmlFooter() |     htmlStr += '</div>\n' + htmlFooter() | ||||||
|     return htmlStr |     return htmlStr | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -433,6 +433,8 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str, | ||||||
|         '<img loading="lazy" class="timeline-banner" ' + \ |         '<img loading="lazy" class="timeline-banner" ' + \ | ||||||
|         'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n' |         'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n' | ||||||
| 
 | 
 | ||||||
|  |     htmlStr += '<div class="col-right-mobile">\n' | ||||||
|  | 
 | ||||||
|     htmlStr += '<center>' + \ |     htmlStr += '<center>' + \ | ||||||
|         headerButtonsFrontScreen(translate, nickname, |         headerButtonsFrontScreen(translate, nickname, | ||||||
|                                  'newswire', authorized, |                                  'newswire', authorized, | ||||||
|  | @ -445,6 +447,9 @@ def htmlNewswireMobile(cssCache: {}, baseDir: str, nickname: str, | ||||||
|                               False, timelinePath, showPublishButton, |                               False, timelinePath, showPublishButton, | ||||||
|                               showPublishAsIcon, rssIconAtTop, False, |                               showPublishAsIcon, rssIconAtTop, False, | ||||||
|                               authorized, False) |                               authorized, False) | ||||||
|  |     # end of col-right-mobile | ||||||
|  |     htmlStr += '</div\n>' | ||||||
|  | 
 | ||||||
|     htmlStr += htmlFooter() |     htmlStr += htmlFooter() | ||||||
|     return htmlStr |     return htmlStr | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue