1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-01 16:13:27 +00:00
Files
browser/apps/web/src/scss/pages.scss
Daniel James Smith 9e290a3fed [PM-4222] Make importer UI reusable (#6504)
* Split up import/export into separate modules

* Fix routing and apply PR feedback

* Renamed OrganizationExport exports to OrganizationVaultExport

* Make import dialogs standalone and move them to libs/importer

* Make import.component re-usable

- Move functionality which was previously present on the org-import.component into import.component
- Move import.component into libs/importer
Make import.component standalone
Create import-web.component to represent Web UI
Fix module imports and routing
Remove unused org-import-files

* Renamed filenames according to export rename

* Make ImportWebComponent standalone, simplify routing

* Pass organizationId as Input to ImportComponent

* use formLoading and formDisabled outputs

* Emit an event when the import succeeds

Remove Angular router from base-component as other clients might not have routing (i.e. desktop)
Move logic that happened on web successful import into the import-web.component

* fix table themes on desktop & browser

* fix fileSelector button styles

* update selectors to use tools prefix; remove unused selectors

* Wall off UI components in libs/importer

Create barrel-file for libs/importer/components
Remove components and dialog exports from libs/importer/index.ts
Extend libs/shared/tsconfig.libs.json to include @bitwarden/importer/ui -> libs/importer/components
Extend apps/web/tsconfig.ts to include @bitwarden/importer/ui
Update all usages

* Rename @bitwarden/importer to @bitwarden/importer/core

Create more barrel files in libs/importer/*
Update imports within libs/importer
Extend tsconfig files
Update imports in web, desktop, browser and cli

* Lazy-load the ImportWebComponent via both routes

* Use SharedModule as import in import-web.component

* File selector should be displayed as secondary

* Use bitSubmit to override submit preventDefault (#6607)

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
Co-authored-by: William Martin <contact@willmartian.com>
2023-10-19 11:17:23 +02:00

152 lines
2.3 KiB
SCSS

app-generator {
#lengthRange {
width: 100%;
}
.card-generated {
.card-body {
@include themify($themes) {
background: themed("foregroundColor");
}
align-items: center;
display: flex;
flex-wrap: wrap;
font-family: $font-family-monospace;
font-size: $font-size-lg;
justify-content: center;
text-align: center;
}
}
}
app-password-generator-history {
.list-group-item {
line-height: 1;
@include themify($themes) {
background: themed("backgroundColor");
}
.password {
font-family: $font-family-monospace;
}
}
}
tools-import {
textarea {
height: 150px;
}
}
app-avatar {
img {
@extend .rounded;
}
}
app-user-billing {
.progress {
height: 20px;
.progress-bar {
min-width: 50px;
}
}
}
app-sponsored-families {
.inset-list {
padding-left: 1.5rem;
}
}
/* Register Layout Page */
.layout {
&.default,
&.teams,
&.teams1,
&.teams2,
&.enterprise,
&.enterprise1,
&.enterprise2,
&.cnetcmpgnent,
&.cnetcmpgnteams,
&.cnetcmpgnind {
header {
background: #175ddc;
color: #ced4da;
height: 70px;
&:before {
background: #175ddc;
content: "";
height: 520px;
left: 0;
position: absolute;
top: -80px;
transform: skewY(-3deg);
width: 100%;
z-index: -1;
}
img.logo {
height: 57px;
margin: 12px 0 0;
max-width: 284px;
width: 284px;
}
}
h1 {
color: #ffffff;
font-size: 3.5rem;
margin: 50px 0 0;
}
h2 {
color: #ffffff;
font-size: 2rem;
line-height: 1.5;
margin: 20px 0 140px;
}
p {
font-size: 2rem;
margin: 10px 0 70px 0;
&:before {
content: "/";
padding-right: 12px;
}
&:not(.highlight) {
&:before {
color: #1252a3;
}
}
b {
&:after {
content: "";
font-size: 2rem;
padding-left: 6px;
}
}
}
figure {
margin: 0;
}
blockquote {
font-size: 1.4rem;
margin: 20px 0 0;
}
}
&.cnetcmpgnind {
p {
font-size: 1.5rem;
margin: 10px 0 50px 0;
}
}
}