Skip to content

Commit

Permalink
[UI] Auth pages and input (#9870)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm committed May 22, 2024
1 parent be83d73 commit 94650f8
Show file tree
Hide file tree
Showing 20 changed files with 241 additions and 70 deletions.
16 changes: 10 additions & 6 deletions src/Bootstrap/dist/css/bootstrap-theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 91 additions & 19 deletions src/Bootstrap/dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 45 additions & 3 deletions src/Bootstrap/less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ output {
}
}

textarea.textarea-brand {
textarea.textarea-brand,
input.input-brand {
color: var(--neutralForeground1Rest);
background-color: var(--neutralBackground1Rest);
border-radius: 4px;
Expand All @@ -357,6 +358,10 @@ textarea.textarea-brand {
border-bottom: 2px solid var(--brandStrokeCompoundRest);
}

&[aria-invalid='true'] {
border-color: var(--statusDangerStroke2Rest);
}

&[disabled] {
background-color: transparent;
color: var(--neutralForegroundDisabledRest);
Expand All @@ -383,7 +388,7 @@ textarea.textarea-brand {
&:-ms-input-placeholder { color: var(--neutralForeground1Rest); } // Internet Explorer 10+
&::-webkit-input-placeholder { color: var(--neutralForeground1Rest); } // Safari and Chrome
}

// Firefox
&::-moz-placeholder {
color: var(--neutralForeground4Rest);
Expand Down Expand Up @@ -636,6 +641,43 @@ textarea.textarea-brand {
.has-error {
.form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
}
.has-error-brand {
.form-control-validation-brand();
}

.form-control-validation-brand {
// Color the label and help text
.help-block,
.control-label,
.radio,
.checkbox,
.radio-inline,
.checkbox-inline,
&.radio label,
&.checkbox label,
&.radio-inline label,
&.checkbox-inline label {
color: var(--statusDangerForeground1Rest);
}
// Set the border and box shadow on specific inputs to match
.form-control {
border-color: var(--statusDangerStroke2Rest);
&:focus {
border-color: var(--statusDangerStroke2Rest);
}
}
// Set validation states also for addons
.input-group-addon {
color: var(--statusDangerForeground3Rest);
background-color: var(--statusDangerBackground1Rest);
border-color: var(--statusDangerStroke2Rest);
}
// Optional feedback icon
.form-control-feedback {
color: var(--statusDangerForeground3Rest);
}
}


// Reposition feedback icon if input has visible label above
.has-feedback label {
Expand Down Expand Up @@ -812,4 +854,4 @@ textarea.textarea-brand {
}
}
}
}
}
9 changes: 5 additions & 4 deletions src/Bootstrap/less/panels.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
// Base class
.panel {
margin-bottom: @line-height-computed;
background-color: @panel-bg;
border: 1px solid transparent;
border-radius: @panel-border-radius;
.box-shadow(0 1px 1px rgba(0, 0, 0, .05));
background-color: transparent;

border-radius: var(--X-Large, 8px);
box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.12), 0px 2px 4px 0px rgba(0, 0, 0, 0.14);
background-color: var(--neutralBackground1Rest);
}

// Panel contents
Expand Down
5 changes: 5 additions & 0 deletions src/Bootstrap/less/theme/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ body {
}
}

a {
color: var(--brandForegroundLinkRest);
}

.alert-transient-jumbotron {
background: transparent;
}
Expand Down Expand Up @@ -604,4 +608,5 @@ body[id="/"] {
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
color: var(--neutralForeground1Rest)
}
8 changes: 4 additions & 4 deletions src/Bootstrap/less/theme/modals.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.modal-box {
border-radius: 8px;
background-color: white;
background-color: var(--neutralBackground2Rest);;
margin-left: auto;
margin-right: auto;
min-height: 364px;
Expand All @@ -23,8 +23,8 @@
padding: 0px;

.modal-title {
background-color: #4181B8;
color: white;
background-color: var(--brandBackgroundStatic);
color: var(--neutralForegroundStaticInvertedRest);
padding: 15px;

.dismiss-button {
Expand All @@ -41,7 +41,7 @@
font-size: 14px;

.tag-node {
background-color: @info-bg;
background-color: var(--statusGenericMarigoldBackground2Rest);
padding: 13px;
text-align: left;

Expand Down
4 changes: 2 additions & 2 deletions src/Bootstrap/less/theme/themes.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/* brand tokens have been swapped to use blues from the .NET brand colors */

/* Brand Background Static */
--brandBackgroundStatic: var(--dotnetBluePrimary, #0b6cff);
--brandBackgroundStatic: var(--dotnetBluePrimary, #0f6cbd);

/* Brand Background 1 */
--brandBackground1Rest: var(--dotnetBluePrimary, #0b6cff);
Expand Down Expand Up @@ -415,7 +415,7 @@
/* brand tokens have been swapped to use blues from the .NET brand colors */

/* Brand Background Static */
--brandBackgroundStatic: var(--dotnetBluePrimary, #0b6cff);
--brandBackgroundStatic: var(--dotnetBluePrimary, #0f6cbd);

/* Brand Background 1 */
--brandBackground1Rest: var(--dotnetBlueShade10, #0956cc);
Expand Down
Loading

0 comments on commit 94650f8

Please sign in to comment.