UNPKG

pottercms

Version:

A markdown content management system.

691 lines (530 loc) 13.5 kB
// Variables.less // Variables to customize the look and feel of Bootstrap // Swatch: Readable // Version: 2.0.4 // ----------------------------------------------------- // GLOBAL VALUES // -------------------------------------------------- // Grays // ------------------------- @black: #000; @grayDarker: #222; @grayDark: #333; @gray: #777; @grayLight: #999; @grayLighter: #CDCDCD; @white: #fff; // Accent colors // ------------------------- @blue: #049cdb; @blueDark: #0064cd; @green: #46a546; @red: #9C0001; @yellow: #ffc40d; @orange: #f89406; @pink: #c3325f; @purple: #7a43b6; // Scaffolding // ------------------------- @bodyBackground: #FDFDFA; @textColor: #090000; // Links // ------------------------- @linkColor: @red; @linkColorHover: lighten(@linkColor, 8%); // Typography // ------------------------- @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif; @serifFontFamily: Georgia, "Times New Roman", Times, serif; @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace; @baseFontSize: 17px; @baseFontFamily: @serifFontFamily; @baseLineHeight: 1.3em; @altFontFamily: @serifFontFamily; @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily @headingsFontWeight: bold; // instead of browser default, bold @headingsColor: inherit; // empty to use BS default, @textColor // Tables // ------------------------- @tableBackground: transparent; // overall background-color @tableBackgroundAccent: darken(@bodyBackground, 2%); // for striping @tableBackgroundHover: darken(@bodyBackground, 4%); // for hover @tableBorder: #ddd; // table and cell border // Buttons // ------------------------- @btnBackground: @white; @btnBackgroundHighlight: darken(@white, 10%); @btnBorder: darken(@white, 20%); @btnPrimaryBackground: @linkColor; @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%); @btnInfoBackground: #5bc0de; @btnInfoBackgroundHighlight: #2f96b4; @btnSuccessBackground: #62c462; @btnSuccessBackgroundHighlight: #51a351; @btnWarningBackground: lighten(@orange, 15%); @btnWarningBackgroundHighlight: @orange; @btnDangerBackground: #ee5f5b; @btnDangerBackgroundHighlight: #bd362f; @btnInverseBackground: @gray; @btnInverseBackgroundHighlight: @grayDarker; // Forms // ------------------------- @inputBackground: @white; @inputBorder: #ccc; @inputBorderRadius: 3px; @inputDisabledBackground: @grayLighter; @formActionsBackground: transparent; // Dropdowns // ------------------------- @dropdownBackground: @white; @dropdownBorder: rgba(0,0,0,.2); @dropdownLinkColor: @linkColor; @dropdownLinkColorHover: @linkColorHover; @dropdownLinkBackgroundHover: transparent; @dropdownDividerTop: #e5e5e5; @dropdownDividerBottom: @white; // COMPONENT VARIABLES // -------------------------------------------------- // Z-index master list // ------------------------- // Used for a bird's eye view of components dependent on the z-axis // Try to avoid customizing these :) @zindexDropdown: 1000; @zindexPopover: 1010; @zindexTooltip: 1020; @zindexFixedNavbar: 1030; @zindexModalBackdrop: 1040; @zindexModal: 1050; // Sprite icons path // ------------------------- @iconSpritePath: "../img/glyphicons-halflings.png"; @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png"; // Input placeholder text color // ------------------------- @placeholderText: @grayLight; // Hr border color // ------------------------- @hrBorder: @grayLighter; // Navbar // ------------------------- @navbarHeight: 40px; @navbarBackground: @bodyBackground; @navbarBackgroundHighlight: @bodyBackground; @navbarText: @textColor; @navbarLinkColor: @linkColor; @navbarLinkColorHover: @linkColorHover; @navbarLinkColorActive: @linkColorHover; @navbarLinkBackgroundHover: transparent; @navbarLinkBackgroundActive: @navbarBackground; @navbarSearchBackground: lighten(@navbarBackground, 25%); @navbarSearchBackgroundFocus: @white; @navbarSearchBorder: darken(@navbarSearchBackground, 30%); @navbarSearchPlaceholderColor: #ccc; @navbarBrandColor: @navbarLinkColor; // Hero unit // ------------------------- @heroUnitBackground: @white; @heroUnitHeadingColor: inherit; @heroUnitLeadColor: inherit; // Form states and alerts // ------------------------- @warningText: #c09853; @warningBackground: #fcf8e3; @warningBorder: darken(spin(@warningBackground, -10), 3%); @errorText: #b94a48; @errorBackground: #f2dede; @errorBorder: darken(spin(@errorBackground, -10), 3%); @successText: #468847; @successBackground: #dff0d8; @successBorder: darken(spin(@successBackground, -10), 5%); @infoText: #3a87ad; @infoBackground: #d9edf7; @infoBorder: darken(spin(@infoBackground, -10), 7%); // GRID // -------------------------------------------------- // Default 940px grid // ------------------------- @gridColumns: 12; @gridColumnWidth: 60px; @gridGutterWidth: 20px; @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1)); // Fluid grid // ------------------------- @fluidGridColumnWidth: 6.382978723%; @fluidGridGutterWidth: 2.127659574%; // Bootswatch.less // Swatch: Readable // Version: 2.0.4 // ----------------------------------------------------- // TYPOGRAPHY // ----------------------------------------------------- body { word-spacing: -0.05em; } h1, h2, h3, h4, h5, h6 { line-height: 2em; color: @textColor; } h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3, h4, h5, h6 { font-size: 1em; text-transform: none; } small { font-size: 13px; } .muted, .help-block, .uneditable-input, blockquote, small { color: @grayLight; } // SCAFFOLDING // ----------------------------------------------------- body { padding-top: 20px !important; } .page-header { padding-bottom: 1em; border-bottom: 2px solid @grayLighter; } footer.footer { padding-top: 2em; padding-bottom: 3em; border-top: 2px solid @grayLighter; } // NAVBAR // ----------------------------------------------------- .navbar { margin-left: 16px; .navbar-inner { .box-shadow(none); } .brand { font-size: @baseFontSize; font-weight: bold; line-height: 1em; padding: 11px 10px; &:hover { color: @linkColorHover; } } .nav > li > a { text-shadow: none; padding: 10px; } .nav > li.active > a, .open .dropdown-toggle { color: @linkColor; } .nav li.dropdown.active > .dropdown-toggle, .nav li.dropdown.open > .dropdown-toggle, .nav li.dropdown.active.open > .dropdown-toggle { color: @linkColor; &:hover { color: @linkColorHover; } } .nav li.dropdown .dropdown-toggle .caret, .nav li.dropdown.open .caret { border-top-color: @linkColor; opacity: 1; } .nav li.dropdown.open .dropdown-toggle:hover .caret { border-top-color: @linkColorHover; } .search-query { border: 1px solid #D4D4D4; .border-radius(0); color: @textColor; background-color: @white; } } @media (max-width: 980px) { form.navbar-form, form.navbar-search { border-top: 1px solid #D4D4D4; border-bottom: 1px solid #D4D4D4; } } .navbar-fixed-top { position: static; margin-bottom: 1.6em; } div.subnav { .box-shadow(none); .border-radius(0); background-color: @white; background-image: none; .nav { padding: 0; } .nav > li.active > a, .nav > li:active > a { color: @linkColor; .box-shadow(none); background-color: transparent; } .nav > li > a:hover, .nav > li.active > a:hover, .nav > li:active > a:hover { color: @linkColorHover; .box-shadow(none); background-color: transparent; } } div.subnav-fixed { position: static; left: auto; width: 100%; margin: 0; .box-shadow(none); .border-radius(4px); border: 1px solid #E5E5E5; .nav { width: auto; padding: 0; } } .dropdown-menu { border: 1px solid #D4D4D4; .border-radius(0); .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2)); .divider { margin: 5px 1px; } } .navbar .nav-collapse.in { .nav li:first-child > a { margin-bottom: 10px; } .nav li > a { color: @linkColor; .border-radius(0); font-weight: normal; &:hover { color: @linkColorHover; } } .nav li > a:hover { background: transparent; } } // NAV // ----------------------------------------------------- .nav .dropdown .caret { opacity: 1; } .nav-tabs { li > a { .border-radius(0); } li > a:hover { background-color: @bodyBackground; } li.active > a, li.active > a:hover { color: @textColor; background-color: @bodyBackground; } } .nav-tabs.nav-stacked { li > a { background-color: @white; } li.active > a, li.active > a:hover, li > a:hover { background-color: #F5F5F5; } li:first-child > a, li:last-child > a { .border-radius(0); } } .nav-pills { li > a { .border-radius(0); } li > a:hover { background-color: @bodyBackground; } li.active > a, li.active > a:hover { color: @textColor; background-color: @bodyBackground; } .open .dropdown-toggle { background-color: transparent; color: @linkColor; border-left: 1px solid whiteSmoke; border-right: 1px solid #E5E5E5; } li.dropdown.open .dropdown-toggle .caret { border-top-color: @linkColor; } li.dropdown.open .dropdown-toggle:hover .caret { border-top-color: @linkColorHover; } } .nav-list { li > a:hover, li.active > a, li.active > a:hover { background-color: transparent; text-shadow: none; } li.active > a, li.active > a:hover { color: @textColor; } [class^="icon-"] { margin-top: 3px; opacity: 0.8; } } .breadcrumb { .border-radius(0); background-color: @white; background-image: none; } .pagination { ul { .box-shadow(none); } li > a { padding: 10px 14px; } li.active > a, li.active > a:hover { color: @textColor; background-color: #F5F5F5; } li > a, li.disabled > a, li.disabled > a:hover { background-color: @white; } li:first-child > a, li:last-child > a { .border-radius(0); } } .pager { a { .border-radius(0); } } // BUTTONS // ----------------------------------------------------- .btn-primary { .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground); } .btn [class^="icon-"], .btn [class*=" icon-"] { margin-top: 4px; } .btn-large [class^="icon-"], .btn-large [class*=" icon-"] { margin-top: 6px; margin-right: 2px; } .btn-small [class^="icon-"], .btn-small [class*=" icon-"] { margin-top: 3px; } .btn .caret { margin-top: 13px; } // FORMS // ----------------------------------------------------- input, button, select, textarea { font-family: @baseFontFamily; } input, textarea, select { color: @textColor; } select, input[type="file"] { height: auto; line-height: normal; } .form-actions { border-top: 1px solid #D4D4D4; padding-top: 2em; } // TABLES // ----------------------------------------------------- .table-bordered { .border-radius(0); } .table-bordered thead:first-child tr:first-child th:first-child, .table-bordered tbody:first-child tr:first-child td:first-child { .border-radius(0); } .table-bordered thead:last-child tr:last-child th:first-child, .table-bordered tbody:last-child tr:last-child td:first-child { .border-radius(0); } // MODALS // ----------------------------------------------------- .modal { background-color: @white; .border-radius(0); } .modal-header { border-bottom: none; } .modal-footer { background-color: @bodyBackground; } // MISCELLANEOUS // ----------------------------------------------------- .alert, .label, .label:hover { .border-radius(0); border: 1px solid #D4D4D4; color: @textColor; text-shadow: none; } .alert-heading { color: @textColor; text-shadow: none; } .label, .label:hover { background-color: @white; font-weight: normal; font-size: @baseFontSize; padding: 4px; } .label-important, .label-important:hover { background-color: @errorBackground; } .label-warning, .label-warning:hover { background-color: @warningBackground; } .label-success, .label-success:hover { background-color: @successBackground; } .label-info, .label-info:hover { background-color: @infoBackground; } .well, .hero-unit { .box-shadow(none); border: 1px solid #D4D4D4; .border-radius(0); background-color: @white; } blockquote { border-left: 6px solid @grayLighter; &.pull-right { border-right: 6px solid @grayLighter; } p { font-size: 1em; line-height: 1.2em; } } .thumbnail { background-color: @white; } .thumbnail, .thumbnail > img { .border-radius(0); .box-shadow(none); } code, pre { .border-radius(0); background-color: @white; }