// Foundation for Sites Settings // ----------------------------- // // Table of Contents: // // 1. Global // 2. Breakpoints // 3. The Grid // 4. Base Typography // 5. Typography Helpers // 6. Abide // 7. Accordion // 8. Accordion Menu // 9. Badge // 10. Breadcrumbs // 11. Button // 12. Button Group // 13. Callout // 14. Close Button // 15. Drilldown // 16. Dropdown // 17. Dropdown Menu // 18. Flex Video // 19. Forms // 20. Label // 21. Media Object // 22. Menu // 23. Off-canvas // 24. Orbit // 25. Pagination // 26. Progress Bar // 27. Reveal // 28. Slider // 29. Switch // 30. Table // 31. Tabs // 32. Thumbnail // 33. Title Bar // 34. Tooltip // 35. Top Bar @import 'util/util'; // my /* TODO: Make colors themable - e.g. Ubuntu has brown and SuSE has green */ $debian-color: #c70338; // 1. Global // --------- $global-font-size: 100%; $global-width: rem-calc(1200); $global-lineheight: 1.5; $primary-color: #808080; //$primary-color: $debian-color; $secondary-color: #777; $success-color: #3adb76; $warning-color: #ffae00; $alert-color: #ec5840; $light-gray: #e6e6e6; $medium-gray: #cacaca; $dark-gray: #8a8a8a; $black: #0a0a0a; $white: #fefefe; $body-background: $white; $body-font-color: $black; $body-font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; $body-antialiased: true; $global-margin: 1rem; $global-padding: 1rem; $global-weight-normal: normal; $global-weight-bold: bold; $global-radius: 0; $global-text-direction: ltr; // 2. Breakpoints // -------------- $breakpoints: ( small: 0, medium: 640px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); // 3. The Grid // ----------- $grid-row-width: $global-width; $grid-column-count: 12; $grid-column-gutter: ( small: 20px, medium: 30px, ); $grid-column-align-edge: true; $block-grid-max: 8; // 4. Base Typography // ------------------ $header-font-family: $body-font-family; $header-font-weight: $global-weight-normal; $header-font-style: normal; $font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace; $header-sizes: ( small: ( 'h1': 24, 'h2': 20, 'h3': 19, 'h4': 18, 'h5': 17, 'h6': 16, ), medium: ( 'h1': 48, 'h2': 40, 'h3': 31, 'h4': 25, 'h5': 20, 'h6': 16, ), ); $header-color: inherit; $header-lineheight: 1.4; $header-margin-bottom: 0.5rem; $header-text-rendering: optimizeLegibility; $small-font-size: 80%; $header-small-font-color: $medium-gray; $paragraph-lineheight: 1.6; $paragraph-margin-bottom: 1rem; $paragraph-text-rendering: optimizeLegibility; $code-color: $black; $code-font-family: $font-family-monospace; $code-font-weight: $global-weight-normal; $code-background: $light-gray; $code-border: 1px solid $medium-gray; $code-padding: rem-calc(2 5 1); $anchor-color: $primary-color; $anchor-color-hover: scale-color($anchor-color, $lightness: -14%); $anchor-text-decoration: none; $anchor-text-decoration-hover: none; $hr-width: $global-width; $hr-border: 1px solid $medium-gray; $hr-margin: rem-calc(20) auto; $list-lineheight: $paragraph-lineheight; $list-margin-bottom: $paragraph-margin-bottom; $list-style-type: disc; $list-style-position: outside; $list-side-margin: 1.25rem; $list-nested-side-margin: 1.25rem; $defnlist-margin-bottom: 1rem; $defnlist-term-weight: $global-weight-bold; $defnlist-term-margin-bottom: 0.3rem; $blockquote-color: $dark-gray; $blockquote-padding: rem-calc(9 20 0 19); $blockquote-border: 1px solid $medium-gray; $cite-font-size: rem-calc(13); $cite-color: $dark-gray; $keystroke-font: $font-family-monospace; $keystroke-color: $black; $keystroke-background: $light-gray; $keystroke-padding: rem-calc(2 4 0); $keystroke-radius: $global-radius; $abbr-underline: 1px dotted $black; // 5. Typography Helpers // --------------------- $lead-font-size: $global-font-size * 1.25; $lead-lineheight: 1.6; $subheader-lineheight: 1.4; $subheader-color: $dark-gray; $subheader-font-weight: $global-weight-normal; $subheader-margin-top: 0.2rem; $subheader-margin-bottom: 0.5rem; $stat-font-size: 2.5rem; // 6. Abide // -------- $abide-inputs: true; $abide-labels: true; $input-background-invalid: $alert-color; $form-label-color-invalid: $alert-color; $input-error-color: $alert-color; $input-error-font-size: rem-calc(12); $input-error-font-weight: $global-weight-bold; // 7. Accordion // ------------ $accordion-background: $white; $accordion-plusminus: true; $accordion-item-color: foreground($accordion-background, $primary-color); $accordion-item-background-hover: $light-gray; $accordion-item-padding: 1.25rem 1rem; $accordion-content-background: $white; $accordion-content-border: 1px solid $light-gray; $accordion-content-color: foreground($accordion-background, $primary-color); $accordion-content-padding: 1rem; // 8. Accordion Menu // ----------------- $accordionmenu-arrows: true; $accordionmenu-arrow-color: $primary-color; // 9. Badge // -------- $badge-background: $primary-color; $badge-color: foreground($badge-background); $badge-padding: 0.3em; $badge-minwidth: 2.1em; $badge-font-size: 0.6rem; // 10. Breadcrumbs // --------------- $breadcrumbs-margin: 0 0 $global-margin 0; $breadcrumbs-item-font-size: rem-calc(11); $breadcrumbs-item-color: $primary-color; $breadcrumbs-item-color-current: $black; $breadcrumbs-item-color-disabled: $medium-gray; $breadcrumbs-item-margin: 0.75rem; $breadcrumbs-item-uppercase: true; $breadcrumbs-item-slash: true; // 11. Button // ---------- $button-padding: 0.85em 1em; $button-margin: 0 0 $global-margin 0; $button-fill: solid; $button-background: $primary-color; $button-background-hover: scale-color($button-background, $lightness: -15%); $button-color: #fff; $button-color-alt: #000; $button-radius: $global-radius; $button-sizes: ( tiny: 0.6rem, small: 0.75rem, default: 0.9rem, large: 1.25rem, ); $button-opacity-disabled: 0.25; // 12. Button Group // ---------------- $buttongroup-margin: 1rem; $buttongroup-spacing: 1px; $buttongroup-child-selector: '.button'; $buttongroup-expand-max: 6; // 13. Callout // ----------- $callout-background: $white; $callout-background-fade: 85%; $callout-border: 1px solid rgba($black, 0.25); $callout-margin: 0 0 1rem 0; $callout-padding: 1rem; $callout-font-color: $body-font-color; $callout-font-color-alt: $body-background; $callout-radius: $global-radius; $callout-link-tint: 30%; // 14. Close Button // ---------------- $closebutton-position: right top; $closebutton-offset-horizontal: 1rem; $closebutton-offset-vertical: 0.5rem; $closebutton-size: 2em; $closebutton-lineheight: 1; $closebutton-color: $dark-gray; $closebutton-color-hover: $black; // 15. Drilldown // ------------- $drilldown-transition: transform 0.15s linear; $drilldown-arrows: true; $drilldown-arrow-color: $primary-color; $drilldown-background: $white; // 16. Dropdown // ------------ $dropdown-padding: 1rem; $dropdown-border: 1px solid $medium-gray; $dropdown-font-size: 1rem; // $dropdown-width: 300px; $dropdown-width: 400px; $dropdown-radius: $global-radius; $dropdown-sizes: ( tiny: 100px, small: 200px, large: 400px, ); // 17. Dropdown Menu // ----------------- $dropdownmenu-arrows: true; $dropdownmenu-arrow-color: $anchor-color; $dropdownmenu-min-width: 200px; $dropdownmenu-background: $white; $dropdownmenu-border: 1px solid $medium-gray; // 18. Flex Video // -------------- $flexvideo-margin-bottom: rem-calc(16); $flexvideo-ratio: 4 by 3; $flexvideo-ratio-widescreen: 16 by 9; // 19. Forms // --------- $fieldset-border: 1px solid $medium-gray; $fieldset-padding: rem-calc(20); $fieldset-margin: rem-calc(18 0); $legend-padding: rem-calc(0 3); $form-spacing: rem-calc(16); $helptext-color: #333; $helptext-font-size: rem-calc(13); $helptext-font-style: italic; $input-prefix-color: $black; $input-prefix-background: $light-gray; $input-prefix-border: 1px solid $medium-gray; $input-prefix-padding: 1rem; $form-label-color: $black; $form-label-font-size: rem-calc(14); $form-label-font-weight: $global-weight-normal; $form-label-line-height: 1.8; $select-background: $white; $select-triangle-color: #333; $select-radius: $global-radius; $input-color: $black; $input-font-family: inherit; $input-font-size: rem-calc(16); $input-background: $white; $input-background-focus: $white; $input-background-disabled: $light-gray; $input-border: 1px solid $medium-gray; $input-border-focus: 1px solid $dark-gray; $input-shadow: inset 0 1px 2px rgba($black, 0.1); $input-shadow-focus: 0 0 5px $medium-gray; $input-cursor-disabled: default; $input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out; $input-number-spinners: true; $input-radius: $global-radius; // 20. Label // --------- $label-background: $primary-color; $label-color: foreground($label-background); $label-font-size: 0.8rem; $label-padding: 0.33333rem 0.5rem; $label-radius: $global-radius; // 21. Media Object // ---------------- $mediaobject-margin-bottom: $global-margin; $mediaobject-section-padding: $global-padding; $mediaobject-image-width-stacked: 100%; // 22. Menu // -------- $menu-margin: 0; $menu-margin-nested: 1rem; //$menu-item-padding: 0.7rem 1rem; $menu-item-padding: 1.2rem 1rem; $menu-icon-spacing: 0.25rem; $menu-expand-max: 6; // 23. Off-canvas // -------------- $offcanvas-size: 250px; $offcanvas-background: $light-gray; $offcanvas-zindex: -1; $offcanvas-transition-length: 0.5s; $offcanvas-transition-timing: ease; $offcanvas-fixed-reveal: true; $offcanvas-exit-background: rgba($white, 0.25); $maincontent-class: 'off-canvas-content'; $maincontent-shadow: 0 0 10px rgba($black, 0.5); // 24. Orbit // --------- $orbit-bullet-background: $medium-gray; $orbit-bullet-background-active: $dark-gray; $orbit-bullet-diameter: 1.2rem; $orbit-bullet-margin: 0.1rem; $orbit-bullet-margin-top: 0.8rem; $orbit-bullet-margin-bottom: 0.8rem; $orbit-caption-background: rgba($black, 0.5); $orbit-caption-padding: 1rem; $orbit-control-background-hover: rgba($black, 0.5); $orbit-control-padding: 1rem; $orbit-control-zindex: 10; // 25. Pagination // -------------- $pagination-font-size: rem-calc(14); $pagination-margin-bottom: $global-margin; $pagination-item-color: $black; $pagination-item-padding: rem-calc(3 10); $pagination-item-spacing: rem-calc(1); $pagination-radius: $global-radius; $pagination-item-background-hover: $light-gray; $pagination-item-background-current: $primary-color; $pagination-item-color-current: foreground($pagination-item-background-current); $pagination-item-color-disabled: $medium-gray; $pagination-ellipsis-color: $black; $pagination-mobile-items: false; $pagination-arrows: true; // 26. Progress Bar // ---------------- // $progress-height: 1rem; $progress-height: 2rem; $progress-background: $medium-gray; $progress-margin-bottom: $global-margin; $progress-meter-background: $primary-color; $progress-radius: $global-radius; // 27. Reveal // ---------- $reveal-background: $white; $reveal-width: 600px; $reveal-max-width: $global-width; $reveal-offset: rem-calc(100); $reveal-padding: $global-padding; $reveal-border: 1px solid $medium-gray; $reveal-radius: $global-radius; $reveal-zindex: 1005; $reveal-overlay-background: rgba($black, 0.45); // 28. Slider // ---------- $slider-height: 0.5rem; $slider-width-vertical: $slider-height; $slider-background: $light-gray; $slider-fill-background: $medium-gray; $slider-handle-height: 1.4rem; $slider-handle-width: 1.4rem; $slider-handle-background: $primary-color; $slider-opacity-disabled: 0.25; $slider-radius: $global-radius; $slider-transition: all 0.2s ease-in-out; // 29. Switch // ---------- $switch-background: $medium-gray; $switch-background-active: $primary-color; $switch-height: 2rem; $switch-height-tiny: 1.5rem; $switch-height-small: 1.75rem; $switch-height-large: 2.5rem; $switch-radius: $global-radius; $switch-margin: $global-margin; $switch-paddle-background: $white; $switch-paddle-offset: 0.25rem; $switch-paddle-radius: $global-radius; $switch-paddle-transition: all 0.25s ease-out; // 30. Table // --------- $table-background: $white; $table-color-scale: 5%; $table-border: 1px solid smart-scale($table-background, $table-color-scale); $table-padding: rem-calc(8 10 10); $table-hover-scale: 2%; $table-row-hover: darken($table-background, $table-hover-scale); $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale); $table-striped-background: smart-scale($table-background, $table-color-scale); $table-stripe: even; $table-head-background: smart-scale($table-background, $table-color-scale / 2); $table-foot-background: smart-scale($table-background, $table-color-scale); $table-head-font-color: $body-font-color; $show-header-for-stacked: false; // 31. Tabs // -------- $tab-margin: 0; $tab-background: $white; $tab-background-active: $light-gray; $tab-border: $light-gray; $tab-item-color: foreground($tab-background, $primary-color); $tab-item-background-hover: $white; $tab-item-padding: 1.25rem 1.5rem; $tab-expand-max: 6; $tab-content-background: $white; $tab-content-border: $light-gray; $tab-content-color: foreground($tab-background, $primary-color); $tab-content-padding: 1rem; // 32. Thumbnail // ------------- $thumbnail-border: solid 4px $white; $thumbnail-margin-bottom: $global-margin; $thumbnail-shadow: 0 0 0 1px rgba($black, 0.2); // $thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5); $thumbnail-shadow-hover: 0 0 6px 3px rgba($primary-color, 0.5); $thumbnail-transition: box-shadow 200ms ease-out; $thumbnail-radius: $global-radius; // 33. Title Bar // ------------- $titlebar-background: $black; $titlebar-color: $white; $titlebar-padding: 0.5rem; $titlebar-text-font-weight: bold; $titlebar-icon-color: $white; $titlebar-icon-color-hover: $medium-gray; $titlebar-icon-spacing: 0.25rem; // 34. Tooltip // ----------- $has-tip-font-weight: $global-weight-bold; $has-tip-border-bottom: dotted 1px $dark-gray; $tooltip-background-color: $black; $tooltip-color: $white; $tooltip-padding: 0.75rem; $tooltip-font-size: $small-font-size; $tooltip-pip-width: 0.75rem; $tooltip-pip-height: $tooltip-pip-width * 0.866; $tooltip-pip-offset: 1.25rem; $tooltip-radius: $global-radius; // 35. Top Bar // ----------- $topbar-padding: 0.5rem; // $topbar-background: $light-gray; $topbar-background: #2e3436; $topbar-title-spacing: 1rem; $topbar-input-width: 200px; // --------------------------------------------------- // -------------- debshots --------------------------- // --------------------------------------------------- // Hover colors of links in top bar $topbar-link-bg-hover: $primary-color; $topbar-dropdown-link-bg-hover: $primary-color; // Larger top bar // $topbar-height: rem-calc(60); // Larger font in top bar // $topbar-link-font-size: rem-calc(15); $topbar-padding: 0; // $topbar-button-font-size: rem-calc(3); // $topbar-button-top: rem-calc(5); // $topbar-link-padding: rem-calc(8); // 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})"; // Import Google font // @import url(//fonts.googleapis.com/css?family=Droid+Sans:400,700); // 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); // Enable special grid and block-grid sizes for xlarge and xxlarge screens /*$include-xl-html-grid-classes: true;*/ /*$include-xl-html-block-grid-classes: true;*/ /*$row-width: 100%;*/ $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-title { // 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; } } header { // Draw a colored line below the navigation topbar border-bottom: 5px solid $debian_color; } // ------- 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; } // Screenshot thumbnail image with name and description // .thumbnail // { // padding-top: 5px !important; // padding-bottom: 5px !important; // border-radius: 10px; // margin-bottom: 10px; // text-align: center; // line-height: 120%; // &:hover // { // background-color: #d0d0d0; // } // .pkgname // { // font-weight: 700; // } // .pkgdescription // { // font-size: 80%; // } // } .grid-thumbnails .column { // border: 5px solid green; border-radius: 10px; // border: 2px solid $light-gray; // height: 300px; 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: 2px solid #d0d0d0; padding-bottom: 20px; margin-bottom: 20px; img.screenshot { width: 100%; } img { box-shadow: 0px 0px 5px #000000; } } .fancybox { img { box-shadow: 0px 0px 5px #000000; } } // .row .gridview // { // img.screenshot // { // width: 100%; // } // } .pkgname { font-size: 130%; font-weight: 700; padding-bottom: 5px; line-height: 120%; } /*.pkgdetails { .description { font-size: 150%; color: #808080; padding-bottom: 10px; } .longdescription { font-size: 90%; line-height: 120%; padding-bottom: 5px; } .rating { padding-top: 5px; vertical-align: bottom; } .commentcount { padding-left: 20px; } } */ .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; } .packagepage { h1 { margin-bottom: 0; } .subtitle { font-size: 120%; color: #808080; } /* 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; } .bigpanel { background-color: $light-gray; border-radius: 10px; padding: 1em 1em 0.1em 1em; margin-bottom: 1em; } .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; } } } // .ratingbar // { // background-color: $progress-bar-color; // width: 10em; // display: inline-block; // padding: 2px; // text-align: left; // color: white; // text-transform: uppercase; // font-size: 0.8em; // font-weight: bolder; // .meter // { // background-color: $primary-color; // padding: 2px; // padding-left: 0.4em; // text-shadow: 0 0 2px black; // } // } /* 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%; // white-space: pre-line; }