446 lines
8.1 KiB
SCSS
446 lines
8.1 KiB
SCSS
// ---------------------------------------------------
|
|
// -------------- debshots ---------------------------
|
|
// ---------------------------------------------------
|
|
|
|
$topbar-padding: 0;
|
|
|
|
// At which width the top navigation bar should be switched to
|
|
// mobile mode because otherwise it would wrap into two lines.
|
|
// $topbar-breakpoint: 800px;
|
|
// $topbar-media-query: "only screen and (min-width: #{$topbar-breakpoint})";
|
|
|
|
// Use fonts from out own site. Do not load from Google for privacy reasons.
|
|
@font-face {
|
|
font-family: 'Droid Sans';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: local('Droid Sans'), local('DroidSans'), url(/fonts/DroidSans.woff2) format('woff2');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
|
}
|
|
@font-face {
|
|
font-family: 'Droid Sans';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: local('Droid Sans Bold'), local('DroidSans-Bold'), url(/fonts/DroidSans-Bold.woff2) format('woff2');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
|
|
}
|
|
|
|
$body-font-family: "Droid Sans";
|
|
|
|
$button-tny: rem-calc(4);
|
|
$button-font-tny: rem-calc(15);
|
|
|
|
// Make the background of progress bars use a light version of the primary color
|
|
$progress-bar-color: tint($primary-color, 80);
|
|
|
|
$page-background: #f2f2f2;
|
|
$footer-background: #333333;
|
|
$footer-text-color: #b3b3b3;
|
|
|
|
$menu-item-background-active: $primary-color;
|
|
|
|
header
|
|
{
|
|
// background-color: $light-gray;
|
|
background-color: #2e3436;
|
|
}
|
|
|
|
body
|
|
{
|
|
background-color: $page-background;
|
|
}
|
|
|
|
#teaser
|
|
{
|
|
// Leave some space between topbar and teaser on the home page
|
|
padding-top: 20px;
|
|
|
|
h1
|
|
{
|
|
// Larger "We have screenshots!" teaser title
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.top-bar-left .sitename
|
|
{
|
|
// Display the site name in a larger font
|
|
font-size: 26px;
|
|
padding: 8px 5px 3px 0;
|
|
color: $dark-gray;
|
|
|
|
// Extra space around the Linux distribution's logo
|
|
img
|
|
{
|
|
padding: 0 5px;
|
|
}
|
|
}
|
|
|
|
|
|
// Animate the huge logo on the home page
|
|
|
|
// #biglogo img {
|
|
// animation-name: logoappear;
|
|
// animation-duration: 1s;
|
|
// animation-iteration-count: 1;
|
|
// animation-timing-function: ease-out;
|
|
// animation-direction: alternate;
|
|
// }
|
|
// @keyframes logoappear {
|
|
// 0% {
|
|
// opacity: 0.0;
|
|
// transform: scale(0.7,0.7) rotate(20deg);
|
|
// }
|
|
// 100% {
|
|
// opacity: 1;
|
|
// transform: scale(1,1) rotate(0deg);
|
|
// }
|
|
// }
|
|
|
|
// ----------------------------------
|
|
|
|
.top-bar-right .menu li a
|
|
{
|
|
padding-top: 1.3rem;
|
|
padding-bottom: 1.3rem;
|
|
}
|
|
|
|
.top-bar
|
|
{
|
|
// Draw a colored line below the navigation topbar
|
|
border-bottom: 5px solid $debian_color;
|
|
color: #8a8a8a;
|
|
|
|
a
|
|
{
|
|
color: #8a8a8a;
|
|
}
|
|
|
|
a.active
|
|
{
|
|
color: #fefefe;
|
|
}
|
|
}
|
|
|
|
// ------- Footer - format as table cell to allow vertical centering
|
|
/*@import "compass/layout/sticky-footer";*/
|
|
/*@include sticky-footer(40px, "#wholepage");*/
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
// Wrapper that makes the page 100% high so the start page looks entirely filled
|
|
#wholepage
|
|
{
|
|
height: 100%;
|
|
}
|
|
|
|
// #footer
|
|
// {
|
|
// background-color: $footer-background;
|
|
// display: table;
|
|
// width: 100%;
|
|
|
|
// p
|
|
// {
|
|
// display: table-cell;
|
|
// padding: 5px 20px;
|
|
// color: $footer-text-color;
|
|
// vertical-align: middle;
|
|
// text-align: center;
|
|
// font-size: 100%;
|
|
// }
|
|
|
|
// a
|
|
// {
|
|
// color: $footer-text-color;
|
|
// font-weight: bolder;
|
|
// }
|
|
// }
|
|
|
|
|
|
// Leave some room after the topbar
|
|
#content
|
|
{
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.grid-thumbnails .column
|
|
{
|
|
border-radius: 10px;
|
|
padding: 5px 5px 50px 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
// Vertical icon bar in package view
|
|
#sidebar
|
|
{
|
|
text-align: center;
|
|
|
|
// Text over a group of icons
|
|
.caption
|
|
{
|
|
padding-bottom: 5px;
|
|
color: black;
|
|
}
|
|
|
|
// An icon
|
|
.item
|
|
{
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
// Leave space after the last icon in a group
|
|
.space
|
|
{
|
|
padding-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
// List view
|
|
.row .listview
|
|
{
|
|
// Leave vertical space and draw a line between package rows
|
|
border-bottom: 1px solid rgba(0,0,0, 0.2);
|
|
padding-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
|
|
img.screenshot
|
|
{
|
|
width: 100%;
|
|
}
|
|
|
|
img
|
|
{
|
|
// box-shadow: 0px 0px 5px #000000;
|
|
box-shadow: 0 0 6px -1px rgba(0,0,0, 1);
|
|
}
|
|
}
|
|
|
|
.fancybox
|
|
{
|
|
img
|
|
{
|
|
// box-shadow: 0px 0px 5px #000000;
|
|
box-shadow: 0 0 6px -1px rgba(0,0,0, 1);
|
|
}
|
|
}
|
|
|
|
.pkgname
|
|
{
|
|
font-size: 130%;
|
|
font-weight: 700;
|
|
padding-bottom: 5px;
|
|
line-height: 120%;
|
|
}
|
|
|
|
.grid-thumbnail
|
|
{
|
|
// Pretend that all thumbnails are 120 pixels high to align the captions properly
|
|
height: 130px;
|
|
}
|
|
|
|
// Avoid painting links to detail packages in the primary color
|
|
a.black
|
|
{
|
|
color: black;
|
|
}
|
|
|
|
.gray
|
|
{
|
|
color: #808080;
|
|
}
|
|
|
|
.bigpanel
|
|
{
|
|
background-color: $light-gray;
|
|
border-radius: 10px;
|
|
padding: 1em 1em 0.1em 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.subtitle
|
|
{
|
|
font-size: 120%;
|
|
color: #808080;
|
|
}
|
|
|
|
.packagepage
|
|
{
|
|
h1
|
|
{
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
/* Description of a screenshot (e.g. the situation when the screenshot was taken) */
|
|
.imgcaption
|
|
{
|
|
text-align: center;
|
|
font-variant: italic;
|
|
}
|
|
|
|
/* Status of a screenshot (e.g. if it has to be moderated) */
|
|
.imgstatus
|
|
{
|
|
text-align: center;
|
|
font-style: italic;
|
|
color: #808080;
|
|
}
|
|
|
|
|
|
.comment
|
|
{
|
|
font-size: 90%;
|
|
|
|
.summary
|
|
{
|
|
font-weight: 700;
|
|
}
|
|
|
|
.author
|
|
{
|
|
text-align: right;
|
|
color: #808080;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
form.comment
|
|
{
|
|
border: 2px solid #a0a0a0;
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
|
|
.summary input,textarea
|
|
{
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
// Hide most elements in a comment input form.
|
|
// They get shown once the summary field is typed into.
|
|
.content,.author,.submit
|
|
{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Properties of a screenshot - shown in details view */
|
|
.property-title
|
|
{
|
|
font-weight: bolder;
|
|
font-size: 120%;
|
|
color: #808080;
|
|
}
|
|
|
|
.property
|
|
{
|
|
margin-left: 2em;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.description-verbatim-lines
|
|
{
|
|
line-height: 120%;
|
|
}
|
|
|
|
/* Hide the file upload button to just show the styleable label */
|
|
/* display: none will not work - this is the workaround */
|
|
.hidden-inputfile {
|
|
width: 0.1px;
|
|
height: 0.1px;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
z-index: -1;
|
|
}
|
|
.inputfile + label {
|
|
cursor: pointer; /* "hand" cursor */
|
|
}
|
|
|
|
/* Foundation sets file buttons to 100% width. Fix that */
|
|
[type='file'] {
|
|
width: inherit !important;
|
|
}
|
|
|
|
.top-bar-title a {
|
|
font-size: 1.8rem;
|
|
// font-weight: bold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.button {
|
|
// box-shadow: 0px 0px 5px #000000;
|
|
box-shadow: 0 0 6px -1px rgba(0,0,0, 1);
|
|
border-radius: 10px !important;
|
|
}
|
|
|
|
// Simple animation for FontAwesome icons in callouts at the top.
|
|
/*
|
|
.fa-wobble {
|
|
animation-name: fa-wobble;
|
|
animation-duration: 0.5s;
|
|
animation-direction: alternate;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
@keyframes fa-wobble {
|
|
0% { opacity: 0.2; }
|
|
50% { opacity: 0.8; }
|
|
100% { opacity: 1; }
|
|
}
|
|
*/
|
|
|
|
.menu .menu-text {
|
|
font-size: 2.5rem;
|
|
|
|
// Nicer callouts
|
|
// https://foundation.zurb.com/building-blocks/blocks/alert-callout-subtle.html
|
|
$alert-callout-subtle-border-left-width: rem-calc(5);
|
|
$alert-callout-subtle-radius: 0.6rem;
|
|
|
|
.alert-callout-subtle {
|
|
width: 100%;
|
|
background: $light-gray;
|
|
color: $dark-gray;
|
|
border: 0;
|
|
border-left: $alert-callout-subtle-border-left-width solid $dark-gray;
|
|
box-shadow: 0 5px 8px -6px rgba(0,0,0, 0.2);
|
|
|
|
&.success {
|
|
background: $light-gray;
|
|
color: $dark-gray;
|
|
border-left: $alert-callout-subtle-border-left-width solid $success-color;
|
|
}
|
|
|
|
&.alert {
|
|
background: $light-gray;
|
|
color: $dark-gray;
|
|
border-left: $alert-callout-subtle-border-left-width solid $alert-color;
|
|
}
|
|
|
|
&.warning {
|
|
background: $light-gray;
|
|
color: $dark-gray;
|
|
border-left: $alert-callout-subtle-border-left-width solid $warning-color;
|
|
}
|
|
|
|
&.primary {
|
|
background: $light-gray;
|
|
color: $dark-gray;
|
|
border-left: $alert-callout-subtle-border-left-width solid $primary-color;
|
|
}
|
|
|
|
.close-button {
|
|
font-size: 2rem;
|
|
@include vertical-center;
|
|
}
|
|
|
|
&.radius {
|
|
border-radius: $alert-callout-subtle-radius;
|
|
}
|
|
}
|