dpaste/client/scss/components/_header.scss

143 lines
2.3 KiB
SCSS
Raw Normal View History

2018-03-24 18:57:05 +11:00
header {
2018-04-14 02:44:33 +10:00
@include boxPadding(0, 0);
2018-03-24 18:57:05 +11:00
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
color: $headerTextColor;
background: linear-gradient(to right, $headerBgColor1, $headerBgColor2);
// Subheadline e.g. Reply Bar
&.sub {
height: 45px;
}
a {
display: inline-block;
color: $headerTextColor;
text-decoration: none;
text-align: center;
font-weight: $baseFontBold;
&:hover { text-decoration: underline; }
// dpaste home link is a bit larger
&.home {
font-size: 28px;
font-weight: $baseFontHeavy;
}
// Nav links have a fixed width to align with grid
&.nav-link {
width: $columnWidth + $columnGap;
}
}
.btn {
width: 2 * $columnWidth;
margin-left: $columnGap / 2;
}
h1 {
position: relative;
font-size: 24px;
font-weight: $baseFontBold;
strong {
font-size: 28px;
font-weight: $baseFontHeavy;
}
}
h2 {
font-size: 16px;
font-weight: $baseFontBold;
}
}
ul#snippetOptions {
2018-04-14 02:44:33 +10:00
@include boxPadding(0, 0);
2018-04-06 05:17:42 +10:00
margin: 0;
2018-03-24 18:57:05 +11:00
height: 40px;
background-color: $metaBgColor;
color: $metaTextColor;
font-size: 13px;
font-weight: $baseFontRegular;
display: flex;
align-items: center;
a:link, a:visited {
color: $metaTextColor;
text-decoration: underline;
}
a:hover, a:active {
color: $hoverColor;
text-decoration: underline;
}
2018-04-07 17:14:32 +10:00
strong {
font-weight: $baseFontBold;
}
2018-03-24 18:57:05 +11:00
li {
2018-04-06 05:17:42 +10:00
margin: 0;
2018-03-24 18:57:05 +11:00
padding: 0 7px;
2018-04-06 05:17:42 +10:00
list-style: none;
2018-03-24 18:57:05 +11:00
&:first-child{ padding-left: 0; }
&:last-child{ padding-right: 0; }
}
li.sep {
@include separator($metaTextColor);
height: 17px;
margin: 0 2px 0 1px;
padding: 0;
}
}
#copyToClipboardField {
position: absolute;
left: -9999px;
}
#copyToClipboard svg {
height: 30px;
position: absolute;
top: -8px;
right: -40px;
&:active {
top: -7px;
}
}
2018-04-06 05:17:42 +10:00
.snippet-message {
2018-04-14 02:44:33 +10:00
@include boxPadding(20px, 0);
2018-04-06 05:17:42 +10:00
padding: 8px 20px;
max-width: 660px;
color: $messageTextColor;
background-color: $messageBgColor;
font-size: 14px;
font-weight: $baseFontDemiBold;
}
// Textarea that holds the unaltered snippet content to be copied to clipboard
#copySnippetSource {
width: 0;
position: absolute;
left: -9999px;
}