summaryrefslogtreecommitdiff
path: root/shamrock/variables.less
diff options
context:
space:
mode:
authorFrancesco Pontillo <francescopontillo@gmail.com>2013-02-26 01:12:31 +0100
committerFrancesco Pontillo <francescopontillo@gmail.com>2013-02-26 01:12:31 +0100
commitbbd50186cdfbc18ac2a236f3d162d95f8c514301 (patch)
tree0ff7d084147bb69a07251740f6137ba3dd495378 /shamrock/variables.less
parent1de1fff0d9a7d8f89e0bd755f6e825e261b025df (diff)
parentfdd27e6a122c54edeaa0d2fa6ef454b358a857c5 (diff)
Merge branch 'gh-pages' of git://github.com/thomaspark/bootswatch into gh-pages
Conflicts: component.json
Diffstat (limited to 'shamrock/variables.less')
-rwxr-xr-xshamrock/variables.less301
1 files changed, 301 insertions, 0 deletions
diff --git a/shamrock/variables.less b/shamrock/variables.less
new file mode 100755
index 00000000..b04cbd93
--- /dev/null
+++ b/shamrock/variables.less
@@ -0,0 +1,301 @@
+// Swatch 2.3.0
+// Variables
+// --------------------------------------------------
+
+
+// Global values
+// --------------------------------------------------
+
+
+// Grays
+// -------------------------
+@black: #000;
+@grayDarker: #284815;
+@grayDark: #4B792E;
+@gray: #538935;
+@grayLight: #76A547;
+@grayLighter: #AECD5A;
+@white: #fff;
+
+
+// Accent colors
+// -------------------------
+@blue: #049cdb;
+@blueDark: #0064cd;
+@green: #3A6624;
+@red: #9d261d;
+@yellow: #F8E33C;
+@orange: #f89406;
+@pink: #c3325f;
+@purple: #7a43b6;
+
+
+// Scaffolding
+// -------------------------
+@bodyBackground: @gray;
+@textColor: @white;
+
+
+// Links
+// -------------------------
+@linkColor: @yellow;
+@linkColorHover: darken(@linkColor, 10%);
+
+
+// Typography
+// -------------------------
+@sansFontFamily: "Marcellus", "Helvetica Neue", Helvetica, Arial, sans-serif;
+@serifFontFamily: Georgia, "Times New Roman", Times, serif;
+@monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
+
+@baseFontSize: 15px;
+@baseFontFamily: @sansFontFamily;
+@baseLineHeight: 21px;
+@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
+
+
+// Component sizing
+// -------------------------
+// Based on 14px font-size and 20px line-height
+
+@fontSizeLarge: @baseFontSize * 1.25; // ~18px
+@fontSizeSmall: @baseFontSize * 0.85; // ~12px
+@fontSizeMini: @baseFontSize * 0.75; // ~11px
+
+@paddingLarge: 11px 19px; // 44px
+@paddingSmall: 2px 10px; // 26px
+@paddingMini: 1px 6px; // 24px
+
+@baseBorderRadius: 4px;
+@borderRadiusLarge: 6px;
+@borderRadiusSmall: 3px;
+
+
+// Tables
+// -------------------------
+@tableBackground: transparent; // overall background-color
+@tableBackgroundAccent: rgba(0, 0, 0, 0.1); // for striping
+@tableBackgroundHover: @grayLight; // for hover
+@tableBorder: @grayDark; // table and cell border
+
+// Buttons
+// -------------------------
+@btnBackground: @green;
+@btnBackgroundHighlight: darken(@btnBackground, 10%);
+@btnBorder: @gray;
+
+@btnPrimaryBackground: @grayLighter;
+@btnPrimaryBackgroundHighlight: darken(@btnPrimaryBackground, 10%);
+
+@btnInfoBackground: @grayLight;
+@btnInfoBackgroundHighlight: darken(@btnInfoBackground, 10%);
+
+@btnSuccessBackground: @gray;
+@btnSuccessBackgroundHighlight: darken(@btnSuccessBackground, 10%);
+
+@btnWarningBackground: @grayDark;
+@btnWarningBackgroundHighlight: darken(@btnWarningBackground, 10%);
+
+@btnDangerBackground: @grayDarker;
+@btnDangerBackgroundHighlight: darken(@btnDangerBackground, 10%);
+
+@btnInverseBackground: darken(@linkColor, 5%);
+@btnInverseBackgroundHighlight: darken(@btnInverseBackground, 10%);
+
+
+// Forms
+// -------------------------
+@inputBackground: @white;
+@inputBorder: #ccc;
+@inputBorderRadius: @baseBorderRadius;
+@inputDisabledBackground: @grayLighter;
+@formActionsBackground: #f5f5f5;
+@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
+
+
+// Dropdowns
+// -------------------------
+@dropdownBackground: @gray;
+@dropdownBorder: rgba(0,0,0,.2);
+@dropdownDividerTop: #e5e5e5;
+@dropdownDividerBottom: @white;
+
+@dropdownLinkColor: @textColor;
+@dropdownLinkColorHover: @linkColorHover;
+@dropdownLinkColorActive: @dropdownLinkColorHover;
+
+@dropdownLinkBackgroundActive: @grayDark;
+@dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
+
+
+
+// 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: 1030;
+@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;
+
+
+// Horizontal forms & lists
+// -------------------------
+@horizontalComponentOffset: 180px;
+
+
+// Wells
+// -------------------------
+@wellBackground: @grayLight;
+
+
+// Navbar
+// -------------------------
+@navbarCollapseWidth: 979px;
+@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
+
+@navbarHeight: 50px;
+@navbarBackgroundHighlight: @grayDark;
+@navbarBackground: darken(@navbarBackgroundHighlight, 3%);
+@navbarBorder: darken(@navbarBackground, 3%);
+
+@navbarText: @grayLighter;
+@navbarLinkColor: @white;
+@navbarLinkColorHover: @linkColor;
+@navbarLinkColorActive: @linkColor;
+@navbarLinkBackgroundHover: transparent;
+@navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
+
+@navbarBrandColor: @navbarLinkColor;
+
+// Inverted navbar
+@navbarInverseBackground: @grayLight;
+@navbarInverseBackgroundHighlight: darken(@grayLight, 3%);
+@navbarInverseBorder: @navbarBorder;
+
+@navbarInverseText: @navbarText;
+@navbarInverseLinkColor: @navbarLinkColor;
+@navbarInverseLinkColorHover: @navbarLinkColorHover;
+@navbarInverseLinkColorActive: @navbarLinkColorActive;
+@navbarInverseLinkBackgroundHover: transparent;
+@navbarInverseLinkBackgroundActive: darken(@navbarInverseBackground, 5%);
+
+@navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
+@navbarInverseSearchBackgroundFocus: @white;
+@navbarInverseSearchBorder: @navbarInverseBackground;
+@navbarInverseSearchPlaceholderColor: @gray;
+
+@navbarInverseBrandColor: @navbarInverseLinkColor;
+
+
+// Pagination
+// -------------------------
+@paginationBackground: #fff;
+@paginationBorder: #ddd;
+@paginationActiveBackground: #f5f5f5;
+
+
+// Hero unit
+// -------------------------
+@heroUnitBackground: @grayLight;
+@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%);
+
+
+// Tooltips and popovers
+// -------------------------
+@tooltipColor: #fff;
+@tooltipBackground: #000;
+@tooltipArrowWidth: 5px;
+@tooltipArrowColor: @tooltipBackground;
+
+@popoverBackground: @grayLighter;
+@popoverArrowWidth: 10px;
+@popoverArrowColor: @grayLighter;
+@popoverTitleBackground: darken(@popoverBackground, 10%);
+
+// Special enhancement for popovers
+@popoverArrowOuterWidth: @popoverArrowWidth + 1;
+@popoverArrowOuterColor: rgba(0,0,0,.25);
+
+
+
+// GRID
+// --------------------------------------------------
+
+
+// Default 940px grid
+// -------------------------
+@gridColumns: 12;
+@gridColumnWidth: 60px;
+@gridGutterWidth: 20px;
+@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
+
+// 1200px min
+@gridColumnWidth1200: 70px;
+@gridGutterWidth1200: 30px;
+@gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
+
+// 768px-979px
+@gridColumnWidth768: 42px;
+@gridGutterWidth768: 20px;
+@gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
+
+
+// Fluid grid
+// -------------------------
+@fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
+@fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
+
+// 1200px min
+@fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
+@fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
+
+// 768px-979px
+@fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
+@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);