// Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */ // // Component: Subnav // // ======================================================================== // Variables // ======================================================================== @subnav-margin-horizontal: 15px; @subnav-margin-vertical: @subnav-margin-horizontal; @subnav-color: @global-color; @subnav-hover-color: @global-link-color; @subnav-active-color: @global-link-color; @subnav-line-border-height: 12px; @subnav-line-border: fade(@global-muted-color, 30%); @subnav-line-border-width: 1px; @subnav-pill-padding-vertical: 5px; @subnav-pill-padding-horizontal: @subnav-pill-border-radius; @subnav-pill-hover-background: @global-light-background; @subnav-pill-hover-color: @global-highlight-color; @subnav-pill-active-background: @global-primary-background; @subnav-pill-active-color: @global-contrast-color; @subnav-disabled-color: @global-muted-color; // // New // @subnav-font-size: round((@global-font-size * 0.84)); // 13px; @subnav-text-transform: @global-text-transform; @subnav-letter-spacing: @global-letter-spacing; @subnav-pill-margin-horizontal: round((@subnav-margin-horizontal / 2)); @subnav-pill-margin-vertical: @subnav-pill-margin-horizontal; @subnav-pill-border-radius: ((@global-line-height + (@subnav-pill-padding-vertical * 2)) / 2); @subnav-pill-onclick-background: @global-primary-background; @subnav-pill-onclick-color: @global-contrast-color; // Component // ======================================================================== .hook-subnav() { font-size: @subnav-font-size; text-transform: @subnav-text-transform; letter-spacing: @subnav-letter-spacing; } .hook-subnav-hover() {} .hook-subnav-active() {} // Modifier: `uk-subnav-line' // ======================================================================== .hook-subnav-line-divider() {} // Modifier: `uk-subnav-pill' // ======================================================================== .hook-subnav-pill() { border-radius: @subnav-pill-border-radius;} .hook-subnav-pill-hover() {} .hook-subnav-pill-active() {} // Disabled state // ======================================================================== .hook-subnav-disabled() {} // Miscellaneous // ======================================================================== .hook-subnav-misc() { .uk-subnav-pill { margin-left: -@subnav-pill-margin-horizontal; margin-top: -@subnav-pill-margin-vertical; > * { padding-left: @subnav-pill-margin-horizontal; margin-top: @subnav-pill-margin-vertical; } } // onclick event .uk-subnav-pill > li > a:active { background: @subnav-pill-onclick-background; color: @subnav-pill-onclick-color; } }