dpaste/client/scss/components/_header.scss

149 lines
2.4 KiB
SCSS
Raw Permalink 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-color: $headerBgColor;
2018-03-24 18:57:05 +11:00
// 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: calc($columnGap / 2);
2018-03-24 18:57:05 +11:00
}
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;
2019-12-09 09:08:03 +11:00
2018-03-24 18:57:05 +11:00
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;
}
2019-12-09 09:08:03 +11:00
// Hide some options on mobile to make up space
@media only screen and (max-width: 700px) {
.option-type, .sep, .option-edit, .option-slim{ display: none; }
#copyHeadline { display: none; }
}