// ThemePress CSS Framework // // Parts of this file were taken from the // jQuery UI CSS Framework 1.8.16 // // Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) // Dual licensed under the MIT or GPL Version 2 licenses. // http://jquery.org/license // // http://docs.jquery.com/UI/Theming/API // // To view and modify this theme, visit http://jqueryui.com/themeroller/ // Default mixin for including all theme mixins // ------------------------------------- @mixin jquery-ui-theme { // jquery base mixins @include jquery-ui-core; @include jquery-ui-resizable; @include jquery-ui-selectable; @include jquery-ui-accordion; @include jquery-ui-autocomplete; @include jquery-ui-button; @include jquery-ui-dialog; @include jquery-ui-slider; @include jquery-ui-tabs; @include jquery-ui-datepicker; @include jquery-ui-progressbar; // theme specific mixins from below @include jquery-ui-containers; @include jquery-ui-interaction-states; @include jquery-ui-interaction-cues; @include jquery-ui-icons; @include jquery-ui-radius; @include jquery-ui-overlays; } @mixin jquery-ui-background($background-color, $background, $type: default) { @if $type == default { background: $background; } @else if $type == flat { background: $background; } @else { background: $background-color; @include background-image($background); } } // Component containers // ------------------------------------- @mixin jquery-ui-containers { .ui-widget { font-family: $ui-font-family; font-size: $ui-font-size; .ui-widget { font-size: $ui-widget-font-size; } input, select, textarea, button { font-family: $ui-font-family; font-size: $ui-form-font-size; } } .ui-widget-content { border-width: $ui-content-border-width; border-style: $ui-content-border-style; border-color: $ui-content-border-color; @include jquery-ui-background($ui-content-background-color, $ui-content-background, $ui-content-background-type); color: $ui-content-color; a { color: $ui-content-link-color; } } .ui-widget-header { border-width: $ui-header-border-width; border-style: $ui-header-border-style; border-color: $ui-header-border-color; @include jquery-ui-background($ui-header-background-color, $ui-header-background, $ui-header-background-type); color: $ui-header-color; font-weight: $ui-header-font-weight; a { color: $ui-header-link-color; } } } // Interaction states // ------------------------------------- @mixin jquery-ui-interaction-states { // default .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border-width: $ui-default-border-width; border-style: $ui-default-border-style; border-color: $ui-default-border-color; @include jquery-ui-background($ui-default-background-color, $ui-default-background, $ui-default-background-type); font-weight: $ui-default-font-weight; color: $ui-default-color; } .ui-state-default a { color: $ui-default-link-color; text-decoration: none; &:link, &:visited { color: $ui-default-link-color; text-decoration: none; } } // hover .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover { border-width: $ui-hover-border-width; border-style: $ui-hover-border-style; border-color: $ui-hover-border-color; @include jquery-ui-background($ui-hover-background-color, $ui-hover-background, $ui-hover-background-type); font-weight: $ui-hover-font-weight; color: $ui-hover-color; } .ui-state-hover a { color: $ui-hover-link-color; text-decoration: none; &:hover { color: $ui-hover-link-color; text-decoration: none; } } // focus .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border-width: $ui-focus-border-width; border-style: $ui-focus-border-style; border-color: $ui-focus-border-color; @include jquery-ui-background($ui-focus-background-color, $ui-focus-background, $ui-focus-background-type); font-weight: $ui-focus-font-weight; color: $ui-focus-color; } .ui-state-hover a { color: $ui-focus-link-color; text-decoration: none; &:hover { color: $ui-focus-link-color; text-decoration: none; } } // active .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border-width: $ui-active-border-width; border-style: $ui-active-border-style; border-color: $ui-active-border-color; @include jquery-ui-background($ui-active-background-color, $ui-active-background, $ui-active-background-type); font-weight: $ui-active-font-weight; color: $ui-active-color; } .ui-state-active a { color: $ui-active-link-color; text-decoration: none; &:link, &:visited { color: $ui-active-link-color; text-decoration: none; } } .ui-widget :active { outline: none; } } // Interaction Cues // ------------------------------------- @mixin jquery-ui-interaction-cues { .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { border-width: $ui-highlight-border-width; border-style: $ui-highlight-border-style; border-color: $ui-highlight-border-color; @include jquery-ui-background($ui-highlight-background-color, $ui-highlight-background, $ui-highlight-background-type); color: $ui-highlight-color; } .ui-state-highlight a, .ui-widget-content .ui-state-highlight a, .ui-widget-header .ui-state-highlight a { color: $ui-highlight-link-color; } .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { border-width: $ui-error-border-width; border-style: $ui-error-border-style; border-color: $ui-error-border-color; @include jquery-ui-background($ui-error-background-color, $ui-error-background, $ui-error-background-type); color: $ui-error-color; } .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a, .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: $ui-error-link-color; } .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: $ui-priority-font-weight; } .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { @include opacity($ui-priority-secondary-opacity); font-weight: $ui-priority-secondary-font-weight; } .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { @include opacity($ui-disabled-opacity); background-image: none; } } // Icons // ------------------------------------- @mixin jquery-ui-icons { /* states and images */ .ui-icon { width: 16px; height: 16px; background-image: image-url("#{$ui-images-url}#{$ui-icons}"); } .ui-widget-content .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-content}"); } .ui-widget-header .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-header}"); } .ui-state-default .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-default}"); } .ui-state-hover .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-hover}"); } .ui-state-focus .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-focus}"); } .ui-state-active .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-active}"); } .ui-state-highlight .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-highlight}"); } .ui-state-error .ui-icon, .ui-state-error-text .ui-icon { background-image: image-url("#{$ui-images-url}#{$ui-icons-error}"); } /* positioning */ .ui-icon-carat-1-n { background-position: 0 0; } .ui-icon-carat-1-ne { background-position: -16px 0; } .ui-icon-carat-1-e { background-position: -32px 0; } .ui-icon-carat-1-se { background-position: -48px 0; } .ui-icon-carat-1-s { background-position: -64px 0; } .ui-icon-carat-1-sw { background-position: -80px 0; } .ui-icon-carat-1-w { background-position: -96px 0; } .ui-icon-carat-1-nw { background-position: -112px 0; } .ui-icon-carat-2-n-s { background-position: -128px 0; } .ui-icon-carat-2-e-w { background-position: -144px 0; } .ui-icon-triangle-1-n { background-position: 0 -16px; } .ui-icon-triangle-1-ne { background-position: -16px -16px; } .ui-icon-triangle-1-e { background-position: -32px -16px; } .ui-icon-triangle-1-se { background-position: -48px -16px; } .ui-icon-triangle-1-s { background-position: -64px -16px; } .ui-icon-triangle-1-sw { background-position: -80px -16px; } .ui-icon-triangle-1-w { background-position: -96px -16px; } .ui-icon-triangle-1-nw { background-position: -112px -16px; } .ui-icon-triangle-2-n-s { background-position: -128px -16px; } .ui-icon-triangle-2-e-w { background-position: -144px -16px; } .ui-icon-arrow-1-n { background-position: 0 -32px; } .ui-icon-arrow-1-ne { background-position: -16px -32px; } .ui-icon-arrow-1-e { background-position: -32px -32px; } .ui-icon-arrow-1-se { background-position: -48px -32px; } .ui-icon-arrow-1-s { background-position: -64px -32px; } .ui-icon-arrow-1-sw { background-position: -80px -32px; } .ui-icon-arrow-1-w { background-position: -96px -32px; } .ui-icon-arrow-1-nw { background-position: -112px -32px; } .ui-icon-arrow-2-n-s { background-position: -128px -32px; } .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } .ui-icon-arrow-2-e-w { background-position: -160px -32px; } .ui-icon-arrow-2-se-nw { background-position: -176px -32px; } .ui-icon-arrowstop-1-n { background-position: -192px -32px; } .ui-icon-arrowstop-1-e { background-position: -208px -32px; } .ui-icon-arrowstop-1-s { background-position: -224px -32px; } .ui-icon-arrowstop-1-w { background-position: -240px -32px; } .ui-icon-arrowthick-1-n { background-position: 0 -48px; } .ui-icon-arrowthick-1-ne { background-position: -16px -48px; } .ui-icon-arrowthick-1-e { background-position: -32px -48px; } .ui-icon-arrowthick-1-se { background-position: -48px -48px; } .ui-icon-arrowthick-1-s { background-position: -64px -48px; } .ui-icon-arrowthick-1-sw { background-position: -80px -48px; } .ui-icon-arrowthick-1-w { background-position: -96px -48px; } .ui-icon-arrowthick-1-nw { background-position: -112px -48px; } .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } .ui-icon-arrowreturn-1-w { background-position: -64px -64px; } .ui-icon-arrowreturn-1-n { background-position: -80px -64px; } .ui-icon-arrowreturn-1-e { background-position: -96px -64px; } .ui-icon-arrowreturn-1-s { background-position: -112px -64px; } .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } .ui-icon-arrow-4 { background-position: 0 -80px; } .ui-icon-arrow-4-diag { background-position: -16px -80px; } .ui-icon-extlink { background-position: -32px -80px; } .ui-icon-newwin { background-position: -48px -80px; } .ui-icon-refresh { background-position: -64px -80px; } .ui-icon-shuffle { background-position: -80px -80px; } .ui-icon-transfer-e-w { background-position: -96px -80px; } .ui-icon-transferthick-e-w { background-position: -112px -80px; } .ui-icon-folder-collapsed { background-position: 0 -96px; } .ui-icon-folder-open { background-position: -16px -96px; } .ui-icon-document { background-position: -32px -96px; } .ui-icon-document-b { background-position: -48px -96px; } .ui-icon-note { background-position: -64px -96px; } .ui-icon-mail-closed { background-position: -80px -96px; } .ui-icon-mail-open { background-position: -96px -96px; } .ui-icon-suitcase { background-position: -112px -96px; } .ui-icon-comment { background-position: -128px -96px; } .ui-icon-person { background-position: -144px -96px; } .ui-icon-print { background-position: -160px -96px; } .ui-icon-trash { background-position: -176px -96px; } .ui-icon-locked { background-position: -192px -96px; } .ui-icon-unlocked { background-position: -208px -96px; } .ui-icon-bookmark { background-position: -224px -96px; } .ui-icon-tag { background-position: -240px -96px; } .ui-icon-home { background-position: 0 -112px; } .ui-icon-flag { background-position: -16px -112px; } .ui-icon-calendar { background-position: -32px -112px; } .ui-icon-cart { background-position: -48px -112px; } .ui-icon-pencil { background-position: -64px -112px; } .ui-icon-clock { background-position: -80px -112px; } .ui-icon-disk { background-position: -96px -112px; } .ui-icon-calculator { background-position: -112px -112px; } .ui-icon-zoomin { background-position: -128px -112px; } .ui-icon-zoomout { background-position: -144px -112px; } .ui-icon-search { background-position: -160px -112px; } .ui-icon-wrench { background-position: -176px -112px; } .ui-icon-gear { background-position: -192px -112px; } .ui-icon-heart { background-position: -208px -112px; } .ui-icon-star { background-position: -224px -112px; } .ui-icon-link { background-position: -240px -112px; } .ui-icon-cancel { background-position: 0 -128px; } .ui-icon-plus { background-position: -16px -128px; } .ui-icon-plusthick { background-position: -32px -128px; } .ui-icon-minus { background-position: -48px -128px; } .ui-icon-minusthick { background-position: -64px -128px; } .ui-icon-close { background-position: -80px -128px; } .ui-icon-closethick { background-position: -96px -128px; } .ui-icon-key { background-position: -112px -128px; } .ui-icon-lightbulb { background-position: -128px -128px; } .ui-icon-scissors { background-position: -144px -128px; } .ui-icon-clipboard { background-position: -160px -128px; } .ui-icon-copy { background-position: -176px -128px; } .ui-icon-contact { background-position: -192px -128px; } .ui-icon-image { background-position: -208px -128px; } .ui-icon-video { background-position: -224px -128px; } .ui-icon-script { background-position: -240px -128px; } .ui-icon-alert { background-position: 0 -144px; } .ui-icon-info { background-position: -16px -144px; } .ui-icon-notice { background-position: -32px -144px; } .ui-icon-help { background-position: -48px -144px; } .ui-icon-check { background-position: -64px -144px; } .ui-icon-bullet { background-position: -80px -144px; } .ui-icon-radio-off { background-position: -96px -144px; } .ui-icon-radio-on { background-position: -112px -144px; } .ui-icon-pin-w { background-position: -128px -144px; } .ui-icon-pin-s { background-position: -144px -144px; } .ui-icon-play { background-position: 0 -160px; } .ui-icon-pause { background-position: -16px -160px; } .ui-icon-seek-next { background-position: -32px -160px; } .ui-icon-seek-prev { background-position: -48px -160px; } .ui-icon-seek-end { background-position: -64px -160px; } .ui-icon-seek-start, .ui-icon-seek-first { background-position: -80px -160px; } /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ .ui-icon-stop { background-position: -96px -160px; } .ui-icon-eject { background-position: -112px -160px; } .ui-icon-volume-off { background-position: -128px -160px; } .ui-icon-volume-on { background-position: -144px -160px; } .ui-icon-power { background-position: 0 -176px; } .ui-icon-signal-diag { background-position: -16px -176px; } .ui-icon-signal { background-position: -32px -176px; } .ui-icon-battery-0 { background-position: -48px -176px; } .ui-icon-battery-1 { background-position: -64px -176px; } .ui-icon-battery-2 { background-position: -80px -176px; } .ui-icon-battery-3 { background-position: -96px -176px; } .ui-icon-circle-plus { background-position: 0 -192px; } .ui-icon-circle-minus { background-position: -16px -192px; } .ui-icon-circle-close { background-position: -32px -192px; } .ui-icon-circle-triangle-e { background-position: -48px -192px; } .ui-icon-circle-triangle-s { background-position: -64px -192px; } .ui-icon-circle-triangle-w { background-position: -80px -192px; } .ui-icon-circle-triangle-n { background-position: -96px -192px; } .ui-icon-circle-arrow-e { background-position: -112px -192px; } .ui-icon-circle-arrow-s { background-position: -128px -192px; } .ui-icon-circle-arrow-w { background-position: -144px -192px; } .ui-icon-circle-arrow-n { background-position: -160px -192px; } .ui-icon-circle-zoomin { background-position: -176px -192px; } .ui-icon-circle-zoomout { background-position: -192px -192px; } .ui-icon-circle-check { background-position: -208px -192px; } .ui-icon-circlesmall-plus { background-position: 0 -208px; } .ui-icon-circlesmall-minus { background-position: -16px -208px; } .ui-icon-circlesmall-close { background-position: -32px -208px; } .ui-icon-squaresmall-plus { background-position: -48px -208px; } .ui-icon-squaresmall-minus { background-position: -64px -208px; } .ui-icon-squaresmall-close { background-position: -80px -208px; } .ui-icon-grip-dotted-vertical { background-position: 0 -224px; } .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } .ui-icon-grip-solid-vertical { background-position: -32px -224px; } .ui-icon-grip-solid-horizontal { background-position: -48px -224px; } .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } .ui-icon-grip-diagonal-se { background-position: -80px -224px; } } // Misc visuals // Corner radius // ------------------------------------- @mixin jquery-ui-radius($radius: $ui-border-radius, $tr: false, $bl: false, $br: false) { @if $tr == false { $tr: $radius } @if $bl == false { $bl: $radius } @if $br == false { $br: $radius } .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { @include border-top-left-radius($radius); } .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { @include border-top-right-radius($tr); } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { @include border-bottom-left-radius($bl); } .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { @include border-bottom-right-radius($br); } } // Overlays // ------------------------------------- @mixin jquery-ui-overlays($radius: $ui-border-radius*2) { .ui-widget-overlay { @include jquery-ui-background($ui-overlay-background-color, $ui-overlay-background, $ui-overlay-background-type); @include opacity($ui-overlay-opacity); } .ui-widget-shadow { margin-top: -($radius); margin-right: 0; margin-bottom: 0; margin-left: -($radius); padding: $radius; @include jquery-ui-background($ui-shadow-background-color, $ui-shadow-background, $ui-shadow-background-type); @include opacity($ui-shadow-opacity); @include border-radius($radius); } }