Преглед изворни кода

Move setting sidebar height to OL only file so var can be moved to specific scope

Alasdair Smith пре 9 година
родитељ
комит
bf23a09644

+ 0 - 1
services/web/public/stylesheets/app/project-list.less

@@ -55,7 +55,6 @@
 		} 
 
 		.project-list-sidebar when (@is-overleaf) {
-			height: calc(~"100% -" @v1-dash-link-height);
 			overflow-x: hidden;
 			overflow-y: auto;
 			-ms-overflow-style: -ms-autohiding-scrollbar;

+ 6 - 0
services/web/public/stylesheets/app/sidebar-v1-dash-link.less

@@ -1,3 +1,9 @@
+@v1-dash-link-height: 110px;
+
+.project-list-sidebar {
+	height: calc(~"100% -" @v1-dash-link-height);
+}
+
 .project-list-sidebar-v1-link {
 	position: absolute;
 	bottom: 0;

+ 0 - 1
services/web/public/stylesheets/core/_common-variables.less

@@ -852,7 +852,6 @@
 @sidebar-active-bg             : @link-color;
 @sidebar-hover-bg              : transparent;
 @sidebar-hover-text-decoration : underline;
-@v1-dash-link-height           : 0;
 
 @folders-menu-margin           : 0;
 @folders-menu-line-height      : 1.2;

+ 0 - 1
services/web/public/stylesheets/core/ol-variables.less

@@ -110,7 +110,6 @@
 @sidebar-active-bg              : @ol-blue-gray-6;
 @sidebar-hover-bg               : @ol-blue-gray-4;
 @sidebar-hover-text-decoration  : none;
-@v1-dash-link-height            : 110px;
 @v1-dash-link-bg                : @ol-blue-gray-4;
 @v1-dash-link-btn-bg            : @ol-blue-gray-5;
 @v1-dash-link-btn-hover-bg      : @ol-blue-gray-6;