bitwarden-estensione-browser/apps/desktop/src/scss/misc.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

493 lines
7.5 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
small,
.small {
2018-02-11 05:24:22 +01:00
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;
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
.totp-countdown {
margin: 3px 3px 0 0;
display: block;
user-select: none;
2021-12-20 15:47:17 +01:00
2018-01-27 19:12:06 +01:00
.totp-sec {
font-size: 0.85em;
position: absolute;
line-height: 32px;
width: 32px;
text-align: center;
2021-12-20 15:47:17 +01:00
}
svg {
2018-01-27 19:12:06 +01:00
width: 32px;
height: 32px;
transform: rotate(-90deg);
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
.totp-circle {
fill: none;
2021-12-20 15:47:17 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
stroke: themed("totpStrokeColor");
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
&.inner {
stroke-width: 3;
stroke-dasharray: 78.6;
stroke-dashoffset: 0;
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
&.outer {
stroke-width: 2;
stroke-dasharray: 88;
stroke-dashoffset: 0;
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
&.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
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
}
2018-01-29 22:13:37 +01:00
.modal-title {
margin: 0 10px 5px 10px;
text-transform: uppercase;
display: flex;
@include themify($themes) {
color: themed("headingColor");
}
}
.generated-block {
2018-01-29 22:13:37 +01:00
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;
align-items: center;
justify-content: center;
2021-12-20 15:47:17 +01:00
2018-01-29 22:13:37 +01:00
.modal-body & {
margin: 10px;
}
.generated-wrapper {
text-align: left;
width: 100%;
}
.action-buttons {
display: flex;
align-self: center;
button {
margin-left: 10px;
}
2018-01-29 22:13:37 +01:00
}
}
2018-01-31 23:58:06 +01:00
.generated-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;
2021-12-20 15:47:17 +01:00
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%;
2021-03-08 19:12:56 +01:00
height: 100%;
border: none;
2021-12-20 15:47:17 +01:00
}
}
2018-02-11 05:24:22 +01:00
#hcaptcha_iframe {
width: 100%;
border: none;
transition: height 0.25s linear;
2021-12-20 15:47:17 +01:00
}
2018-02-11 05:24:22 +01:00
2021-12-20 15:47:17 +01:00
form,
2018-02-11 05:24:22 +01:00
.form {
.form-group {
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
label {
display: inline-block;
margin-bottom: 2px;
2021-12-20 15:47:17 +01:00
}
2018-05-30 21:21:41 +02:00
input,
2021-12-20 15:47:17 +01:00
select,
2018-05-30 21:21:41 +02:00
textarea {
border: 1px solid #000000;
border-radius: $border-radius;
display: block;
2021-09-15 20:02:46 +02:00
@include themify($themes) {
border-color: themed("inputBorderColor");
}
}
2021-09-15 20:02:46 +02:00
input[type="text"],
2018-02-11 05:24:22 +01:00
input[type="number"] {
padding: 5px;
width: 100%;
2021-12-20 15:47:17 +01:00
}
}
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;
}
2021-12-20 15:47:17 +01:00
}
2018-02-11 05:24:22 +01:00
.radio {
position: relative;
display: block;
padding-left: 18px;
margin-top: 4px;
2018-05-30 21:21:41 +02:00
&.radio-mt-2 {
margin-top: 2px;
}
2018-02-14 04:45:31 +01:00
2021-12-20 15:47:17 +01:00
label {
2018-02-14 04:45:31 +01:00
margin-bottom: 0;
2021-12-20 15:47:17 +01:00
}
2018-02-14 04:45:31 +01:00
input[type="radio"] {
position: absolute;
margin-top: 4px;
2018-02-14 04:45:31 +01:00
margin-left: -18px;
2021-12-20 15:47:17 +01:00
}
}
2018-02-11 05:24:22 +01:00
.help-block {
margin-top: 3px;
2018-02-14 04:45:31 +01:00
display: block;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("mutedColor");
}
2021-12-20 15:47:17 +01:00
}
}
[Account Switching] Misc Bug Fixes and Refactors (#1223) * [bug] Pull serverUrl directly from stateService for the account switcher Create a small extended Account model for handling the switchers server url, and pull environment urls from disk where they actually live * [refactor] Add a message handler for switching accounts * This allows for logic reuse between manually switching accounts and automatically switching accounts on login * This commit also adds a loading spinner to app root while syncing after a switch * [bug] Remove vertical scrollbar * An old styling fix to add extra height and padding seems to be now creating an unecassary scroll bar. It is likely that since making more use of flexbox for our containers that this issue has been resolved without the manually added extra hight & padding * [refactor] Turn down activity monitoring Saving last activity is a disk call, and we currently do this a lot more than is necassary. For example: * We track mousedown & click, which is redundant * We track every mouse movement regardless of if an action is taken. This seems inappropriate for use in locking behavior. * [bug] Address potential race condition when locking Sometimes when swapping between an unlocked account and a locked account a race condition occurs that swaps the user but doesn't redirect to the lock screen This commit just adds some awaits and restructures lock order of operations to be more in line with other message handlers * [refactor] Change click event to mousedown event for the account switcher This is simply a little snappier, and ensures we stay ahead of change detection and don't get stuck not properly interpreting the action * [chore] Update jslib * [chore] Linter fixes * [chore] Linter fixes * [chore] Update jslib * [chore] Update jslib
2022-01-12 15:23:00 +01:00
app-root > #loading,
.loading {
2018-12-08 19:48:30 +01:00
display: flex;
2018-02-14 04:45:31 +01:00
text-align: center;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
2018-05-31 04:28:04 +02:00
color: $text-muted;
2021-12-20 15:47:17 +01:00
2018-05-31 04:28:04 +02:00
@include themify($themes) {
2018-05-30 21:21:41 +02:00
color: themed("mutedColor");
2021-12-20 15:47:17 +01:00
}
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");
2021-12-20 15:47:17 +01:00
}
.callout-heading {
margin-top: 0;
2021-12-20 15:47:17 +01:00
}
h3.callout-heading {
font-weight: bold;
text-transform: uppercase;
2021-12-20 15:47:17 +01:00
}
&.callout-primary {
@include themify($themes) {
border-left-color: themed("primaryColor");
}
.callout-heading {
@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");
}
.callout-heading {
@include themify($themes) {
color: themed("infoColor");
}
}
2021-12-20 15:47:17 +01:00
}
&.callout-danger {
@include themify($themes) {
border-left-color: themed("dangerColor");
}
.callout-heading {
@include themify($themes) {
color: themed("dangerColor");
}
}
2021-12-20 15:47:17 +01:00
}
&.callout-success {
@include themify($themes) {
border-left-color: themed("successColor");
}
.callout-heading {
@include themify($themes) {
color: themed("successColor");
2021-12-20 15:47:17 +01:00
}
}
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
.callout-heading {
@include themify($themes) {
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
color: themed("warningColor");
2021-12-20 15:47:17 +01:00
}
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;
2018-01-27 19:12:06 +01:00
margin: 0;
2021-12-20 15:47:17 +01:00
}
}
.password-reprompt {
text-align: left;
margin-top: 15px;
}
.set-pin-modal {
.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 {
border-radius: 50% !important;
}
h1,
h2,
h3,
label,
a,
button,
p,
img,
.box-header,
.box-footer,
.row-label,
.modal-title,
.overlay-container,
.help-block,
.form-text.text-muted {
user-select: none;
}
app-vault-view .box-footer {
user-select: auto;
}