Skip to content

Commit 793719a

Browse files
authored
Fix missing styling for shabox on PR commit history (#11625)
1 parent 8443ca1 commit 793719a

File tree

1 file changed

+67
-65
lines changed

1 file changed

+67
-65
lines changed

web_src/less/_repository.less

Lines changed: 67 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,73 @@
811811
padding-left: 15px;
812812
padding-top: 0;
813813

814-
.singular-commit:not(:last-child) {
815-
padding-bottom: 3px;
814+
.singular-commit {
815+
&:not(:last-child) {
816+
padding-bottom: 3px;
817+
}
818+
819+
.shabox {
820+
.sha.label {
821+
margin: 0;
822+
border: 1px solid #bbbbbb;
823+
824+
&.isSigned.isWarning {
825+
border: 1px solid #db2828;
826+
background: fade(#db2828, 10%);
827+
828+
.shortsha {
829+
display: inline-block;
830+
padding-top: 1px;
831+
}
832+
833+
&:hover {
834+
background: fade(#db2828, 30%) !important;
835+
}
836+
}
837+
838+
&.isSigned.isVerified {
839+
border: 1px solid #21ba45;
840+
background: fade(#21ba45, 10%);
841+
842+
.shortsha {
843+
display: inline-block;
844+
padding-top: 1px;
845+
}
846+
847+
&:hover {
848+
background: fade(#21ba45, 30%) !important;
849+
}
850+
}
851+
852+
&.isSigned.isVerifiedUntrusted {
853+
border: 1px solid #fbbd08;
854+
background: fade(#fbbd08, 10%);
855+
856+
.shortsha {
857+
display: inline-block;
858+
padding-top: 1px;
859+
}
860+
861+
&:hover {
862+
background: fade(#fbbd08, 30%) !important;
863+
}
864+
}
865+
866+
&.isSigned.isVerifiedUnmatched {
867+
border: 1px solid #f2711c;
868+
background: fade(#f2711c, 10%);
869+
870+
.shortsha {
871+
display: inline-block;
872+
padding-top: 1px;
873+
}
874+
875+
&:hover {
876+
background: fade(#f2711c, 30%) !important;
877+
}
878+
}
879+
}
880+
}
816881
}
817882
}
818883

@@ -1070,69 +1135,6 @@
10701135
}
10711136
}
10721137

1073-
& > .shabox {
1074-
.sha.label {
1075-
margin: 0;
1076-
border: 1px solid #bbbbbb;
1077-
1078-
&.isSigned.isWarning {
1079-
border: 1px solid #db2828;
1080-
background: fade(#db2828, 10%);
1081-
1082-
.shortsha {
1083-
display: inline-block;
1084-
padding-top: 1px;
1085-
}
1086-
1087-
&:hover {
1088-
background: fade(#db2828, 30%) !important;
1089-
}
1090-
}
1091-
1092-
&.isSigned.isVerified {
1093-
border: 1px solid #21ba45;
1094-
background: fade(#21ba45, 10%);
1095-
1096-
.shortsha {
1097-
display: inline-block;
1098-
padding-top: 1px;
1099-
}
1100-
1101-
&:hover {
1102-
background: fade(#21ba45, 30%) !important;
1103-
}
1104-
}
1105-
1106-
&.isSigned.isVerifiedUntrusted {
1107-
border: 1px solid #fbbd08;
1108-
background: fade(#fbbd08, 10%);
1109-
1110-
.shortsha {
1111-
display: inline-block;
1112-
padding-top: 1px;
1113-
}
1114-
1115-
&:hover {
1116-
background: fade(#fbbd08, 30%) !important;
1117-
}
1118-
}
1119-
1120-
&.isSigned.isVerifiedUnmatched {
1121-
border: 1px solid #f2711c;
1122-
background: fade(#f2711c, 10%);
1123-
1124-
.shortsha {
1125-
display: inline-block;
1126-
padding-top: 1px;
1127-
}
1128-
1129-
&:hover {
1130-
background: fade(#f2711c, 30%) !important;
1131-
}
1132-
}
1133-
}
1134-
}
1135-
11361138
.detail {
11371139
font-size: .9rem;
11381140
margin-top: 5px;

0 commit comments

Comments
 (0)