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

447 lines
7.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 {
2021-12-20 15:47:17 +01:00
font-size: $font-size-small;
2018-02-11 05:24:22 +01:00
}
.bg-primary {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: themed("primaryColor") !important;
}
}
.bg-success {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: themed("successColor") !important;
}
}
.bg-danger {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: themed("dangerColor") !important;
}
}
.bg-info {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: themed("infoColor") !important;
}
}
.bg-warning {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
background-color: themed("warningColor") !important;
}
}
2018-01-29 22:13:37 +01:00
.text-primary {
2021-12-20 15:47:17 +01: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 {
2021-12-20 15:47:17 +01: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 {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: themed("dangerColor") !important;
}
2018-11-15 21:27:27 +01:00
}
.text-warning {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: themed("warningColor") !important;
}
}
2018-01-29 22:13:37 +01:00
.text-muted {
2021-12-20 15:47:17 +01: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 {
2021-12-20 15:47:17 +01: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 {
2021-12-20 15:47:17 +01:00
text-align: center;
2018-01-31 23:58:06 +01:00
}
2018-02-16 21:03:29 +01:00
.no-margin {
2021-12-20 15:47:17 +01:00
margin: 0 !important;
2018-02-16 21:03:29 +01:00
}
.font-weight-semibold {
2021-12-20 15:47:17 +01:00
font-weight: 600;
}
2018-02-16 21:03:29 +01:00
p.lead {
2021-12-20 15:47:17 +01:00
font-size: $font-size-large;
margin-bottom: 20px;
font-weight: normal;
2018-02-16 21:03:29 +01:00
}
2018-01-27 19:12:06 +01:00
.monospaced {
2021-12-20 15:47:17 +01:00
font-family: $font-family-monospace;
2018-01-27 19:12:06 +01:00
}
2018-12-21 05:01:21 +01:00
.show-whitespace {
2021-12-20 15:47:17 +01:00
white-space: pre-wrap;
2018-12-21 05:01:21 +01:00
}
.font-weight-bold {
2021-12-20 15:47:17 +01:00
font-weight: bold;
}
2018-01-27 19:12:06 +01:00
.sr-only {
2021-12-20 15:47:17 +01:00
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;
2018-01-27 19:12:06 +01:00
}
.totp {
2021-12-20 15:47:17 +01:00
.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;
@include themify($themes) {
stroke: themed("totpStrokeColor");
}
&.inner {
stroke-width: 3;
stroke-dasharray: 78.6;
stroke-dashoffset: 0;
}
&.outer {
stroke-width: 2;
stroke-dasharray: 88;
stroke-dashoffset: 0;
}
2018-01-27 19:12:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
2021-12-20 15:47:17 +01:00
&.low {
.totp-sec,
.totp-code {
@include themify($themes) {
color: themed("dangerColor");
}
2018-01-27 19:12:06 +01:00
}
2021-12-20 15:47:17 +01:00
.totp-circle {
@include themify($themes) {
stroke: themed("dangerColor");
}
2018-01-27 19:12:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
}
2018-01-29 22:13:37 +01:00
.password-block {
2021-12-20 15:47:17 +01:00
font-size: $font-size-large;
font-family: $font-family-monospace;
min-height: 50px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
.modal-body & {
margin-top: 10px;
}
2018-01-29 22:13:37 +01:00
}
2018-01-31 23:58:06 +01:00
2018-12-08 19:48:30 +01:00
.password-wrapper {
2021-12-20 15:47:17 +01:00
word-break: break-all;
white-space: pre-wrap;
min-width: 0;
2018-12-08 19:48:30 +01:00
}
.password-number {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: themed("passwordNumberColor");
}
2018-12-08 19:48:30 +01:00
}
.password-special {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: themed("passwordSpecialColor");
}
2018-12-08 19:48:30 +01:00
}
2018-02-02 04:59:04 +01:00
#duo-frame {
2021-12-20 15:47:17 +01:00
background: url("../images/loading.svg") 0 0 no-repeat;
height: 330px;
margin: 0 -150px 15px -150px;
iframe {
width: 100%;
height: 100%;
border: none;
}
2018-02-02 04:59:04 +01:00
}
2021-03-08 19:12:56 +01:00
#web-authn-frame {
2021-12-20 15:47:17 +01:00
background: url("../images/loading.svg") 0 0 no-repeat;
height: 250px;
margin: 0 0 15px 0;
2021-03-08 19:12:56 +01:00
2021-12-20 15:47:17 +01:00
iframe {
width: 100%;
2021-12-20 15:47:17 +01:00
height: 100%;
border: none;
2021-12-20 15:47:17 +01:00
}
}
2021-12-20 15:47:17 +01:00
#hcaptcha_iframe {
width: 100%;
border: none;
transition: height 0.25s linear;
}
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
form,
.form {
.form-group {
margin-bottom: 10px;
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
&:last-child {
margin-bottom: 0;
}
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
label {
display: inline-block;
margin-bottom: 2px;
}
2018-05-30 21:21:41 +02:00
2021-12-20 15:47:17 +01:00
input,
select,
textarea {
border: 1px solid #000000;
border-radius: $border-radius;
display: block;
2021-09-15 20:02:46 +02:00
2021-12-20 15:47:17 +01:00
@include themify($themes) {
border-color: themed("inputBorderColor");
}
}
2021-12-20 15:47:17 +01:00
input[type="text"],
input[type="number"] {
padding: 5px;
width: 100%;
}
}
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
.checkbox {
position: relative;
display: block;
padding-left: 18px;
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
label {
margin-bottom: 0;
2018-02-11 05:24:22 +01:00
}
2021-12-20 15:47:17 +01:00
input[type="checkbox"] {
position: absolute;
margin-top: 4px;
margin-left: -18px;
}
2021-12-20 15:47:17 +01:00
}
2021-12-20 15:47:17 +01:00
.radio {
position: relative;
display: block;
padding-left: 18px;
margin-top: 4px;
2018-05-30 21:21:41 +02:00
2021-12-20 15:47:17 +01:00
&.radio-mt-2 {
margin-top: 2px;
}
2018-02-14 04:45:31 +01:00
2021-12-20 15:47:17 +01:00
label {
margin-bottom: 0;
}
input[type="radio"] {
position: absolute;
margin-top: 4px;
margin-left: -18px;
}
}
.help-block {
margin-top: 3px;
display: block;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
2021-12-20 15:47:17 +01:00
color: themed("mutedColor");
2018-05-30 21:21:41 +02:00
}
2021-12-20 15:47:17 +01:00
}
}
app-root > #loading {
display: flex;
text-align: center;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
color: $text-muted;
@include themify($themes) {
color: themed("mutedColor");
}
2018-02-14 04:45:31 +01:00
}
2018-05-31 04:28:04 +02:00
.logo-image {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
content: url("../images/logo-" + themed("logoSuffix") + "@2x.png");
}
2018-05-31 04:28:04 +02:00
}
2018-12-08 19:48:30 +01:00
[hidden] {
2021-12-20 15:47:17 +01:00
display: none !important;
2018-12-08 19:48:30 +01:00
}
2019-10-25 01:55:21 +02:00
.draggable {
2021-12-20 15:47:17 +01:00
cursor: move;
2019-10-25 01:55:21 +02:00
}
.callout {
2021-12-20 15:47:17 +01:00
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) {
2021-12-20 15:47:17 +01:00
border-left-color: themed("primaryColor");
}
.callout-heading {
2021-12-20 15:47:17 +01:00
@include themify($themes) {
color: themed("primaryColor");
}
}
2021-12-20 15:47:17 +01:00
}
2021-12-20 15:47:17 +01:00
&.callout-info {
@include themify($themes) {
border-left-color: themed("infoColor");
}
2021-12-20 15:47:17 +01:00
.callout-heading {
@include themify($themes) {
color: themed("infoColor");
}
}
2021-12-20 15:47:17 +01:00
}
2021-12-20 15:47:17 +01:00
&.callout-danger {
@include themify($themes) {
border-left-color: themed("dangerColor");
}
2021-12-20 15:47:17 +01:00
.callout-heading {
@include themify($themes) {
color: themed("dangerColor");
}
}
2021-12-20 15:47:17 +01:00
}
2021-12-20 15:47:17 +01:00
&.callout-success {
@include themify($themes) {
border-left-color: themed("successColor");
}
2021-12-20 15:47:17 +01:00
.callout-heading {
@include themify($themes) {
color: themed("successColor");
}
}
}
2021-12-20 15:47:17 +01:00
&.callout-warning {
@include themify($themes) {
border-left-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
2021-12-20 15:47:17 +01:00
.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
}
2021-12-20 15:47:17 +01:00
}
ul {
padding-left: 40px;
margin: 0;
}
}
.password-reprompt {
2021-12-20 15:47:17 +01:00
text-align: left;
margin-top: 15px;
}
.set-pin-modal {
2021-12-20 15:47:17 +01:00
.box {
margin-bottom: 15px;
}
}
[Account Switching] [Feature] Add the ability to maintain state for up to 5 accounts at once (#1079) * [refactor] Remove references to deprecated services * [feature] Implement account switching * [bug] Fix state handling for authentication dependent system menu items * [bug] Enable the account switcher to fucntion properly when switching to a locked accounts * [feature] Enable locking any account from the menu * [bug] Ensure the avatar instance used in the account switcher updates on account change * [style] Fix lint complaints * [bug] Ensure the logout command callback can handle any user in state * [style] Fix lint complaints * rollup * [style] Fix lint complaints * [bug] Don't clean up state until everything else is done on logout * [bug] Navigate to vault on a succesful account switch * [bug] Init the state service on start * [feature] Limit account switching to 5 account maximum * [bug] Resolve app lock state with 5 logged out accounts * [chore] Update account refrences to match recent jslib restructuring * [bug] Add missing awaits * [bug] Update app menu on logout * [bug] Hide the switcher if there are no authed accounts * [bug] Move authenticationStatus display information out of jslib * [bug] Remove unused active style from scss * [refactor] Rewrite the menu bar * [style] Fix lint complaints * [bug] Clean state of loggout out user after redirect * [bug] Redirect on logout if not explicity provided a userId that isn't active * [bug] Relocated several settings items to persistant storage * [bug] Correct account switcher styles on all themes * [chore] Include state migration service in services * [bug] Swap to next account on logout * [bug] Correct DI service * [bug] fix loginGuard deps in services.module * [chore] update jslib * [bug] Remove badly merged scss * [chore] update jslib * [review] Code review cleanup * [review] Code review cleanup Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-12-15 23:32:00 +01:00
.rounded-circle {
2021-12-20 15:47:17 +01:00
border-radius: 50% !important;
[Account Switching] [Feature] Add the ability to maintain state for up to 5 accounts at once (#1079) * [refactor] Remove references to deprecated services * [feature] Implement account switching * [bug] Fix state handling for authentication dependent system menu items * [bug] Enable the account switcher to fucntion properly when switching to a locked accounts * [feature] Enable locking any account from the menu * [bug] Ensure the avatar instance used in the account switcher updates on account change * [style] Fix lint complaints * [bug] Ensure the logout command callback can handle any user in state * [style] Fix lint complaints * rollup * [style] Fix lint complaints * [bug] Don't clean up state until everything else is done on logout * [bug] Navigate to vault on a succesful account switch * [bug] Init the state service on start * [feature] Limit account switching to 5 account maximum * [bug] Resolve app lock state with 5 logged out accounts * [chore] Update account refrences to match recent jslib restructuring * [bug] Add missing awaits * [bug] Update app menu on logout * [bug] Hide the switcher if there are no authed accounts * [bug] Move authenticationStatus display information out of jslib * [bug] Remove unused active style from scss * [refactor] Rewrite the menu bar * [style] Fix lint complaints * [bug] Clean state of loggout out user after redirect * [bug] Redirect on logout if not explicity provided a userId that isn't active * [bug] Relocated several settings items to persistant storage * [bug] Correct account switcher styles on all themes * [chore] Include state migration service in services * [bug] Swap to next account on logout * [bug] Correct DI service * [bug] fix loginGuard deps in services.module * [chore] update jslib * [bug] Remove badly merged scss * [chore] update jslib * [review] Code review cleanup * [review] Code review cleanup Co-authored-by: Hinton <oscar@oscarhinton.com>
2021-12-15 23:32:00 +01:00
}