Browse Source

Disallow leading zeroes in Less (#10407)

tags/v1.10.5
silverwind 4 years ago
parent
commit
4e912d2ed8
No account linked to committer's email address

+ 1
- 0
.stylelintrc View File

declaration-empty-line-before: null declaration-empty-line-before: null
indentation: 4 indentation: 4
no-descending-specificity: null no-descending-specificity: null
number-leading-zero: never
rule-empty-line-before: null rule-empty-line-before: null
selector-pseudo-element-colon-notation: null selector-pseudo-element-colon-notation: null

+ 1
- 1
web_src/less/_admin.less View File



.ui.header, .ui.header,
.ui.segment { .ui.segment {
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
} }


&.user { &.user {

+ 26
- 26
web_src/less/_base.less View File

} }


.rounded { .rounded {
border-radius: 0.28571429rem !important;
border-radius: .28571429rem !important;
} }


.wrap { .wrap {
&.light { &.light {
background-color: white; background-color: white;
border-bottom: 1px solid #dddddd; 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 { .column .menu {
} }


.top.menu a.item:hover { .top.menu a.item:hover {
color: rgba(0, 0, 0, 0.45);
color: rgba(0, 0, 0, .45);
} }


.top.menu .menu { .top.menu .menu {
} }


.svg { .svg {
margin-right: 0.75em;
margin-right: .75em;
} }


.searchbox { .searchbox {
#navbar { #navbar {
width: 100vw; width: 100vw;
min-height: 52px; min-height: 52px;
padding: 0 0.5rem;
padding: 0 .5rem;
} }


#navbar .brand { #navbar .brand {
/* This fixes the commit graph button on the commits page */ /* This fixes the commit graph button on the commits page */


.menu:not(.vertical) .item > .button.compact { .menu:not(.vertical) .item > .button.compact {
padding: 0.58928571em 1.125em;
padding: .58928571em 1.125em;
} }


.menu:not(.vertical) .item > .button.small { .menu:not(.vertical) .item > .button.small {
font-size: 0.92857143rem;
font-size: .92857143rem;
} }


&.menu .ui.dropdown.item .menu .item { &.menu .ui.dropdown.item .menu .item {
} }


&.dropdown .menu > .header { &.dropdown .menu > .header {
font-size: 0.8em;
font-size: .8em;
} }


.text { .text {
} }


&.small { &.small {
font-size: 0.75em;
font-size: .75em;
} }


&.normal { &.normal {
} }


.header > i + .content { .header > i + .content {
padding-left: 0.75rem;
padding-left: .75rem;
vertical-align: middle; vertical-align: middle;
} }




.migrate { .migrate {
color: #888888 !important; color: #888888 !important;
opacity: 0.5;
opacity: .5;
a { a {
color: #444444 !important; color: #444444 !important;




.file-comment { .file-comment {
font: 12px @monospaced-fonts, monospace; font: 12px @monospaced-fonts, monospace;
color: rgba(0, 0, 0, 0.87);
color: rgba(0, 0, 0, .87);
} }


.ui.floating.dropdown { .ui.floating.dropdown {
.scrolling.menu.items { .scrolling.menu.items {
border-radius: 0 !important; border-radius: 0 !important;
box-shadow: none !important; box-shadow: none !important;
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
border-bottom: 1px solid rgba(34, 36, 38, .15);
} }
} }
} }


.container { .container {
width: 100vw !important; width: 100vw !important;
padding: 0 0.5rem;
padding: 0 .5rem;
max-width: calc(100vw - 1rem) !important; max-width: calc(100vw - 1rem) !important;


.fa { .fa {
} }


.ui.menu.new-menu::-webkit-scrollbar-track { .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 { .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 { .ui.menu.new-menu:after {


/* Tab color tweaks */ /* Tab color tweaks */
.ui.tabular.menu .item { .ui.tabular.menu .item {
color: rgba(0, 0, 0, 0.5);
color: rgba(0, 0, 0, .5);
} }


.ui.tabular.menu .item:hover { .ui.tabular.menu .item:hover {
color: rgba(0, 0, 0, 0.8);
color: rgba(0, 0, 0, .8);
} }


.ui.tabular.menu .item.active { .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 */ /* multiple radio or checkboxes as inline element */
} }


.ui.label > .detail .icons { .ui.label > .detail .icons {
margin-right: 0.25em;
margin-right: .25em;
} }


.ui.label > .detail .icons .icon { .ui.label > .detail .icons .icon {
} }


.octicon-tiny { .octicon-tiny {
font-size: 0.85714286rem;
font-size: .85714286rem;
} }


.ui.basic.blue.button, .ui.basic.blue.button,
} }


.ui.popup .ui.label { .ui.popup .ui.label {
margin-bottom: 0.4em;
margin-bottom: .4em;
} }


.color-icon { .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; display: inline;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 500em; border-radius: 500em;

+ 2
- 2
web_src/less/_dashboard.less View File



.dashboard-navbar { .dashboard-navbar {
width: 100vw; width: 100vw;
padding: 0 0.5rem;
padding: 0 .5rem;
} }
} }


code { code {
padding: 1px; padding: 1px;
font-size: 85%; font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
background-color: rgba(0, 0, 0, .04);
border-radius: 3px; border-radius: 3px;
word-break: break-all; word-break: break-all;
} }

+ 3
- 3
web_src/less/_form.less View File

.form { .form {
.help { .help {
color: #999999; color: #999999;
padding-top: 0.6em;
padding-bottom: 0.6em;
padding-top: .6em;
padding-bottom: .6em;
display: inline-block; display: inline-block;
} }
} }
@media screen and (max-height: 575px) { @media screen and (max-height: 575px) {
#rc-imageselect, #rc-imageselect,
.g-recaptcha { .g-recaptcha {
transform: scale(0.77);
transform: scale(.77);
transform-origin: 0 0; transform-origin: 0 0;
} }
} }

+ 5
- 5
web_src/less/_markdown.less View File

} }


h1 { h1 {
padding-bottom: 0.3em;
padding-bottom: .3em;
font-size: 2.25em; font-size: 2.25em;
line-height: 1.2; line-height: 1.2;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
} }


h2 { h2 {
padding-bottom: 0.3em;
padding-bottom: .3em;
font-size: 1.75em; font-size: 1.75em;
line-height: 1.225; line-height: 1.225;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;


code, code,
tt { tt {
padding: 0.2em 0;
padding: .2em 0;
margin: 0; margin: 0;
font-size: 85%; font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
background-color: rgba(0, 0, 0, .04);
border-radius: 3px; border-radius: 3px;
} }


code:after, code:after,
tt:before, tt:before,
tt:after { tt:after {
letter-spacing: -0.2em;
letter-spacing: -.2em;
content: "\00a0"; content: "\00a0";
} }



+ 32
- 32
web_src/less/_repository.less View File

} }


.text { .text {
margin-left: 0.9em;
margin-left: .9em;
} }


.menu { .menu {
padding: 0 5px; padding: 0 5px;


&:first-child { &:first-child {
border-radius: 0.28571429rem 0 0 0.28571429rem;
border-radius: .28571429rem 0 0 .28571429rem;
} }
} }


} }


.small.icon { .small.icon {
font-size: 0.75em;
font-size: .75em;
} }


.tiny.icon { .tiny.icon {
font-size: 0.5em;
font-size: .5em;
} }


.file-actions { .file-actions {


input { input {
vertical-align: middle; vertical-align: middle;
box-shadow: rgba(0, 0, 0, 0.0745098) 0 1px 2px inset;
box-shadow: rgba(0, 0, 0, .0745098) 0 1px 2px inset;
width: inherit; width: inherit;
padding: 7px 8px; padding: 7px 8px;
margin-right: 5px; margin-right: 5px;
display: inline-block; display: inline-block;
padding: 3px 6px; padding: 3px 6px;
font: 12px @monospaced-fonts, monospace; font: 12px @monospaced-fonts, monospace;
color: rgba(0, 0, 0, 0.65);
background-color: rgba(209, 227, 237, 0.45);
color: rgba(0, 0, 0, .65);
background-color: rgba(209, 227, 237, .45);
border-radius: 3px; border-radius: 3px;
} }


margin-bottom: 5px; margin-bottom: 5px;


.ui.input { .ui.input {
font-size: 0.5em;
font-size: .5em;
vertical-align: top; vertical-align: top;
width: 50%; width: 50%;
min-width: 600px; min-width: 600px;
} }
.branch-update.grid { .branch-update.grid {
margin-bottom: -1.5rem; margin-bottom: -1.5rem;
margin-top: -0.5rem;
margin-top: -.5rem;
.row { .row {
padding-bottom: 0; padding-bottom: 0;
} }
.svg { .svg {
width: 23px; width: 23px;
height: 23px; height: 23px;
margin-top: 0.45em;
margin-top: .45em;
} }
} }


.text { .text {
margin: 0.3em 0 0.5em 0.5em;
margin: .3em 0 .5em .5em;
} }


.type-icon { .type-icon {
} }


.divider { .divider {
margin: 0.5rem 0;
margin: .5rem 0;
} }


.review-content { .review-content {
margin-top: 3px; margin-top: 3px;
padding: 2px 5px; padding: 2px 5px;
font-size: 12px; font-size: 12px;
border: 1px solid rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 3px; border-radius: 3px;
&.review { &.review {
margin-left: 5px; margin-left: 5px;
} }


.detail { .detail {
font-size: 0.9rem;
font-size: .9rem;
margin-top: 5px; margin-top: 5px;
margin-left: 35px; margin-left: 35px;


} }


&.ui.basic.striped.table tbody tr:nth-child(2n) { &.ui.basic.striped.table tbody tr:nth-child(2n) {
background-color: rgba(0, 0, 0, 0.02) !important;
background-color: rgba(0, 0, 0, .02) !important;
} }
} }


} }


.clone.button:first-child { .clone.button:first-child {
border-radius: 0.28571429rem 0 0 0.28571429rem;
border-radius: .28571429rem 0 0 .28571429rem;
} }


.ui.action.small.input { .ui.action.small.input {
} }


&.active { &.active {
background: rgba(0, 0, 0, 0.05);
background: rgba(0, 0, 0, .05);
} }
} }
} }
left: auto !important; left: auto !important;


> .header { > .header {
margin: 0.75rem 0 0.5rem;
margin: .75rem 0 .5rem;
} }


> .item { > .item {
float: left; float: left;
padding: 0.5rem 0.5rem !important;
padding: .5rem .5rem !important;


img.emoji { img.emoji {
margin-right: 0; margin-right: 0;
display: flex; display: flex;


.ui.label { .ui.label {
padding: 0.4em;
padding: .4em;
padding-right: 1em; padding-right: 1em;
padding-left: 1em; padding-left: 1em;
border: 0; border: 0;


&.disabled { &.disabled {
cursor: default; cursor: default;
opacity: 0.5;
opacity: .5;
} }


> img { > img {


.select-reaction { .select-reaction {
float: left; float: left;
padding: 0.5em;
padding: .5em;
padding-left: 1em; padding-left: 1em;


&:not(.active) a { &:not(.active) a {


.segment.language-stats { .segment.language-stats {
padding: 0; padding: 0;
height: 0.6em;
height: .6em;
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
border: 0; border: 0;
padding: 0; padding: 0;
margin: 0; margin: 0;
height: 0.6em;
height: .6em;
} }
} }
} }


> .header, > .header,
.segment { .segment {
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15);
} }
} }




> .svg + .content { > .svg + .content {
display: table-cell; display: table-cell;
padding: 0 0 0 0.5em;
padding: 0 0 0 .5em;
vertical-align: top; vertical-align: top;
} }


display: table-cell; display: table-cell;


&.tiny { &.tiny {
height: 0.5em;
height: .5em;
} }
} }
} }
} }


