blob: f421b832039eb9239e5886b0533e0fb3793dfa7e [file] [log] [blame]
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
@import "widgets/theme";
.home-page {
text-align: center;
align-items: center;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 2em 1fr 60px;
grid-template-areas: "." "center" "footer";
.home-page-center {
grid-area: center;
.logo {
width: var(--track-shell-width);
}
.home-page-title {
font-size: 60px;
margin: 25px;
text-align: center;
font-family: "Roboto", sans-serif;
font-weight: 400;
color: #333;
}
.channel-select {
font-family: "Roboto", sans-serif;
font-size: 1.2rem;
font-weight: 400;
margin-top: 3em;
--chan-width: 100px;
--chan-num: 2;
input[type="radio"] {
width: 0;
height: 0;
margin: 0;
padding: 0;
-moz-appearance: none;
-webkit-appearance: none;
&:nth-of-type(1):checked ~ .highlight {
margin-left: 0;
}
&:nth-of-type(2):checked ~ .highlight {
margin-left: 100px;
background-color: hsl(54, 100%, 40%);
}
&:nth-of-type(3):checked ~ .highlight {
margin-left: 200px;
background-color: hsl(24, 80%, 42%);
}
}
fieldset {
margin: 30px auto 10px auto;
padding: 0;
position: relative;
background-color: hsl(218, 8%, 30%);
border-radius: $pf-border-radius;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
border: 0;
width: calc(var(--chan-width) * var(--chan-num));
height: 40px;
line-height: 40px;
z-index: 0;
}
label {
display: inline-block;
cursor: pointer;
position: relative;
width: var(--chan-width);
height: 100%;
color: white;
z-index: 2;
text-transform: uppercase;
font-size: 16px;
font-family: "Roboto";
font-weight: 400;
letter-spacing: 0.3px;
}
.highlight {
width: var(--chan-width);
height: 100%;
position: absolute;
background: hsla(122, 45%, 45%, 0.99);
background-image: linear-gradient(
rgba(255, 255, 255, 0.2),
transparent
);
top: 0;
left: 0;
z-index: 1;
border-radius: inherit;
@include transition(0.2s);
}
.home-page-reload {
font-size: 12px;
opacity: 0;
color: #da4534;
font-weight: 400;
@include transition(0.2s);
&.show {
opacity: 1;
}
}
} // .channel-select
} // .home-page-center
.privacy {
grid-area: footer;
text-decoration: none;
font-family: "Roboto", sans-serif;
font-weight: 400;
color: #333;
font-size: 15px;
}
} // .home-page