Merge pull request #2702 from myabc/feature/19203-enable-3rd-party-component-styling
19203 Configure stylesheet loading to enable third-party component stylingpull/2739/head
commit
dad0728d6f
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1,18 @@ |
|||||||
|
# jQuery UI Components |
||||||
|
|
||||||
|
## Datepicker |
||||||
|
|
||||||
|
``` |
||||||
|
<input type="text" id="datepicker-input"> |
||||||
|
|
||||||
|
<div id="datepicker-inline"></div> |
||||||
|
``` |
||||||
|
|
||||||
|
``` |
||||||
|
@javascript |
||||||
|
|
||||||
|
jQuery(function($) { |
||||||
|
$("#datepicker-inline").datepicker(); |
||||||
|
$("#datepicker-input").datepicker(); |
||||||
|
}); |
||||||
|
``` |
@ -0,0 +1,431 @@ |
|||||||
|
//-- copyright |
||||||
|
// OpenProject is a project management system. |
||||||
|
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF) |
||||||
|
// |
||||||
|
// This program is free software; you can redistribute it and/or |
||||||
|
// modify it under the terms of the GNU General Public License version 3. |
||||||
|
// |
||||||
|
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: |
||||||
|
// Copyright (C) 2006-2013 Jean-Philippe Lang |
||||||
|
// Copyright (C) 2010-2013 the ChiliProject Team |
||||||
|
// |
||||||
|
// This program is free software; you can redistribute it and/or |
||||||
|
// modify it under the terms of the GNU General Public License |
||||||
|
// as published by the Free Software Foundation; either version 2 |
||||||
|
// of the License, or (at your option) any later version. |
||||||
|
// |
||||||
|
// 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 the Free Software |
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||||||
|
// |
||||||
|
// See doc/COPYRIGHT.rdoc for more details. |
||||||
|
//++ |
||||||
|
|
||||||
|
/*! |
||||||
|
* jQuery UI CSS Framework 1.10.4 |
||||||
|
* http://jqueryui.com |
||||||
|
* |
||||||
|
* Copyright 2014 jQuery Foundation and other contributors |
||||||
|
* Released under the MIT license. |
||||||
|
* http://jquery.org/license |
||||||
|
* |
||||||
|
* http://api.jqueryui.com/category/theming/ |
||||||
|
* |
||||||
|
* To view and modify this theme, visit http://jqueryui.com/themeroller/ |
||||||
|
*/ |
||||||
|
|
||||||
|
|
||||||
|
/* Component containers |
||||||
|
----------------------------------*/ |
||||||
|
.ui-widget { |
||||||
|
font-family: $body-font-family; |
||||||
|
font-size: rem-calc(15px); |
||||||
|
} |
||||||
|
.ui-widget .ui-widget { |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
.ui-widget input, |
||||||
|
.ui-widget select, |
||||||
|
.ui-widget textarea, |
||||||
|
.ui-widget button { |
||||||
|
font-family: $body-font-family; |
||||||
|
font-size: 1em; |
||||||
|
} |
||||||
|
.ui-widget-content { |
||||||
|
border: 1px solid #aaaaaa/*{borderColorContent}*/; |
||||||
|
background: #ffffff/*{bgColorContent}*/; |
||||||
|
color: #222222/*{fcContent}*/; |
||||||
|
} |
||||||
|
.ui-widget-content a { |
||||||
|
color: #222222/*{fcContent}*/; |
||||||
|
} |
||||||
|
.ui-widget-header { |
||||||
|
border: 1px solid #aaaaaa/*{borderColorHeader}*/; |
||||||
|
background: #cccccc/*{bgColorHeader}*/; |
||||||
|
color: #222222/*{fcHeader}*/; |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
.ui-widget-header a { |
||||||
|
color: #222222/*{fcHeader}*/; |
||||||
|
} |
||||||
|
|
||||||
|
/* Interaction states |
||||||
|
----------------------------------*/ |
||||||
|
.ui-state-default, |
||||||
|
.ui-widget-content .ui-state-default, |
||||||
|
.ui-widget-header .ui-state-default { |
||||||
|
border: 1px solid #d3d3d3/*{borderColorDefault}*/; |
||||||
|
background: #e6e6e6/*{bgColorDefault}*/; |
||||||
|
font-weight: normal/*{fwDefault}*/; |
||||||
|
color: #555555/*{fcDefault}*/; |
||||||
|
} |
||||||
|
.ui-state-default a, |
||||||
|
.ui-state-default a:link, |
||||||
|
.ui-state-default a:visited { |
||||||
|
color: #555555/*{fcDefault}*/; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
.ui-state-hover, |
||||||
|
.ui-widget-content .ui-state-hover, |
||||||
|
.ui-widget-header .ui-state-hover, |
||||||
|
.ui-state-focus, |
||||||
|
.ui-widget-content .ui-state-focus, |
||||||
|
.ui-widget-header .ui-state-focus { |
||||||
|
border: 1px solid #999999/*{borderColorHover}*/; |
||||||
|
background: #dadada/*{bgColorHover}*/; |
||||||
|
font-weight: normal/*{fwDefault}*/; |
||||||
|
color: #212121/*{fcHover}*/; |
||||||
|
} |
||||||
|
.ui-state-hover a, |
||||||
|
.ui-state-hover a:hover, |
||||||
|
.ui-state-hover a:link, |
||||||
|
.ui-state-hover a:visited, |
||||||
|
.ui-state-focus a, |
||||||
|
.ui-state-focus a:hover, |
||||||
|
.ui-state-focus a:link, |
||||||
|
.ui-state-focus a:visited { |
||||||
|
color: #212121/*{fcHover}*/; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
.ui-state-active, |
||||||
|
.ui-widget-content .ui-state-active, |
||||||
|
.ui-widget-header .ui-state-active { |
||||||
|
border: 1px solid #aaaaaa/*{borderColorActive}*/; |
||||||
|
background: #ffffff/*{bgColorActive}*/; |
||||||
|
font-weight: normal/*{fwDefault}*/; |
||||||
|
color: #212121/*{fcActive}*/; |
||||||
|
} |
||||||
|
.ui-state-active a, |
||||||
|
.ui-state-active a:link, |
||||||
|
.ui-state-active a:visited { |
||||||
|
color: #212121/*{fcActive}*/; |
||||||
|
text-decoration: none; |
||||||
|
} |
||||||
|
|
||||||
|
/* Interaction Cues |
||||||
|
----------------------------------*/ |
||||||
|
.ui-state-highlight, |
||||||
|
.ui-widget-content .ui-state-highlight, |
||||||
|
.ui-widget-header .ui-state-highlight { |
||||||
|
border: 1px solid #fcefa1/*{borderColorHighlight}*/; |
||||||
|
background: #fbf9ee/*{bgColorHighlight}*/; |
||||||
|
color: #363636/*{fcHighlight}*/; |
||||||
|
} |
||||||
|
.ui-state-highlight a, |
||||||
|
.ui-widget-content .ui-state-highlight a, |
||||||
|
.ui-widget-header .ui-state-highlight a { |
||||||
|
color: #363636/*{fcHighlight}*/; |
||||||
|
} |
||||||
|
.ui-state-error, |
||||||
|
.ui-widget-content .ui-state-error, |
||||||
|
.ui-widget-header .ui-state-error { |
||||||
|
border: 1px solid #cd0a0a/*{borderColorError}*/; |
||||||
|
background: #fef1ec/*{bgColorError}*/; |
||||||
|
color: #cd0a0a/*{fcError}*/; |
||||||
|
} |
||||||
|
.ui-state-error a, |
||||||
|
.ui-widget-content .ui-state-error a, |
||||||
|
.ui-widget-header .ui-state-error a { |
||||||
|
color: #cd0a0a/*{fcError}*/; |
||||||
|
} |
||||||
|
.ui-state-error-text, |
||||||
|
.ui-widget-content .ui-state-error-text, |
||||||
|
.ui-widget-header .ui-state-error-text { |
||||||
|
color: #cd0a0a/*{fcError}*/; |
||||||
|
} |
||||||
|
.ui-priority-primary, |
||||||
|
.ui-widget-content .ui-priority-primary, |
||||||
|
.ui-widget-header .ui-priority-primary { |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
.ui-priority-secondary, |
||||||
|
.ui-widget-content .ui-priority-secondary, |
||||||
|
.ui-widget-header .ui-priority-secondary { |
||||||
|
opacity: .7; |
||||||
|
font-weight: normal; |
||||||
|
} |
||||||
|
.ui-state-disabled, |
||||||
|
.ui-widget-content .ui-state-disabled, |
||||||
|
.ui-widget-header .ui-state-disabled { |
||||||
|
opacity: .35; |
||||||
|
background-image: none; |
||||||
|
} |
||||||
|
|
||||||
|
/* Icons |
||||||
|
----------------------------------*/ |
||||||
|
|
||||||
|
/* states and images */ |
||||||
|
.ui-icon { |
||||||
|
width: 16px; |
||||||
|
height: 16px; |
||||||
|
} |
||||||
|
.ui-icon, |
||||||
|
.ui-widget-content .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_222222_256x240.png')/*{iconsContent}*/; |
||||||
|
} |
||||||
|
.ui-widget-header .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_222222_256x240.png')/*{iconsHeader}*/; |
||||||
|
} |
||||||
|
.ui-state-default .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_888888_256x240.png')/*{iconsDefault}*/; |
||||||
|
} |
||||||
|
.ui-state-hover .ui-icon, |
||||||
|
.ui-state-focus .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_454545_256x240.png')/*{iconsHover}*/; |
||||||
|
} |
||||||
|
.ui-state-active .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_454545_256x240.png')/*{iconsActive}*/; |
||||||
|
} |
||||||
|
.ui-state-highlight .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_2e83ff_256x240.png')/*{iconsHighlight}*/; |
||||||
|
} |
||||||
|
.ui-state-error .ui-icon, |
||||||
|
.ui-state-error-text .ui-icon { |
||||||
|
background-image: image-url('jquery-ui/ui-icons_cd0a0a_256x240.png')/*{iconsError}*/; |
||||||
|
} |
||||||
|
|
||||||
|
/* positioning */ |
||||||
|
.ui-icon-blank { background-position: 16px 16px; } |
||||||
|
.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-on { background-position: -96px -144px; } |
||||||
|
.ui-icon-radio-off { 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 { background-position: -80px -160px; } |
||||||
|
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ |
||||||
|
.ui-icon-seek-first { background-position: -80px -160px; } |
||||||
|
.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 */ |
||||||
|
.ui-corner-all, |
||||||
|
.ui-corner-top, |
||||||
|
.ui-corner-left, |
||||||
|
.ui-corner-tl { |
||||||
|
border-top-left-radius: 4px/*{cornerRadius}*/; |
||||||
|
} |
||||||
|
.ui-corner-all, |
||||||
|
.ui-corner-top, |
||||||
|
.ui-corner-right, |
||||||
|
.ui-corner-tr { |
||||||
|
border-top-right-radius: 4px/*{cornerRadius}*/; |
||||||
|
} |
||||||
|
.ui-corner-all, |
||||||
|
.ui-corner-bottom, |
||||||
|
.ui-corner-left, |
||||||
|
.ui-corner-bl { |
||||||
|
border-bottom-left-radius: 4px/*{cornerRadius}*/; |
||||||
|
} |
||||||
|
.ui-corner-all, |
||||||
|
.ui-corner-bottom, |
||||||
|
.ui-corner-right, |
||||||
|
.ui-corner-br { |
||||||
|
border-bottom-right-radius: 4px/*{cornerRadius}*/; |
||||||
|
} |
||||||
|
|
||||||
|
/* Overlays */ |
||||||
|
.ui-widget-overlay { |
||||||
|
background: #aaaaaa/*{bgColorOverlay}*/; |
||||||
|
opacity: .3/*{opacityOverlay}*/; |
||||||
|
} |
||||||
|
.ui-widget-shadow { |
||||||
|
margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; |
||||||
|
padding: 8px/*{thicknessShadow}*/; |
||||||
|
background: #aaaaaa/*{bgColorShadow}*/; |
||||||
|
opacity: .3/*{opacityShadow}*/; |
||||||
|
border-radius: 8px/*{cornerRadiusShadow}*/; |
||||||
|
} |
@ -0,0 +1,82 @@ |
|||||||
|
# Select2 |
||||||
|
|
||||||
|
## select2 (jQuery) |
||||||
|
|
||||||
|
``` |
||||||
|
<div style="min-height: 100px"> |
||||||
|
<select id="select2-example"> |
||||||
|
<option>one</option> |
||||||
|
<option>two</option> |
||||||
|
<option>three</option> |
||||||
|
</select> |
||||||
|
</div> |
||||||
|
``` |
||||||
|
|
||||||
|
``` |
||||||
|
@javascript |
||||||
|
|
||||||
|
jQuery(function($) { |
||||||
|
$('#select2-example').select2(); |
||||||
|
}); |
||||||
|
``` |
||||||
|
|
||||||
|
## ui-select (Angular) |
||||||
|
|
||||||
|
``` |
||||||
|
<div ng-controller="UiSelectExample" style="min-height: 100px"> |
||||||
|
<ui-select ng-model="person.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;"> |
||||||
|
<ui-select-match placeholder="Select a person in the list or search their name">{{$select.selected.name}}</ui-select-match> |
||||||
|
<ui-select-choices repeat="person in people | filter: $select.search"> |
||||||
|
<div ng-bind-html="person.name | highlight: $select.search"></div> |
||||||
|
<small> |
||||||
|
email: {{person.email}} |
||||||
|
</small> |
||||||
|
</ui-select-choices> |
||||||
|
</ui-select> |
||||||
|
</div> |
||||||
|
``` |
||||||
|
|
||||||
|
## ui-select (Angular): multiple |
||||||
|
|
||||||
|
``` |
||||||
|
<div ng-controller="UiSelectExample" style="min-height: 100px"> |
||||||
|
<ui-select multiple ng-model="selectedPeople" theme="select2" ng-disabled="disabled" style="min-width: 300px;"> |
||||||
|
<ui-select-match placeholder="Select a person in the list or search their name">{{$item.name}}</ui-select-match> |
||||||
|
<ui-select-choices repeat="person in people | filter: $select.search"> |
||||||
|
<div ng-bind-html="person.name | highlight: $select.search"></div> |
||||||
|
<small> |
||||||
|
email: {{person.email}} |
||||||
|
</small> |
||||||
|
</ui-select-choices> |
||||||
|
</ui-select> |
||||||
|
</div> |
||||||
|
``` |
||||||
|
|
||||||
|
``` |
||||||
|
@javascript |
||||||
|
|
||||||
|
angular.module('openproject-style-guide').controller('UiSelectExample', ['$scope', function($scope) { |
||||||
|
$scope.disabled = undefined; |
||||||
|
|
||||||
|
$scope.enable = function() { |
||||||
|
$scope.disabled = false; |
||||||
|
}; |
||||||
|
|
||||||
|
$scope.disable = function() { |
||||||
|
$scope.disabled = true; |
||||||
|
}; |
||||||
|
|
||||||
|
$scope.person = {}; |
||||||
|
$scope.people = [ |
||||||
|
{ name: 'Adam', email: 'adam@email.com' }, |
||||||
|
{ name: 'Amalie', email: 'amalie@email.com' }, |
||||||
|
{ name: 'Wladimir', email: 'wladimir@email.com' }, |
||||||
|
{ name: 'Samantha', email: 'samantha@email.com' }, |
||||||
|
{ name: 'Estefanía', email: 'estefanía@email.com' }, |
||||||
|
{ name: 'Natasha', email: 'natasha@email.com' }, |
||||||
|
{ name: 'Nicole', email: 'nicole@email.com' }, |
||||||
|
{ name: 'Adrian', email: 'adrian@email.com' } |
||||||
|
]; |
||||||
|
$scope.selectedPeople = [$scope.people[5], $scope.people[4]]; |
||||||
|
}]); |
||||||
|
``` |
@ -0,0 +1 @@ |
|||||||
|
//= require ../javascripts/bundles/openproject-global
|
@ -0,0 +1,71 @@ |
|||||||
|
//-- copyright
|
||||||
|
// OpenProject is a project management system.
|
||||||
|
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License version 3.
|
||||||
|
//
|
||||||
|
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
||||||
|
// Copyright (C) 2006-2013 Jean-Philippe Lang
|
||||||
|
// Copyright (C) 2010-2013 the ChiliProject Team
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License
|
||||||
|
// as published by the Free Software Foundation; either version 2
|
||||||
|
// of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// 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 the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
//
|
||||||
|
// See doc/COPYRIGHT.rdoc for more details.
|
||||||
|
//++
|
||||||
|
|
||||||
|
window.CS = window.CS || {}; |
||||||
|
|
||||||
|
jQuery(function($) { |
||||||
|
var regions = $.datepicker.regional; |
||||||
|
var regional = regions[CS.lang] || regions[""]; |
||||||
|
$.datepicker.setDefaults(regional); |
||||||
|
|
||||||
|
var gotoToday = $.datepicker._gotoToday; |
||||||
|
|
||||||
|
$.datepicker._gotoToday = function (id) { |
||||||
|
gotoToday.call(this, id); |
||||||
|
var target = $(id), |
||||||
|
inst = this._getInst(target[0]), |
||||||
|
dateStr = $.datepicker._formatDate(inst); |
||||||
|
target.val(dateStr); |
||||||
|
target.blur(); |
||||||
|
$.datepicker._hideDatepicker(); |
||||||
|
}; |
||||||
|
|
||||||
|
var defaults = { |
||||||
|
showWeek: true, |
||||||
|
changeMonth: true, |
||||||
|
changeYear: true, |
||||||
|
yearRange: "c-100:c+10", |
||||||
|
dateFormat: 'yy-mm-dd', |
||||||
|
showButtonPanel: true, |
||||||
|
calculateWeek: function (day) { |
||||||
|
var dayOfWeek = new Date(+day); |
||||||
|
|
||||||
|
if (day.getDay() != 1) { |
||||||
|
dayOfWeek.setDate(day.getDate() - day.getDay() + 1); |
||||||
|
} |
||||||
|
|
||||||
|
return $.datepicker.iso8601Week(dayOfWeek); |
||||||
|
} |
||||||
|
}; |
||||||
|
|
||||||
|
if (CS.firstWeekDay && CS.firstWeekDay !== "") { |
||||||
|
defaults.firstDay = parseInt(CS.firstWeekDay, 10); |
||||||
|
} |
||||||
|
|
||||||
|
$.datepicker.setDefaults(defaults); |
||||||
|
}); |
Loading…
Reference in new issue