Skip to content

Commit

Permalink
fix: convert some compiled css manually
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofan2406 committed Jun 24, 2022
1 parent 62b73a4 commit 0983db9
Show file tree
Hide file tree
Showing 30 changed files with 930 additions and 7,403 deletions.
159 changes: 0 additions & 159 deletions src/components/ActionPanel/styles.scss

This file was deleted.

34 changes: 20 additions & 14 deletions src/components/Alert/styles.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
@import '../../styles/variable';

.alert-component {
color: #fff;
font-size: 12px;
color: $color-text-inverse;
font-size: $font-size-body;
line-height: 20px;
padding: 10px;
}
.alert-component-success {
background-color: #5bb75b;
}
.alert-component-info {
background-color: #49afcd;
}
.alert-component-warning {
background-color: #faa732;
}
.alert-component-danger {
background-color: #da4f49;

&.alert-component-success {
background-color: $color-positive;
}

&.alert-component-info {
background-color: $color-info;
}

&.alert-component-warning {
background-color: $color-warning;
}

&.alert-component-danger {
background-color: $color-negative;
}
}
25 changes: 0 additions & 25 deletions src/components/Alert/styles.scss

This file was deleted.

124 changes: 71 additions & 53 deletions src/components/AlertInput/styles.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,82 @@
@import '../../styles/variable';

.aui--alert-input {
display: flex;
align-items: center;
background-color: #fff;
border: 1px solid #e8e8e8;
border-radius: 2px;
background-color: $color-well;
border: $border-lighter;
border-radius: $border-radius;
padding: 4px 5px;
position: relative;
}
.aui--alert-input.aui--alert-input--focused {
border-color: #ababab;
}
.aui--alert-input .aui--alert-input__input {
flex-grow: 1;
background-color: #fff;
border: 0;
width: 100%;
padding: 0;
}
.aui--alert-input .aui--alert-input__input:focus {
outline: none;
}
.aui--alert-input.success {
border-color: #5bb75b;
}
.aui--alert-input.info {
border-color: #49afcd;
}
.aui--alert-input.warning {
border-color: #faa732;
}
.aui--alert-input.error {
border-color: #da4f49;
}
.aui--alert-input .aui--alert-input__addon {
color: #d3d3d3;
}
.aui--alert-input .aui--alert-input__addon:first-child {
margin-right: 2px;
}
.aui--alert-input .aui--alert-input__addon:last-child {
margin-left: 2px;
}
.aui--alert-input.aui--alert-input--disabled {
background-color: #e8e8e8;
}
.aui--alert-input.aui--alert-input--disabled .aui--alert-input__input:disabled {
background-color: #e8e8e8;
}
.aui--alert-input.aui--alert-input--disabled .aui--alert-input__addon {
color: #ababab;

&.aui--alert-input--focused {
border-color: $color-border;
}

& .aui--alert-input__input {
flex-grow: 1;
background-color: $color-well;
border: 0;
width: 100%;
padding: 0;

&:focus {
outline: none;
}
}

&.success {
border-color: $color-positive;
}

&.info {
border-color: $color-info;
}

&.warning {
border-color: $color-warning;
}

&.error {
border-color: $color-negative;
}

& .aui--alert-input__addon {
color: $color-text-addon;

&:first-child {
margin-right: 2px;
}

&:last-child {
margin-left: 2px;
}
}

&.aui--alert-input--disabled {
background-color: $color-gray-lighter;

& .aui--alert-input__input {
&:disabled {
background-color: $color-gray-lighter;
}
}

& .aui--alert-input__addon {
color: $color-gray;
}
}
}

.aui--alert-input__popover {
border-radius: 4px;
box-shadow: none;
font-size: 11px;
}
.aui--alert-input__popover .popover-content {
color: inherit;
padding: 5px 10px;
width: auto;
font-weight: 700;
font-size: $font-size-small;

& .popover-content {
color: inherit;
padding: 5px 10px;
width: auto;
font-weight: $font-weight-bold;
}
}
Loading

0 comments on commit 0983db9

Please sign in to comment.