1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-11 14:48:46 +01:00
bitwarden-browser/src/scss/misc.scss

438 lines
8.0 KiB
SCSS
Raw Normal View History

2018-04-13 19:19:26 +02:00
@import "variables.scss";
2018-01-27 19:12:06 +01:00
2018-02-11 05:24:22 +01:00
small {
font-size: $font-size-small;
}
.bg-primary {
@include themify($themes) {
background-color: themed('primaryColor') !important;
}
}
.bg-success {
@include themify($themes) {
background-color: themed('successColor') !important;
}
}
.bg-danger {
@include themify($themes) {
background-color: themed('dangerColor') !important;
}
}
.bg-info {
@include themify($themes) {
background-color: themed('infoColor') !important;
}
}
.bg-warning {
@include themify($themes) {
background-color: themed('warningColor') !important;
}
}
2018-01-29 22:13:37 +01:00
.text-primary {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('primaryColor') !important;
}
2018-01-29 22:13:37 +01:00
}
2018-02-16 21:03:29 +01:00
.text-success {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('successColor') !important;
}
2018-02-16 21:03:29 +01:00
}
2018-11-15 21:27:27 +01:00
.text-danger {
@include themify($themes) {
color: themed('dangerColor') !important;
}
}
.text-warning {
@include themify($themes) {
color: themed('warningColor') !important;
}
}
2018-01-29 22:13:37 +01:00
.text-muted {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor') !important;
}
2018-01-29 22:13:37 +01:00
}
2018-02-01 03:40:02 +01:00
.text-default {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('textColor') !important;
}
2018-02-01 03:40:02 +01:00
}
2018-01-31 23:58:06 +01:00
.text-center {
text-align: center;
}
2018-02-16 21:03:29 +01:00
.no-margin {
margin: 0 !important;
}
.font-weight-semibold {
font-weight: 600;
}
2018-02-16 21:03:29 +01:00
p.lead {
font-size: $font-size-large;
margin-bottom: 20px;
font-weight: normal;
}
2018-01-27 19:12:06 +01:00
.monospaced {
font-family: $font-family-monospace;
}
2018-12-21 05:01:21 +01:00
.show-whitespace {
white-space: pre-wrap;
}
.font-weight-bold {
font-weight: bold;
}
2018-01-27 19:12:06 +01:00
.sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
border: 0 !important;
}
.totp {
.totp-code {
font-family: $font-family-monospace;
font-size: 1.1em;
}
.totp-countdown {
margin: 3px 3px 0 0;
display: block;
user-select: none;
.totp-sec {
font-size: 0.85em;
position: absolute;
line-height: 32px;
width: 32px;
text-align: center;
}
svg {
width: 32px;
height: 32px;
transform: rotate(-90deg);
}
.totp-circle {
fill: none;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
stroke: themed('totpStrokeColor');
}
2018-01-27 19:12:06 +01:00
&.inner {
stroke-width: 3;
stroke-dasharray: 78.6;
stroke-dashoffset: 0;
}
&.outer {
stroke-width: 2;
stroke-dasharray: 88;
stroke-dashoffset: 0;
}
}
}
&.low {
.totp-sec, .totp-code {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('dangerColor');
}
2018-01-27 19:12:06 +01:00
}
.totp-circle {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
stroke: themed('dangerColor');
}
2018-01-27 19:12:06 +01:00
}
}
}
2018-01-29 22:13:37 +01:00
.password-block {
font-size: $font-size-large;
font-family: $font-family-monospace;
2018-12-08 19:48:30 +01:00
min-height: 50px;
2018-01-30 19:32:58 +01:00
display: flex;
2018-12-08 19:48:30 +01:00
flex-wrap: wrap;
2018-01-30 19:32:58 +01:00
align-items: center;
justify-content: center;
2018-01-29 22:13:37 +01:00
text-align: center;
.modal-body & {
margin-top: 10px;
}
}
2018-01-31 23:58:06 +01:00
2018-12-08 19:48:30 +01:00
.password-wrapper {
word-break: break-all;
white-space: pre-wrap;
min-width: 0;
2018-12-08 19:48:30 +01:00
}
.password-number {
@include themify($themes) {
color: themed('passwordNumberColor');
}
}
.password-special {
@include themify($themes) {
color: themed('passwordSpecialColor');
}
}
2018-02-02 04:59:04 +01:00
#duo-frame {
background: url('../images/loading.svg') 0 0 no-repeat;
height: 330px;
margin: 0 -150px 15px -150px;
2018-02-02 04:59:04 +01:00
iframe {
width: 100%;
height: 100%;
border: none;
}
}
2021-03-08 19:12:56 +01:00
#web-authn-frame {
background: url('../images/loading.svg') 0 0 no-repeat;
height: 250px;
margin: 0 0 15px 0;
iframe {
width: 100%;
height: 100%;
border: none;
}
}
#hcaptcha_iframe {
width: 100%;
border: none;
transition: height 0.25s linear;
}
2018-02-11 05:24:22 +01:00
form, .form {
.form-group {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
label {
display: inline-block;
margin-bottom: 2px;
}
input, select, textarea {
2018-05-30 21:21:41 +02:00
border: 1px solid #000000;
2018-02-11 05:24:22 +01:00
border-radius: $border-radius;
display: block;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
border-color: themed('inputBorderColor');
}
2018-02-11 05:24:22 +01:00
}
2021-09-15 20:02:46 +02:00
input[type=text], input[type=number] {
padding: 5px;
width: 100%;
}
}
2018-02-11 05:24:22 +01:00
.checkbox {
position: relative;
display: block;
padding-left: 18px;
label {
margin-bottom: 0;
}
input[type="checkbox"] {
position: absolute;
margin-top: 4px;
margin-left: -18px;
}
}
.radio {
position: relative;
display: block;
padding-left: 18px;
margin-top: 4px;
&.radio-mt-2 {
margin-top: 2px;
}
label {
margin-bottom: 0;
}
input[type="radio"] {
position: absolute;
margin-top: 4px;
margin-left: -18px;
}
}
2018-02-11 05:24:22 +01:00
.help-block {
margin-top: 3px;
display: block;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
}
}
2018-02-14 04:45:31 +01:00
app-root > #loading {
display: flex;
text-align: center;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
2018-05-31 04:28:04 +02:00
color: $text-muted;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
2018-02-14 04:45:31 +01:00
}
2018-05-31 04:28:04 +02:00
.logo-image {
@include themify($themes) {
content: url('../images/logo-' + themed('logoSuffix') + '@2x.png');
}
}
2018-12-08 19:48:30 +01:00
[hidden] {
display: none !important;
}
2019-10-25 01:55:21 +02:00
.draggable {
cursor: move;
}
.callout {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #000000;
border-left-width: 5px;
border-radius: 3px;
@include themify($themes) {
border-color: themed('calloutBorderColor');
background-color: themed('calloutBackgroundColor');
}
.callout-heading {
margin-top: 0;
}
h3.callout-heading {
font-weight: bold;
text-transform: uppercase;
}
&.callout-primary {
@include themify($themes) {
border-left-color: themed('primaryColor');
}
.callout-heading {
@include themify($themes) {
color: themed('primaryColor');
}
}
}
&.callout-info {
@include themify($themes) {
border-left-color: themed('infoColor');
}
.callout-heading {
@include themify($themes) {
color: themed('infoColor');
}
}
}
&.callout-danger {
@include themify($themes) {
border-left-color: themed('dangerColor');
}
.callout-heading {
@include themify($themes) {
color: themed('dangerColor');
}
}
}
&.callout-success {
@include themify($themes) {
border-left-color: themed('successColor');
}
.callout-heading {
@include themify($themes) {
color: themed('successColor');
}
}
}
&.callout-warning {
@include themify($themes) {
border-left-color: themed('warningColor');
}
.callout-heading {
@include themify($themes) {
color: themed('warningColor');
}
}
}
merge sso feature branch (#523) * Update jslib (101c568 -> 14b01f2) (#506) * Update jslib (14b01f2 -> 1513b25) (#510) * [jslib] Update (1513b25 -> 7c3a9d6) (#516) * update jslib (1513b25 -> 7c3a9d6) * Updated call to constructor super * [SSO] Added SSO flows & functionality (#513) * update jslib * bump version * Added sso button (wip) * Added sso & change password // Added modules/routes // Added strings for localization * Added password strength comp // reverted login route * Updated sso component to send client id // added routing for sso // added crypto function to services module provider list * Added deep linking * First round of UI updates // Added sso browser launching // Added missing strings * Updated UI and added missing strings * Removed extra change password style * Let constructor for WindowMain handle default width/height * Prepared for jslib update * Update jslib (1513b25 -> 7c3a9d6) * Update login super * Added params for launchSsoBrowser function * Update jslib (7c3a9d6 -> 4203937) * Added missing strings, removed unnecessary class param * Upgrade TypeScript (#517) * Updated password score // Update styles * Removed password-strength component files * Cleaned up module class // Fixed UL/LI formatting issues * Use exisiting loading string // removed new string * Update jslib (4203937 -> 9957125) * Updated class to perform new submit actions * Upgrade Angular (#520) * di resolution for CryptoFunctionServiceAbstraction * Update jslib (9957125 -> 5d874d0) (#521) * Updated change password flow to match web * Updated callout style Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com> Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Co-authored-by: Oscar Hinton <hinton.oscar@gmail.com>
2020-08-21 15:50:36 +02:00
ul {
padding-left: 40px;
margin: 0;
}
}
.password-reprompt {
text-align: left;
margin-top: 15px;
}
.set-pin-modal {
.box {
margin-bottom: 15px;
}
}