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

Switch from button to link to fit better

Alasdair Smith 8 лет назад
Родитель
Сommit
1be9e29f35

+ 2 - 2
services/web/app/views/project/list.pug

@@ -65,9 +65,9 @@ block content
 
 					if isShowingV1Projects && settings.overleaf && settings.overleaf.host
 						.project-list-sidebar-v2-pane.col-md-2.col-xs-3
-							span Welcome to the Overleaf v2 alpha! #[a.project-list-sidebar-faq(href="https://www.overleaf.com/help/v2") Find out more].
+							span Welcome to the Overleaf v2 alpha! #[a(href="https://www.overleaf.com/help/v2") Find out more].
 							span To tag or rename your v1 projects, please go back to Overleaf v1.
-							a.project-list-sidebar-v1-link.btn.btn-default(
+							a.project-list-sidebar-v1-link(
 								href=settings.overleaf.host + "/dash?prefer-v1-dash=1"
 							) Go back to v1
 

+ 2 - 17
services/web/public/stylesheets/app/sidebar-v2-dash-pane.less

@@ -17,26 +17,11 @@
 	font-size: 13px;
 }
 
-	.project-list-sidebar-faq {
+	.project-list-sidebar-v2-pane a {
 		color: @v2-dash-pane-link-color;
 		text-decoration: underline;
 	}
 
-	.project-list-sidebar-faq:hover {
-		color: @v2-dash-pane-link-color;
+	.project-list-sidebar-v2-pane a:hover {
 		text-decoration: none;
 	}
-
-	.project-list-sidebar-v1-link {
-		display: block;
-		margin-left: auto;
-		margin-right: auto;
-		padding-top: 0;
-		padding-bottom: 0;
-		background-color: @v2-dash-pane-btn-bg;
-		font-size: 13px;
-	}
-
-	.project-list-sidebar-v1-link:hover {
-		background-color: @v2-dash-pane-btn-hover-bg;
-	}