123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- /*
- * SonarQube
- * Copyright (C) 2009-2022 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.
- */
- .button {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- vertical-align: middle;
- height: var(--controlHeight);
- line-height: calc(var(--controlHeight) - 2px);
- padding: 0 var(--gridSize);
- border: 1px solid var(--darkBlue);
- border-radius: 2px;
- box-sizing: border-box;
- background: transparent;
- color: var(--darkBlue);
- font-weight: 600;
- font-size: var(--smallFontSize);
- text-decoration: none;
- cursor: pointer;
- outline: none;
- transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
- }
-
- .button:hover,
- .button.selected {
- background: var(--darkBlue);
- color: var(--white);
- }
-
- .button-primary {
- background: var(--darkBlue);
- border-color: var(--darkBlue);
- color: var(--white);
- }
-
- .button-primary:hover {
- background: var(--veryDarkBlue);
- border-color: var(--veryDarkBlue);
- }
-
- .button-primary.button-light {
- background: var(--blue);
- border-color: var(--blue);
- color: var(--white);
- }
-
- .button-primary.button-light:hover {
- background: var(--darkBlue);
- border-color: var(--darkBlue);
- }
-
- .button.disabled {
- color: var(--disableGrayText) !important;
- border-color: var(--disableGrayBorder) !important;
- background: var(--disableGrayBg) !important;
- cursor: not-allowed !important;
- }
-
- /* #region .button-red */
- .button-red {
- border-color: var(--red);
- color: var(--red);
- }
-
- .button-red:hover,
- .button-red.active {
- background: var(--red);
- color: var(--white);
- }
-
- /* #endregion */
-
- /* #region .button-success */
- .button-success {
- border-color: var(--green);
- color: var(--green);
- }
-
- .button-success:hover,
- .button-success.active {
- background: var(--green);
- color: var(--white);
- }
-
- /* #endregion */
-
- /* #region .button-plain */
- .button-plain {
- box-sizing: border-box;
- background: inherit;
- color: inherit;
- cursor: pointer;
- outline: none;
- border: 0;
- }
-
- /* #endregion */
-
- /* #region .button-link */
- .button-link {
- display: inline-flex;
- height: auto;
- /* Keep this to not inherit the height from .button */
- line-height: 1;
- margin: 0;
- padding: 0;
- border: none;
- border-radius: 0;
- background: transparent;
- color: var(--darkBlue);
- border-bottom: 1px solid var(--lightBlue);
- font-weight: 400;
- font-size: inherit;
- transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-bottom 0.2s ease;
- }
-
- .dropdown .button-link {
- border-bottom: none;
- }
-
- .button-link:hover {
- background: transparent;
- color: var(--blue);
- }
-
- .button-link.disabled {
- color: var(--secondFontColor);
- background: transparent !important;
- cursor: default;
- }
-
- /* #endregion */
-
- .button-small {
- height: var(--smallControlHeight);
- line-height: 18px;
- padding: 0 6px;
- font-size: 11px;
- }
-
- .button-tiny {
- height: var(--tinyControlHeight);
- line-height: var(--tinyControlHeight);
- padding: 0 calc(var(--gridSize) / 2);
- }
-
- .button-large {
- height: var(--largeControlHeight);
- padding: 0 16px;
- font-size: var(--mediumFontSize);
- }
-
- .button-huge {
- flex-direction: column;
- padding: calc(2 * var(--gridSize)) var(--gridSize);
- width: 180px;
- height: 180px;
- background-color: var(--white);
- border: solid 1px var(--white);
- border-radius: 3px;
- transition: all 0.2s ease;
- }
-
- .button-huge:hover,
- .button-huge:focus,
- .button-huge:active {
- background-color: var(--white);
- color: var(--darkBlue);
- transform: translateY(-2px);
- }
-
- /* #region .button-icon */
- .button-icon {
- display: inline-flex;
- justify-content: center;
- align-items: center;
- vertical-align: middle;
- width: var(--controlHeight);
- height: var(--controlHeight);
- padding: 0;
- border: none;
- color: inherit;
- }
-
- .button-icon.button-small {
- width: var(--smallControlHeight);
- height: var(--smallControlHeight);
- padding: 0;
- }
-
- .button-icon.button-small svg {
- margin-top: 0;
- }
-
- .button-icon.button-tiny {
- width: var(--tinyControlHeight);
- height: var(--tinyControlHeight);
- padding: 0;
- }
-
- .button-icon.button-tiny svg {
- margin-top: 0;
- }
-
- .button-icon:hover,
- .button-icon:focus {
- background-color: currentColor;
- }
-
- .button-icon:not(.disabled):hover svg,
- .button-icon:not(.disabled):focus svg {
- color: var(--white);
- }
-
- .button.button-icon.disabled {
- background: transparent !important;
- }
-
- /* #endregion */
-
- .button-list {
- display: inline-flex;
- justify-content: space-between;
- height: auto;
- border: 1px solid var(--barBorderColor);
- padding: var(--gridSize);
- margin: calc(var(--gridSize) / 2);
- color: var(--secondFontColor);
- font-weight: normal;
- }
-
- .button-list:hover {
- background-color: white;
- border-color: var(--blue);
- color: var(--darkBlue);
- }
-
- .no-select {
- user-select: none !important;
- }
-
- a[download].button.disabled {
- pointer-events: none;
- }
|