Skip to content
Snippets Groups Projects
Commit f1f63be0 authored by Bruno Bergher's avatar Bruno Bergher
Browse files

Nakes homepage tabs a bit clearer

parent 4a527334
Branches
Tags
No related merge requests found
......@@ -3,6 +3,7 @@
--brand-light-color: #CDE3F8;
--base-grey: #f8f8f8;
--grey-text-color: #797979;
--alt-bg-color: #F4F6F8;
--success-color: #9CC177;
......@@ -89,4 +90,4 @@
.bg-grey-4 { background-color: color(var(--base-grey) shade(40%)) }
.text-dark { color: #797979; }
.text-dark { color: var(--grey-text-color); }
\ No newline at end of file
......@@ -18,29 +18,33 @@
}
}
/* on the homepage, the wrapper should only be as wide as our largest size */
.Home .wrapper {
max-width: var(--xl-width);
margin: 0 auto;
}
.HomeTab {
background-color: rgba(255, 255, 255, 0.2);
border-radius: 4px 4px 0 0;
text-decoration: none;
border: 1px solid #fff;
color: #fff;
padding: 0.55rem 1rem 0.65rem;
transition: background .15s linear;
}
.HomeTab:hover {
background-color: rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.4);
cursor: pointer;
}
.HomeTab.HomeTab--active {
background-color: #fff;
color: var(--brand-color);
transition: background .3s linear;
color: var(--grey-text-color);
transition: background .15s linear;
}
@media screen and (--breakpoint-min-sm) {
.HomeTab {
padding: 0.65rem 1.35rem 0.75rem;
}
}
.bullet {
position: relative;
margin-left: 1.2em;
......@@ -169,11 +173,6 @@
cursor: pointer;
}
.HomeTabs {
background-color: rgba(0, 0, 0, 0.05);
border-radius:6px;
}
.tooltip {
position: absolute;
background-color: #fff;
......
<div class="Home full-height" ng-controller="Home">
<div class="bg-brand text-white pb4 sm-pb2 lg-pb4">
<div class="bg-brand text-white">
<div class="wrapper">
<div class="Grid Grid--full large-Grid--1of2 align-center">
<div class="Grid-cell" ng-controller="HomeGreeting">
......@@ -8,16 +8,18 @@
<h2 class="text-light text-brand-light">{{subheading}}</h2>
</div>
</div>
<div class="Grid-cell flex">
<div class="HomeTabs p1 md-p2 inline-block md-flex-align-right">
<a class="HomeTab rounded p1 md-p2 inline-block mr1 lg-mr2" ng-class="{'HomeTab--active' : currentView === 'data' }" ng-click="currentView = 'data'">A new question</a>
<a class="HomeTab rounded p1 md-p2 inline-block" ng-class="{'HomeTab--active' : currentView === 'questions'}" ng-click="currentView = 'questions'">An existing question</a>
</div>
</div>
</div>
</div>
<div class="wrapper">
<a class="HomeTab inline-block" ng-class="{'HomeTab--active' : currentView === 'data' }" ng-click="currentView = 'data'">A new question</a>
<a class="HomeTab inline-block" ng-class="{'HomeTab--active' : currentView === 'questions'}" ng-click="currentView = 'questions'">Start from a saved question</a>
</div>
</div>
<div ng-controller="CardList" ng-if="currentView != 'data'">
<div class="flex align-center py2 lg-py3 bg-white border-bottom">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment