Disallow leading zeroes in Less (#10407)

This commit is contained in:
silverwind 2020-02-23 17:48:27 +01:00 committed by GitHub
parent 71d5a090df
commit 4e912d2ed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 102 additions and 101 deletions

View file

@ -180,7 +180,7 @@ a {
}
.rounded {
border-radius: 0.28571429rem !important;
border-radius: .28571429rem !important;
}
.wrap {
@ -232,7 +232,7 @@ code,
&.light {
background-color: white;
border-bottom: 1px solid #dddddd;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
box-shadow: 0 2px 3px rgba(0, 0, 0, .04);
}
.column .menu {
@ -254,7 +254,7 @@ code,
}
.top.menu a.item:hover {
color: rgba(0, 0, 0, 0.45);
color: rgba(0, 0, 0, .45);
}
.top.menu .menu {
@ -266,7 +266,7 @@ code,
}
.svg {
margin-right: 0.75em;
margin-right: .75em;
}
.searchbox {
@ -285,7 +285,7 @@ code,
#navbar {
width: 100vw;
min-height: 52px;
padding: 0 0.5rem;
padding: 0 .5rem;
}
#navbar .brand {
@ -359,11 +359,11 @@ code,
/* This fixes the commit graph button on the commits page */
.menu:not(.vertical) .item > .button.compact {
padding: 0.58928571em 1.125em;
padding: .58928571em 1.125em;
}
.menu:not(.vertical) .item > .button.small {
font-size: 0.92857143rem;
font-size: .92857143rem;
}
&.menu .ui.dropdown.item .menu .item {
@ -379,7 +379,7 @@ code,
}
&.dropdown .menu > .header {
font-size: 0.8em;
font-size: .8em;
}
.text {
@ -456,7 +456,7 @@ code,
}
&.small {
font-size: 0.75em;
font-size: .75em;
}
&.normal {
@ -522,7 +522,7 @@ code,
}
.header > i + .content {
padding-left: 0.75rem;
padding-left: .75rem;
vertical-align: middle;
}
@ -647,7 +647,7 @@ code,
.migrate {
color: #888888 !important;
opacity: 0.5;
opacity: .5;
a {
color: #444444 !important;
@ -712,7 +712,7 @@ code,
.file-comment {
font: 12px @monospaced-fonts, monospace;
color: rgba(0, 0, 0, 0.87);
color: rgba(0, 0, 0, .87);
}
.ui.floating.dropdown {
@ -720,7 +720,7 @@ code,
.scrolling.menu.items {
border-radius: 0 !important;
box-shadow: none !important;
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
border-bottom: 1px solid rgba(34, 36, 38, .15);
}
}
}
@ -745,7 +745,7 @@ footer {
.container {
width: 100vw !important;
padding: 0 0.5rem;
padding: 0 .5rem;
max-width: calc(100vw - 1rem) !important;
.fa {
@ -885,11 +885,11 @@ footer {
}
.ui.menu.new-menu::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.01);
background: rgba(0, 0, 0, .01);
}
.ui.menu.new-menu::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, .2);
}
.ui.menu.new-menu:after {
@ -990,15 +990,15 @@ footer {
/* Tab color tweaks */
.ui.tabular.menu .item {
color: rgba(0, 0, 0, 0.5);
color: rgba(0, 0, 0, .5);
}
.ui.tabular.menu .item:hover {
color: rgba(0, 0, 0, 0.8);
color: rgba(0, 0, 0, .8);
}
.ui.tabular.menu .item.active {
color: rgba(0, 0, 0, 0.9);
color: rgba(0, 0, 0, .9);
}
/* multiple radio or checkboxes as inline element */
@ -1026,7 +1026,7 @@ i.icon.centerlock {
}
.ui.label > .detail .icons {
margin-right: 0.25em;
margin-right: .25em;
}
.ui.label > .detail .icons .icon {
@ -1152,7 +1152,7 @@ i.icon.centerlock {
}
.octicon-tiny {
font-size: 0.85714286rem;
font-size: .85714286rem;
}
.ui.basic.blue.button,
@ -1180,14 +1180,14 @@ i.icon.centerlock {
}
.ui.popup .ui.label {
margin-bottom: 0.4em;
margin-bottom: .4em;
}
.color-icon {
padding-right: 0.7em;
padding-left: 0.5em;
margin-right: 0.5em;
margin-left: 0.5em;
padding-right: .7em;
padding-left: .5em;
margin-right: .5em;
margin-left: .5em;
display: inline;
border: 1px solid #ccc;
border-radius: 500em;