summaryrefslogtreecommitdiffstats
path: root/web_src/css/shared/issuelist.css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-03-15 03:20:19 +0100
committerGitHub <noreply@github.com>2023-03-14 22:20:19 -0400
commit202803fc69d21763a06d8d0f5a4c46509c18f6f1 (patch)
tree4e273829061a640ceb6b3a33e563b3e8d842a8ae /web_src/css/shared/issuelist.css
parentbf730528cadc4727eab8844934b6a0716d327243 (diff)
downloadgitea-202803fc69d21763a06d8d0f5a4c46509c18f6f1.tar.gz
gitea-202803fc69d21763a06d8d0f5a4c46509c18f6f1.zip
Replace Less with CSS (#23481)
Ran most of the Less files through the Less compiler and Prettier and then followed up with a round of manual fixes. The Less compiler had unfortunately stripped all `//` style comments that I had to restore (It did preserve `/* */` comments). Other fixes include duplicate selector removal which were revealed after the transpilation and which weren't caught by stylelint before but now are. Fixes: https://github.com/go-gitea/gitea/issues/15565
Diffstat (limited to 'web_src/css/shared/issuelist.css')
-rw-r--r--web_src/css/shared/issuelist.css166
1 files changed, 166 insertions, 0 deletions
diff --git a/web_src/css/shared/issuelist.css b/web_src/css/shared/issuelist.css
new file mode 100644
index 0000000000..6e2cc737e7
--- /dev/null
+++ b/web_src/css/shared/issuelist.css
@@ -0,0 +1,166 @@
+.issue.list {
+ list-style: none;
+ margin-top: 1rem;
+}
+
+.issue.list a:not(.label):hover {
+ color: var(--color-primary) !important;
+}
+
+.issue.list > .item .issue-checkbox {
+ margin-top: 1px;
+}
+
+.issue.list > .item .issue-item-icon svg {
+ margin-right: 0.75rem;
+ margin-top: 1px;
+}
+
+.issue.list > .item .issue-item-icons-right > * + * {
+ margin-left: 0.5rem;
+}
+
+.issue.list > .item .issue-item-main {
+ width: 100%;
+}
+
+.issue.list > .item .action-item-main {
+ width: 80%;
+}
+
+.issue.list > .item .issue-item-right {
+ width: 15%;
+}
+
+.issue.list > .item .issue-item-top-row {
+ max-width: 100%;
+ color: var(--color-text);
+ font-size: 16px;
+ min-width: 0;
+ font-weight: 600;
+}
+
+.issue.list > .item .issue-item-top-row a.index {
+ max-width: fit-content;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+ word-break: break-all;
+}
+
+.issue.list > .item .labels-list {
+ position: relative;
+ top: -1.5px;
+}
+
+.issue.list > .item .issue-item-bottom-row {
+ font-size: 13px;
+}
+
+.issue.list > .item .title {
+ color: var(--color-text);
+ word-break: break-word;
+}
+
+.issue.list > .item .issue-item-icon-right {
+ min-width: 2rem;
+}
+
+.issue.list > .item .assignee {
+ position: relative;
+ top: -2px;
+}
+
+.issue.list > .item .assignee img {
+ width: 20px;
+ height: 20px;
+ margin-right: 2px;
+}
+
+.issue.list > .item .desc {
+ color: var(--color-text-light-2);
+}
+
+.issue.list > .item .desc a {
+ color: inherit;
+}
+
+.issue.list > .item .desc .time-since,
+.issue.list > .item .desc a {
+ margin-left: 0.25rem;
+ margin-right: 0.25rem;
+}
+
+.issue.list > .item .desc .waiting,
+.issue.list > .item .desc .approvals,
+.issue.list > .item .desc .rejects {
+ padding-left: 5px;
+}
+
+.issue.list > .item .desc .checklist {
+ padding-left: 5px;
+}
+
+.issue.list > .item .desc .checklist progress {
+ margin-left: 2px;
+ width: 80px;
+ height: 6px;
+ display: inline-block;
+ border-radius: 3px;
+ vertical-align: 2px !important;
+}
+
+.issue.list > .item .desc .checklist progress::-webkit-progress-value {
+ background-color: var(--color-secondary-dark-4);
+}
+
+.issue.list > .item .desc .checklist progress::-moz-progress-bar {
+ background-color: var(--color-secondary-dark-4);
+}
+
+.issue.list > .item .desc .conflicting {
+ padding-left: 5px;
+}
+
+.issue.list > .item .desc .due-date {
+ padding-left: 5px;
+}
+
+.issue.list > .item .desc a.milestone,
+.issue.list > .item .desc a.project {
+ margin-left: 5px;
+}
+
+.issue.list > .item .desc a.ref {
+ margin-left: 8px;
+}
+
+.issue.list > .item .desc a.ref span {
+ margin-right: -4px;
+}
+
+.issue.list > .item .desc .overdue {
+ color: var(--color-red);
+}
+
+.issue.list .branches {
+ display: inline-flex;
+ padding: 0 4px;
+}
+
+.issue.list .branches .branch {
+ background-color: var(--color-secondary);
+ border-radius: 3px;
+}
+
+.issue.list .branches .truncated-name {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 10em;
+}
+
+.issue.list > .item + .item {
+ border-top: 1px solid var(--color-secondary);
+}