.repo-buttons .disabled-repo-button .label { .repo-buttons .disabled-repo-button .label {
opacity: 0.5;
opacity: .5;
} }


.repo-buttons .disabled-repo-button a.button { .repo-buttons .disabled-repo-button a.button {
opacity: 0.5;
opacity: .5;
cursor: not-allowed; cursor: not-allowed;
} }


.repo-buttons .disabled-repo-button a.button:hover { .repo-buttons .disabled-repo-button a.button:hover {
background: none !important; background: none !important;
color: rgba(0, 0, 0, 0.6) !important;
box-shadow: 0 0 0 1px rgba(34, 36, 38, 0.15) inset !important;
color: rgba(0, 0, 0, .6) !important;
box-shadow: 0 0 0 1px rgba(34, 36, 38, .15) inset !important;
} }


.repo-buttons .ui.labeled.button > .label { .repo-buttons .ui.labeled.button > .label {
} }


.diff-file-box[data-folded="true"] .diff-file-header { .diff-file-box[data-folded="true"] .diff-file-header {
border-radius: 0.28571429rem !important;
border-radius: .28571429rem !important;
} }

+ 6
- 6
web_src/less/_review.less View File

float: left; float: left;
margin: 2px -10px 2px -20px; margin: 2px -10px 2px -20px;
opacity: 0; opacity: 0;
transition: transform 0.1s ease-in-out;
transition: transform .1s ease-in-out;
transform: scale(1, 1); transform: scale(1, 1);


&:hover { &:hover {
} }


&.header { &.header {
padding: 0.1rem 1rem;
padding: .1rem 1rem;
} }
} }


.right.menu.options .item { .right.menu.options .item {
padding: 0.85714286em 0.442857em;
padding: .85714286em .442857em;
cursor: pointer; cursor: pointer;
} }


display: inline-block; display: inline-block;
margin: 5px 0; margin: 5px 0;
font-size: 12px; font-size: 12px;
color: rgba(0, 0, 0, 0.6);
color: rgba(0, 0, 0, .6);
} }


.ui.right.floated { .ui.right.floated {
} }


button.comment-form-reply { button.comment-form-reply {
margin: 0.5em 0.5em 0.5em 4.5em;
margin: .5em .5em .5em 4.5em;
} }


form.comment-form-reply { form.comment-form-reply {


.file-comment { .file-comment {
font: 12px @monospaced-fonts, monospace; font: 12px @monospaced-fonts, monospace;
color: rgba(0, 0, 0, 0.87);
color: rgba(0, 0, 0, .87);
} }


.ui.fold-code { .ui.fold-code {

+ 1
- 1
web_src/less/_tribute.less View File



span.fullname { span.fullname {
font-weight: normal; font-weight: normal;
font-size: 0.8rem;
font-size: .8rem;
margin-left: 3px; margin-left: 3px;
} }
} }

+ 1
- 1
web_src/less/_user.less View File

.header { .header {
font-weight: 700; font-weight: 700;
font-size: 1.3rem; font-size: 1.3rem;
margin-top: -0.2rem;
margin-top: -.2rem;
line-height: 1.3rem; line-height: 1.3rem;
} }



+ 24
- 24
web_src/less/themes/theme-arc-green.less View File

.hljs { .hljs {
display: block; display: block;
overflow-x: auto; overflow-x: auto;
padding: 0.5em;
padding: .5em;
color: #bababa; color: #bababa;
} }




* { * {
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: #87ab63 rgba(255, 255, 255, 0.1);
scrollbar-color: #87ab63 rgba(255, 255, 255, .1);
} }


/* webkit scrollbars */ /* webkit scrollbars */


::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
border-radius: 0 !important; border-radius: 0 !important;
background: rgba(255, 255, 255, 0.1) !important;
background: rgba(255, 255, 255, .1) !important;
} }


::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
cursor: pointer !important; cursor: pointer !important;
border-radius: 5px !important; border-radius: 5px !important;
-webkit-transition: color 0.2s ease !important;
transition: color 0.2s ease !important;
-webkit-transition: color .2s ease !important;
transition: color .2s ease !important;
background: #87ab63 !important; background: #87ab63 !important;
} }


.ui.basic.buttons .button:focus, .ui.basic.buttons .button:focus,
.ui.basic.buttons .button:hover { .ui.basic.buttons .button:hover {
color: #dbdbdb; color: #dbdbdb;
box-shadow: 0 0 0 1px rgba(200, 200, 200, 0.35) inset;
background: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(200, 200, 200, .35) inset;
background: rgba(0, 0, 0, .5);
} }


.ui.menu .item { .ui.menu .item {
} }


