Mercurial > piecrust2
view docs/assets/css/piecrust.less @ 661:2f780b191541
internal: Fix a bug with registering taxonomy terms that are not strings.
Some objects, like the blog data provider's taxnonomy entries, can render as
strings, but are objects themselves. When registering them as "used terms", we
need to use their string representation.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 01 Mar 2016 22:26:09 -0800 |
parents | 7e4e567377cd |
children |
line wrap: on
line source
// Imports @bootstrap-path: "../../../bower_components/bootstrap"; // Core variables and mixins @import "@{bootstrap-path}/less/variables.less"; @import "@{bootstrap-path}/less/mixins.less"; // Reset and dependencies @import "@{bootstrap-path}/less/normalize.less"; @import "@{bootstrap-path}/less/print.less"; @import "@{bootstrap-path}/less/glyphicons.less"; // Core CSS @import "@{bootstrap-path}/less/scaffolding.less"; @import "@{bootstrap-path}/less/type.less"; @import "@{bootstrap-path}/less/code.less"; @import "@{bootstrap-path}/less/grid.less"; @import "@{bootstrap-path}/less/forms.less"; @import "@{bootstrap-path}/less/buttons.less"; // Components @import "@{bootstrap-path}/less/component-animations.less"; @import "@{bootstrap-path}/less/navs.less"; @import "@{bootstrap-path}/less/navbar.less"; // Utility classes @import "@{bootstrap-path}/less/utilities.less"; @import "@{bootstrap-path}/less/responsive-utilities.less"; // Variables @font-size-base: 17px; @font-family-base: @font-family-serif; // Dividers .pc-divider-img(@offset-x, @offset-y) { .hidden-xs(); content: " "; background-image: url("../img/dividers.png"); background-repeat: no-repeat; background-position: -@offset-x -@offset-y; display: inline-block; width: 100px; height: 50px; } .pc-divider(@offset) { &::before { .pc-divider-img(0, @offset); margin-right: 0.5em; } &::after { .pc-divider-img(100px, @offset); margin-left: 0.5em; } } .pc-divider1() { .pc-divider(0); } .pc-divider1-white() { .pc-divider(50px); } .pc-divider2() { .pc-divider(100px); } .pc-divider3() { .pc-divider(150px); } // Icons @pc-icon-width: 128px; // Decorators .pc-decorator(@img-name, @margin-left) { margin-left: @pc-icon-width; &::before { content: " "; background-image: url(@img-name); background-repeat: no-repeat; display: block; float: left; width: 128px; height: 92px; margin-left: -(@pc-icon-width + @margin-left); } } .pc-banner(@img-name) { background-image: url(@img-name); background-repeat: no-repeat; background-position: center center; background-size: cover; } .pc-banner-header(@img-name) { .pc-banner(@img-name); padding: 3em 0; margin-bottom: 3em; text-align: center; color: black; } // Customizations .navbar { margin-bottom: 0; } a.navbar-brand { font-family: Lobster, serif; } h1 { font-family: Lobster, serif; font-size: 2em; margin-top: 0; margin-bottom: 0.375em; text-shadow: #fff 0 0 1em, #fff 0 0 0.1em; } h1.site-title { font-size: 5em; text-align: center; } @media (min-width: @screen-sm-min) { h1 { font-size: 3em; } } @media (min-width: @screen-md-min) { h1 { font-size: 4em; } } h2 { font-family: Lobster, serif; font-size: 2.2em; } blockquote { font-size: @font-size-base; border-left: 5px solid @brand-info; } @media (min-width: @screen-sm-min) { blockquote { .pc-decorator('../img/cake.png', 5px + @line-height-computed); min-height: 126px; } } header.page-title h1 { .pc-divider(150px); text-align: center; margin: 0.5em auto 1em; } footer { .container; font-size: 0.8em; text-align: center; margin: 2em; } // Splash-page header.splash { .pc-banner("../img/header2-bg.jpg"); color: black; } .splash { h1 { .text-hide(); } h2 { .pc-divider2(); margin: 1em 0; text-align: center; } .splash-logo { background-image: url('../img/logo.png'); background-repeat: no-repeat; background-position: center center; background-size: contain; height: 275px; } @media (min-width: @screen-sm-min) { .splash-logo { height: 325px; } } @media (min-width: @screen-md-min) { .splash-logo { height: 375px; } } .splash-main { font-size: 1.1em; margin: 1em 0.5em 0 0.5em; padding-bottom: 2em; p { margin: 0; text-shadow: #fff 0 0 1em, #fff 0 0 0.1em; } } @media (min-width: @screen-sm-min) { .splash-main { font-size: 1.3em; margin: 1em 2em 0 2em; } } @media (min-width: @screen-md-min) { .splash-main { font-size: 1.5em; width: 50%; margin: 1em auto 0 auto; } } .splash-icon { display: block; margin: 0 auto; } } .splash.splash-chalkboard { background: url("../img/chalkboard-bg.jpg"); color: white; padding: 0.25em 0 3em 0; margin: 0; h2 { .pc-divider1-white(); } } // Getting-Started header.tutorial { .pc-banner-header("../img/header5-bg.jpg"); } // Documentation header.documentation { .pc-banner-header("../img/header10-bg.jpg"); } .pc-docnav() { list-style-type: none; padding: 0; } ul.doc-level1 { .pc-docnav(); &>li { margin-bottom: 1em; } &>li>a { font-size: 1.1em; font-weight: bold; } @doc-link-active: darken(@brand-success, 10%); a.active { border-left: 3px solid @doc-link-active; padding-left: 0.5em; color: @doc-link-active; } } ul.doc-level2 { .pc-docnav(); } // Code header.code { .pc-banner-header("../img/header7-bg.jpg"); } // Support header.support { .pc-banner-header("../img/header9-bg.jpg"); }