1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Replace Bootstrap with Tailwind equivalents

This commit is contained in:
Alec Rippberger
2025-02-14 16:53:20 -06:00
parent 07d6f9433f
commit 2085140625

View File

@@ -3,7 +3,7 @@
<bit-container> <bit-container>
<ng-container *ngIf="loading"> <ng-container *ngIf="loading">
<i <i
class="bwi bwi-spinner bwi-spin text-muted" class="bwi bwi-spinner bwi-spin tw-text-muted"
title="{{ 'loading' | i18n }}" title="{{ 'loading' | i18n }}"
aria-hidden="true" aria-hidden="true"
></i> ></i>
@@ -109,8 +109,9 @@
<!-- Key Connector --> <!-- Key Connector -->
<ng-container <ng-container
*ngIf=" *ngIf="
ssoConfigForm.value.memberDecryptionType === memberDecryptionType.KeyConnector && true ||
showKeyConnectorOptions (ssoConfigForm.value.memberDecryptionType === memberDecryptionType.KeyConnector &&
showKeyConnectorOptions)
" "
> >
<bit-callout type="warning" [useAlertRole]="true"> <bit-callout type="warning" [useAlertRole]="true">
@@ -148,7 +149,7 @@
aria-live="polite" aria-live="polite"
*ngIf="haveTestedKeyConnector && !keyConnectorUrl.hasError('invalidUrl')" *ngIf="haveTestedKeyConnector && !keyConnectorUrl.hasError('invalidUrl')"
> >
<small class="text-success"> <small class="tw-text-success-600">
<i class="bwi bwi-check-circle" aria-hidden="true"></i> <i class="bwi bwi-check-circle" aria-hidden="true"></i>
{{ "keyConnectorTestSuccess" | i18n }} {{ "keyConnectorTestSuccess" | i18n }}
</small> </small>
@@ -173,8 +174,12 @@
*ngIf="ssoConfigForm.get('configType').value === ssoType.OpenIdConnect" *ngIf="ssoConfigForm.get('configType').value === ssoType.OpenIdConnect"
[formGroup]="openIdForm" [formGroup]="openIdForm"
> >
<div class="config-section"> <div>
<h2 class="secondary-header">{{ "openIdConnectConfig" | i18n }}</h2> <h2
class="tw-mb-4 tw-pb-2.5 tw-mt-16 tw-border-0 tw-border-b tw-border-solid tw-border-b-secondary-300 dark:tw-border-b-secondary-700"
>
{{ "openIdConnectConfig" | i18n }}
</h2>
<bit-form-field> <bit-form-field>
<bit-label>{{ "callbackPath" | i18n }}</bit-label> <bit-label>{{ "callbackPath" | i18n }}</bit-label>
@@ -246,14 +251,14 @@
<!-- Optional customizations --> <!-- Optional customizations -->
<div <div
class="section-header d-flex flex-row align-items-center mt-3 mb-3" class="tw-flex tw-flex-row tw-items-center tw-my-3 tw-text-main hover:tw-cursor-pointer"
(click)="toggleOpenIdCustomizations()" (click)="toggleOpenIdCustomizations()"
> >
<h3 class="mb-0 mr-2" id="customizations-header"> <h3 class="tw-mb-0 tw-mr-2 tw-font-normal tw-uppercase" id="customizations-header">
{{ "openIdOptionalCustomizations" | i18n }} {{ "openIdOptionalCustomizations" | i18n }}
</h3> </h3>
<button <button
class="mb-1 btn btn-link" class="tw-my-1 tw-text-primary-600 hover:tw-text-primary-700 focus:tw-outline focus:tw-outline-1 focus:tw-outline-offset-1"
type="button" type="button"
appStopClick appStopClick
role="button" role="button"
@@ -314,8 +319,12 @@
<!-- SAML2 SP --> <!-- SAML2 SP -->
<div *ngIf="ssoConfigForm.get('configType').value === ssoType.Saml2" [formGroup]="samlForm"> <div *ngIf="ssoConfigForm.get('configType').value === ssoType.Saml2" [formGroup]="samlForm">
<!-- SAML2 SP --> <!-- SAML2 SP -->
<div class="config-section"> <div>
<h2 class="secondary-header">{{ "samlSpConfig" | i18n }}</h2> <h2
class="tw-mb-4 tw-pb-2.5 tw-mt-16 tw-border-0 tw-border-b tw-border-solid tw-border-b-secondary-300 dark:tw-border-b-secondary-700"
>
{{ "samlSpConfig" | i18n }}
</h2>
<bit-form-control> <bit-form-control>
<bit-label>{{ "spUniqueEntityId" | i18n }}</bit-label> <bit-label>{{ "spUniqueEntityId" | i18n }}</bit-label>
@@ -457,8 +466,12 @@
</div> </div>
<!-- SAML2 IDP --> <!-- SAML2 IDP -->
<div class="config-section"> <div>
<h2 class="secondary-header">{{ "samlIdpConfig" | i18n }}</h2> <h2
class="tw-mb-2 tw-pb-2.5 tw-mt-16 tw-border-0 tw-border-b tw-border-solid tw-border-b-secondary-300 dark:tw-border-b-secondary-700"
>
{{ "samlIdpConfig" | i18n }}
</h2>
<bit-form-field> <bit-form-field>
<bit-label>{{ "idpEntityId" | i18n }}</bit-label> <bit-label>{{ "idpEntityId" | i18n }}</bit-label>