.repository.wiki.new .ui.container form .ui.tabular.menu { .repository.wiki.new .ui.container form .ui.tabular.menu {
border-bottom: 1px solid rgba(187, 187, 187, 0.6);
border-bottom: 1px solid rgba(187, 187, 187, .6);


.active.item { .active.item {
border-top: 1px solid rgba(187, 187, 187, 0.6);
border-left: 1px solid rgba(187, 187, 187, 0.6);
border-right: 1px solid rgba(187, 187, 187, 0.6);
border-top: 1px solid rgba(187, 187, 187, .6);
border-left: 1px solid rgba(187, 187, 187, .6);
border-right: 1px solid rgba(187, 187, 187, .6);
&:hover { &:hover {
background: #4b5162; background: #4b5162;
} }


.repository.file.editor.edit, .repository.file.editor.edit,
.repository.wiki.new .CodeMirror { .repository.wiki.new .CodeMirror {
border-right: 1px solid rgba(187, 187, 187, 0.6);
border-left: 1px solid rgba(187, 187, 187, 0.6);
border-bottom: 1px solid rgba(187, 187, 187, 0.6);
border-right: 1px solid rgba(187, 187, 187, .6);
border-left: 1px solid rgba(187, 187, 187, .6);
border-bottom: 1px solid rgba(187, 187, 187, .6);


.editor-preview, .editor-preview,
.editor-preview-side, .editor-preview-side,
.ui.selection.active.dropdown, .ui.selection.active.dropdown,
.ui.selection.active.dropdown .menu { .ui.selection.active.dropdown .menu {
border-color: #4e5361; border-color: #4e5361;
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, .15);
} }


.ui.selection.active.dropdown:hover, .ui.selection.active.dropdown:hover,
.ui.selection.active.dropdown:hover .menu { .ui.selection.active.dropdown:hover .menu {
border-color: #4e5361; border-color: #4e5361;
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);
box-shadow: 0 2px 3px 0 rgba(34, 36, 38, .15);
} }


.ui.selection.dropdown { .ui.selection.dropdown {
} }


.ui.red.message { .ui.red.message {
background-color: rgba(80, 23, 17, 0.6);
background-color: rgba(80, 23, 17, .6);
color: #f9cbcb; color: #f9cbcb;
box-shadow: 0 0 0 1px rgba(121, 71, 66, 0.5) inset, 0 0 0 0 transparent;
box-shadow: 0 0 0 1px rgba(121, 71, 66, .5) inset, 0 0 0 0 transparent;
} }


.ui.red.button, .ui.red.button,
.ui.checkbox .box:active::before, .ui.checkbox .box:active::before,
.ui.checkbox label:active::before { .ui.checkbox label:active::before {
background: #304251; background: #304251;
border-color: rgba(34, 36, 38, 0.35);
border-color: rgba(34, 36, 38, .35);
} }


.ui.checkbox input:focus ~ .box:before, .ui.checkbox input:focus ~ .box:before,
} }


.ui.negative.message { .ui.negative.message {
background-color: rgba(80, 23, 17, 0.6);
background-color: rgba(80, 23, 17, .6);
color: #f9cbcb; color: #f9cbcb;
box-shadow: 0 0 0 1px rgba(121, 71, 66, 0.5) inset, 0 0 0 0 transparent;
box-shadow: 0 0 0 1px rgba(121, 71, 66, .5) inset, 0 0 0 0 transparent;
} }


.hljs-tag, .hljs-tag,
background-color: #2a2e3a !important; background-color: #2a2e3a !important;
} }
td.blob-excerpt { td.blob-excerpt {
background-color: rgba(0, 0, 0, 0.15);
background-color: rgba(0, 0, 0, .15);
} }


.code-view .active { .code-view .active {
::before { ::before {
content: "\f0dd"; content: "\f0dd";
font: normal normal normal 14px/1 FontAwesome, serif; font: normal normal normal 14px/1 FontAwesome, serif;
font-size: 0.7em;
font-size: .7em;
} }
} }




td.xdsoft_other_month, td.xdsoft_other_month,
td.xdsoft_disabled { td.xdsoft_disabled {
opacity: 0.8;
opacity: .8;
background: #a0cc75; background: #a0cc75;
color: #000000; color: #000000;
} }

Loading…
Cancel
Save