aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-03-16 16:24:04 +0100
committerSonarTech <sonartech@sonarsource.com>2018-03-22 12:37:48 +0100
commitfe9a68f2ccd3a1a90b619f3fe0e2fae4f4d20c36 (patch)
tree2dcebf80d8a84442fc1adb18b2486b1b5ac3bb56 /server/sonar-web/src/main/js/app
parentaf09abd297eee6694b088437f7f33bea210b82f0 (diff)
downloadsonarqube-fe9a68f2ccd3a1a90b619f3fe0e2fae4f4d20c36.tar.gz
sonarqube-fe9a68f2ccd3a1a90b619f3fe0e2fae4f4d20c36.zip
SONAR-9338 Make all date pickers consistent (#3157)
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r--server/sonar-web/src/main/js/app/styles/components/search-navigator.css11
-rw-r--r--server/sonar-web/src/main/js/app/styles/jquery-ui.css622
-rw-r--r--server/sonar-web/src/main/js/app/styles/sonar.css2
-rw-r--r--server/sonar-web/src/main/js/app/styles/style.css3
4 files changed, 10 insertions, 628 deletions
diff --git a/server/sonar-web/src/main/js/app/styles/components/search-navigator.css b/server/sonar-web/src/main/js/app/styles/components/search-navigator.css
index c997af3dae1..761df0dccdc 100644
--- a/server/sonar-web/src/main/js/app/styles/components/search-navigator.css
+++ b/server/sonar-web/src/main/js/app/styles/components/search-navigator.css
@@ -598,7 +598,7 @@ a.search-navigator-facet:focus .facet-stat {
.search-navigator-date-facet-selection {
position: relative;
- padding: 0 10px;
+ padding-left: var(--gridSize);
font-size: var(--smallFontSize);
}
@@ -613,7 +613,7 @@ a.search-navigator-facet:focus .facet-stat {
clear: both;
}
-.search-navigator-date-facet-selection-input {
+.search-navigator-date-facet-selection .date-input-control-input {
width: 115px !important;
}
@@ -641,6 +641,13 @@ a.search-navigator-facet:focus .facet-stat {
visibility: hidden;
}
+.search-navigator-date-facet-selection
+ .date-input-control:not(:nth-of-type(1))
+ .date-input-calendar {
+ left: auto;
+ right: 0;
+}
+
.search-navigator-filters {
position: relative;
padding: 5px 10px;
diff --git a/server/sonar-web/src/main/js/app/styles/jquery-ui.css b/server/sonar-web/src/main/js/app/styles/jquery-ui.css
deleted file mode 100644
index 123bdfda0e3..00000000000
--- a/server/sonar-web/src/main/js/app/styles/jquery-ui.css
+++ /dev/null
@@ -1,622 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2018 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser 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.
- */
-/*! jQuery UI - v1.10.3 - 2013-06-18
-* http://jqueryui.com
-* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.button.css, jquery.ui.dialog.css
-* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */
-/* Layout helpers
-----------------------------------*/
-/* SONAR */
-.no-close .ui-dialog-titlebar-close {
- display: none;
-}
-
-.ui-dialog .ui-dialog-titlebar {
- display: none;
-}
-
-.ui-widget-header {
- color: #ffffff;
- font-weight: bold;
-}
-
-.ui-widget-header a {
- color: #ffffff;
-}
-
-.ui-widget-shadow {
- margin: -5px 0 0 -5px;
- padding: 5px;
- background: #000000 50% 50% repeat-x;
- opacity: 0.2;
- -moz-border-radius: 5px;
- -khtml-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
-}
-
-.ui-dialog {
- position: absolute;
- width: 300px;
- overflow: hidden;
- box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
- background-color: #fff;
-}
-
-/* /SONAR */
-.ui-helper-hidden {
- display: none;
-}
-
-.ui-helper-hidden-accessible {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px;
-}
-
-.ui-helper-reset {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- line-height: 1.3;
- text-decoration: none;
- font-size: 100%;
- list-style: none;
-}
-
-.ui-helper-clearfix:before,
-.ui-helper-clearfix:after {
- content: '';
- display: table;
- border-collapse: collapse;
-}
-
-.ui-helper-clearfix:after {
- clear: both;
-}
-
-.ui-helper-clearfix {
- min-height: 0;
- /* support: IE7 */
-}
-
-.ui-helper-zfix {
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- position: absolute;
- opacity: 0;
-}
-
-.ui-front {
- z-index: 1000;
-}
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-disabled {
- cursor: default !important;
-}
-
-/* Icons
-----------------------------------*/
-/* states and images */
-.ui-icon {
- display: block;
- text-indent: -99999px;
- overflow: hidden;
- background-repeat: no-repeat;
-}
-
-/* Misc visuals
-----------------------------------*/
-/* Overlays */
-.ui-widget-overlay {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- /* sonar */
- background-color: #000000;
- opacity: 0.5;
- /* /sonar */
-}
-
-.ui-resizable {
- position: relative;
-}
-
-.ui-resizable-handle {
- position: absolute;
- font-size: 0.1px;
- display: block;
-}
-
-.ui-resizable-disabled .ui-resizable-handle,
-.ui-resizable-autohide .ui-resizable-handle {
- display: none;
-}
-
-.ui-resizable-n {
- cursor: n-resize;
- height: 7px;
- width: 100%;
- top: -5px;
- left: 0;
-}
-
-.ui-resizable-s {
- cursor: s-resize;
- height: 7px;
- width: 100%;
- bottom: -5px;
- left: 0;
-}
-
-.ui-resizable-e {
- cursor: e-resize;
- width: 7px;
- right: -5px;
- top: 0;
- height: 100%;
-}
-
-.ui-resizable-w {
- cursor: w-resize;
- width: 7px;
- left: -5px;
- top: 0;
- height: 100%;
-}
-
-.ui-resizable-se {
- cursor: se-resize;
- width: 12px;
- height: 12px;
- right: 1px;
- bottom: 1px;
-}
-
-.ui-resizable-sw {
- cursor: sw-resize;
- width: 9px;
- height: 9px;
- left: -5px;
- bottom: -5px;
-}
-
-.ui-resizable-nw {
- cursor: nw-resize;
- width: 9px;
- height: 9px;
- left: -5px;
- top: -5px;
-}
-
-.ui-resizable-ne {
- cursor: ne-resize;
- width: 9px;
- height: 9px;
- right: -5px;
- top: -5px;
-}
-
-.ui-button {
- display: inline-block;
- position: relative;
- padding: 0;
- line-height: normal;
- margin-right: 0.1em;
- cursor: pointer;
- vertical-align: middle;
- text-align: center;
- overflow: visible;
- /* removes extra width in IE */
-}
-
-.ui-button,
-.ui-button:link,
-.ui-button:visited,
-.ui-button:hover,
-.ui-button:active {
- text-decoration: none;
-}
-
-/* to make room for the icon, a width needs to be set here */
-.ui-button-icon-only {
- width: 2.2em;
-}
-
-/* button elements seem to need a little more width */
-button.ui-button-icon-only {
- width: 2.4em;
-}
-
-.ui-button-icons-only {
- width: 3.4em;
-}
-
-button.ui-button-icons-only {
- width: 3.7em;
-}
-
-/* button text element */
-.ui-button .ui-button-text {
- display: block;
- line-height: normal;
-}
-
-.ui-button-text-only .ui-button-text {
- padding: 0.4em 1em;
-}
-
-.ui-button-icon-only .ui-button-text,
-.ui-button-icons-only .ui-button-text {
- padding: 0.4em;
- text-indent: -9999999px;
-}
-
-.ui-button-text-icon-primary .ui-button-text,
-.ui-button-text-icons .ui-button-text {
- padding: 0.4em 1em 0.4em 2.1em;
-}
-
-.ui-button-text-icon-secondary .ui-button-text,
-.ui-button-text-icons .ui-button-text {
- padding: 0.4em 2.1em 0.4em 1em;
-}
-
-.ui-button-text-icons .ui-button-text {
- padding-left: 2.1em;
- padding-right: 2.1em;
-}
-
-/* no icon support for input elements, provide padding by default */
-input.ui-button {
- padding: 0.4em 1em;
-}
-
-/* button icon element(s) */
-.ui-button-icon-only .ui-icon,
-.ui-button-text-icon-primary .ui-icon,
-.ui-button-text-icon-secondary .ui-icon,
-.ui-button-text-icons .ui-icon,
-.ui-button-icons-only .ui-icon {
- position: absolute;
- top: 50%;
- margin-top: -8px;
-}
-
-.ui-button-icon-only .ui-icon {
- left: 50%;
- margin-left: -8px;
-}
-
-.ui-button-text-icon-primary .ui-button-icon-primary,
-.ui-button-text-icons .ui-button-icon-primary,
-.ui-button-icons-only .ui-button-icon-primary {
- left: 0.5em;
-}
-
-.ui-button-text-icon-secondary .ui-button-icon-secondary,
-.ui-button-text-icons .ui-button-icon-secondary,
-.ui-button-icons-only .ui-button-icon-secondary {
- right: 0.5em;
-}
-
-/* button sets */
-.ui-buttonset {
- margin-right: 7px;
-}
-
-.ui-buttonset .ui-button {
- margin-left: 0;
- margin-right: -0.3em;
-}
-
-/* workarounds */
-/* reset extra padding in Firefox, see h5bp.com/l */
-input.ui-button::-moz-focus-inner,
-button.ui-button::-moz-focus-inner {
- border: 0;
- padding: 0;
-}
-
-.ui-dialog {
- position: absolute;
- top: 0;
- left: 0;
- /* sonar
- padding: .2em;
- */
- outline: 0;
-}
-
-/* sonar
-.ui-dialog .ui-dialog-titlebar {
- padding: .4em 1em;
- position: relative;
-}
-
-.ui-dialog .ui-dialog-title {
- float: left;
- margin: .1em 0;
- white-space: nowrap;
- width: 90%;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.ui-dialog .ui-dialog-titlebar-close {
- position: absolute;
- right: .3em;
- top: 50%;
- width: 21px;
- margin: -10px 0 0 0;
- padding: 1px;
- height: 20px;
-}
-
-*/
-.ui-dialog .ui-dialog-content {
- position: relative;
- border: 0;
- /* sonar
- padding: .5em 1em;
- */
- background: none;
- overflow: auto;
-}
-
-.ui-dialog .ui-dialog-buttonpane {
- text-align: left;
- border-width: 1px 0 0 0;
- background-image: none;
- margin-top: 0.5em;
- padding: 0.3em 1em 0.5em 0.4em;
-}
-
-.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
- float: right;
-}
-
-.ui-dialog .ui-dialog-buttonpane button {
- margin: 0.5em 0.4em 0.5em 0;
- cursor: pointer;
-}
-
-.ui-dialog .ui-resizable-se {
- width: 12px;
- height: 12px;
- right: -5px;
- bottom: -5px;
- background-position: 16px 16px;
-}
-
-.ui-draggable .ui-dialog-titlebar {
- cursor: move;
-}
-
-.ui-datepicker {
- width: 17em;
- padding: 5px 5px 0;
- display: none;
- background-color: #fff;
- border: 1px solid #e1e1e1;
-}
-
-.ui-datepicker .ui-datepicker-header {
- position: relative;
- padding: 0.2em 0;
- color: var(--baseFontColor);
-}
-
-.ui-datepicker .ui-widget-header a {
- color: var(--baseFontColor);
-}
-
-.ui-datepicker .ui-datepicker-prev,
-.ui-datepicker .ui-datepicker-next {
- position: absolute;
- top: 7px;
-}
-
-.ui-datepicker .ui-datepicker-prev {
- left: 2px;
-}
-
-.ui-datepicker .ui-datepicker-next {
- right: 2px;
-}
-
-.ui-datepicker .ui-datepicker-title {
- margin: 0 48px;
- line-height: 1.8em;
- color: var(--baseFontColor);
- text-align: center;
-}
-
-.ui-datepicker .ui-datepicker-title select {
- font-size: 1em;
- margin: 1px 0;
-}
-
-.ui-datepicker select.ui-datepicker-month,
-.ui-datepicker select.ui-datepicker-year {
- width: 49%;
-}
-
-.ui-datepicker table {
- width: 100%;
- font-size: 0.9em;
- border-collapse: collapse;
- margin: 0 0 0.4em;
-}
-
-.ui-datepicker th {
- padding: 0.7em 0.3em;
- text-align: center;
- font-weight: bold;
- border: 0;
-}
-
-.ui-datepicker td {
- border: 0;
- padding: 1px;
-}
-
-.ui-datepicker td span,
-.ui-datepicker td a {
- display: block;
- padding: 0.2em;
- text-align: right;
- text-decoration: none;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane {
- background-image: none;
- margin: 0.7em 0 0 0;
- padding: 0 0.2em;
- border-left: 0;
- border-right: 0;
- border-bottom: 0;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane button {
- float: right;
- margin: 0.5em 0.2em 0.4em;
- cursor: pointer;
- padding: 0.2em 0.6em 0.3em 0.6em;
- width: auto;
- overflow: visible;
-}
-
-.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
- float: left;
-}
-
-.ui-datepicker-today {
- background-color: #eee1f8;
-}
-
-.ui-datepicker-current-day {
- background-color: var(--blue);
-}
-
-.ui-datepicker-current-day a {
- color: #fff;
-}
-
-/* with multiple calendars */
-.ui-datepicker.ui-datepicker-multi {
- width: auto;
-}
-
-.ui-datepicker-multi .ui-datepicker-group {
- float: left;
-}
-
-.ui-datepicker-multi .ui-datepicker-group table {
- width: 95%;
- margin: 0 auto 0.4em;
-}
-
-.ui-datepicker-multi-2 .ui-datepicker-group {
- width: 50%;
-}
-
-.ui-datepicker-multi-3 .ui-datepicker-group {
- width: 33.3%;
-}
-
-.ui-datepicker-multi-4 .ui-datepicker-group {
- width: 25%;
-}
-
-.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
-.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
- border-left-width: 0;
-}
-
-.ui-datepicker-multi .ui-datepicker-buttonpane {
- clear: left;
-}
-
-.ui-datepicker-row-break {
- clear: both;
- width: 100%;
- font-size: 0;
-}
-
-.ui-datepicker .ui-icon {
- text-indent: 0;
-}
-
-/* RTL support */
-.ui-datepicker-rtl {
- direction: rtl;
-}
-
-.ui-datepicker-rtl .ui-datepicker-prev {
- right: 2px;
- left: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-next {
- left: 2px;
- right: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-prev:hover {
- right: 1px;
- left: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-next:hover {
- left: 1px;
- right: auto;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane {
- clear: right;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane button {
- float: left;
-}
-
-.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
-.ui-datepicker-rtl .ui-datepicker-group {
- float: right;
-}
-
-.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
-.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
- border-right-width: 0;
- border-left-width: 1px;
-}
diff --git a/server/sonar-web/src/main/js/app/styles/sonar.css b/server/sonar-web/src/main/js/app/styles/sonar.css
index f48136b4f1f..714ed9d74b2 100644
--- a/server/sonar-web/src/main/js/app/styles/sonar.css
+++ b/server/sonar-web/src/main/js/app/styles/sonar.css
@@ -17,8 +17,6 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-@import './jquery-ui.css';
-
@import './init/base.css';
@import './init/type.css';
@import './init/links.css';
diff --git a/server/sonar-web/src/main/js/app/styles/style.css b/server/sonar-web/src/main/js/app/styles/style.css
index 99f727e3b72..f5bcff13ca5 100644
--- a/server/sonar-web/src/main/js/app/styles/style.css
+++ b/server/sonar-web/src/main/js/app/styles/style.css
@@ -48,8 +48,7 @@
transition: none;
}
-.tabs li a.selected,
-.tabs .ui-tabs-active a {
+.tabs li a.selected {
text-decoration: none;
color: #555 !important;
font-weight: bold;