Просмотр исходного кода

Merge pull request #517 from sharelatex/pr-fix-error-banner-clicks

Make the alert container a zero-height static element, to avoid capt…
Shane Kilkelly 9 лет назад
Родитель
Сommit
6feb6959a3
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      services/web/public/stylesheets/app/editor.less

+ 4 - 5
services/web/public/stylesheets/app/editor.less

@@ -35,11 +35,8 @@
 }
 }
 
 
 .global-alerts {
 .global-alerts {
-	position: absolute;
-	z-index: 20;
-	top: 2px;
-	left: 0;
-	right: 0;
+	height: 0;
+	margin-top: 2px;
 	text-align: center;
 	text-align: center;
 
 
 	.alert {
 	.alert {
@@ -49,6 +46,8 @@
 		padding: (@line-height-computed / 4);
 		padding: (@line-height-computed / 4);
 		font-size: 14px;
 		font-size: 14px;
 		margin-bottom: (@line-height-computed / 4);
 		margin-bottom: (@line-height-computed / 4);
+		position: relative;
+		z-index: 20;
 	}
 	}
 }
 }
 	#try-reconnect-now-button {
 	#try-reconnect-now-button {