/** * Primary LESS Stylesheet for Opus Primus * * @package OpusPrimus * @since 0.1 * * @author Opus Primus * @copyright Copyright (c) 2012, Opus Primus * * This file is part of Opus Primus. * * Opus Primus is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2, as published by the * Free Software Foundation. * * You may NOT assume that you can use any other version of the GPL. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details * * You should have received a copy of the GNU General Public License along with * this program; if not, write to: * * Free Software Foundation, Inc. * 51 Franklin St, Fifth Floor * Boston, MA 02110-1301 USA * * The license for this software can also likely be found here: * http://www.gnu.org/licenses/gpl-2.0.html */ /** Table of Contents ------------------------------------------------------- */ /** * === Variables === * - Basic Colors * - Relative Sizes - 100%, 200%, 300%, etc. * * === Clearance === * - clear left, right, and both * - all elements that require clear: both * * === Decorations === * - Borders * - Corners * * === Fade Colors and Directions === * - from and to colors as well as not supported fade color * - directions: left to right; right to left * * === Post Structures === * - order based on major structures from OpusPrimusStructures class * */ /** End: Table of Contents -------------------------------------------------- */ /** === Variables === ------------------------------------------------------- */ /** Basic Colors ( alphabetically ) ----------------------------------------- */ @background: #fff; @border-color: #000; @color: #000; /** Relative Sizes ---------------------------------------------------------- */ @quarter: 25%; @third: 33%; @half: 50%; @all-in: 100%; @double: 200%; @triple: 300%; /** End: Variables ---------------------------------------------------------- */ /** === Clearance === ------------------------------------------------------- */ /** Generic Clearing Classes ------------------------------------------------ */ .clear { clear: both; } .clr-l { clear: left; } .clr-r { clear: right; } /** All elements requiring clear: both -------------------------------------- */ .post-title, .meta-byline, .meta-tags, .more-link, .author.details { .clear; } /** End: Clearance ---------------------------------------------------------- */ /** === Decorations === ----------------------------------------------------- */ /** Borders ----------------------------------------------------------------- */ .top-line-thin( @radius: 5px ) { border-top-color: @border-color; border-top-width: 1px; border-top-style: solid; border-top-left-radius: @radius; border-top-right-radius: @radius; } .bottom-line-thin( @radius: 5px ) { border-bottom-color: @border-color; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-left-radius: @radius; border-bottom-right-radius: @radius; } /** Corners ----------------------------------------------------------------- */ .rounded-corners ( @radius: 5px ) { border-radius: @radius; -webkit-border-radius: @radius; -moz-border-radius: @radius; } .rounded-box ( @radius: 5px ) { .rounded-corners ( @radius ); border: 1px solid #000000; } /** End: Decorations -------------------------------------------------------- */ /** === Fade Colors and Directions === -------------------------------------- */ @fade-not: #e8e8e8; /* @fade-not: purple; */ @fade-to: #ffffff; /* @fade-to: lighten( @fade-not, 100% ); */ @fade-from: #cacaca; /* @fade-from: darken( @fade-not, 10% ); */ /* @fade-from: @fade-not * .5; */ .fade-right { /* for browsers not supporting gradient without image */ background: @fade-not; /* Mozilla Firefox: */ background: -moz-linear-gradient(right, @fade-to, @fade-from); /* Chrome and Safari:*/ background: -webkit-gradient(linear, left top, right top, from(@fade-from), to(@fade-to)); /* Microsoft Internet Explorer */ filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr=@fade-from, EndColorStr=@fade-to, GradientType=1); /* IE10 ? */ background-image: -ms-linear-gradient(right, @fade-to 0%, @fade-from 100%); } .fade-left { /* for browsers not supporting gradient without image */ background: @fade-not; /* Mozilla Firefox: */ background: -moz-linear-gradient(left, @fade-to, @fade-from); /* Chrome and Safari:*/ background: -webkit-gradient(linear, right top, left top, from(@fade-from), to(@fade-to)); /* Microsoft Internet Explorer */ filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr=@fade-to, EndColorStr=@fade-from, GradientType=1); /* IE10 ? */ background-image: -ms-linear-gradient(left, @fade-to 0%, @fade-from 100%); } /** End: Fade Colors and Directions ----------------------------------------- */ /** === Post Structures === ------------------------------------------------- */ .meta-byline { .fade-right; line-height: @double; padding-left: 7px; } /** End: Post Structures ---------------------------------------------------- */ /** === Archives === -------------------------------------------------------- */ ul.featured.search.pages li, ul.archive.cloud.list li, ul.archive.category.list li, ul.nav.search li { .rounded-box ( 10px ) ; } ul.featured.search.pages li ul li, ul.archive.cloud.list li ul li, ul.archive.category.list li ul li, ul.nav.search li ul li { border: none; } ul.archive.cloud.list ul { margin: 0; } /** End: Archives ----------------------------------------------------------- */ /** === 404 === ------------------------------------------------------------- */ .error404 div.widget_recent_entries { .rounded-box( 10px ); }