Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 18:56:11 +01:00
forgejo/public/less/_repository.less

1078 lines
17 KiB
Plaintext
Raw Normal View History

2015-07-23 22:50:05 +02:00
.repository {
@mega-octicon-width: 30px;
padding-top: 15px;
2015-08-20 14:18:49 +02:00
padding-bottom: @footer-margin * 2;
2015-08-12 12:12:06 +02:00
2015-07-23 22:50:05 +02:00
.head {
2015-08-12 13:08:10 +02:00
.column {
padding-top: 5px!important;
padding-bottom: 5px!important;
}
2015-08-12 12:12:06 +02:00
.ui.compact.menu {
margin-left: 1rem;
2015-07-23 22:50:05 +02:00
}
2015-08-12 12:12:06 +02:00
.ui.header {
margin-top: 0;
2015-07-23 22:50:05 +02:00
}
.mega-octicon {
width: @mega-octicon-width;
2015-08-09 16:45:38 +02:00
font-size: 30px;
2015-07-23 22:50:05 +02:00
}
2015-08-12 13:08:10 +02:00
.ui.huge.breadcrumb {
2015-07-23 22:50:05 +02:00
font-weight: 300;
2015-08-12 13:08:10 +02:00
font-size: 1.7rem;
2015-07-23 22:50:05 +02:00
}
.fork-flag {
margin-left: @mega-octicon-width + 8px;
display: block;
2015-09-03 00:32:23 +02:00
font-size: 12px;
2015-07-23 22:50:05 +02:00
line-height: 10px;
white-space: nowrap;
}
}
2015-08-12 12:12:06 +02:00
2015-08-10 12:57:57 +02:00
.metas {
.menu {
max-height: 300px;
overflow-x: auto;
}
.ui.list {
.hide {
display: none!important;
}
.label.color {
padding: 0 8px;
margin-right: 5px;
}
a {
padding-top: 5px;
padding-right: 10px;
.text {
color: #444;
&:hover {
color: #000;
}
2015-08-10 10:52:08 +02:00
}
}
}
}
2015-07-24 20:52:25 +02:00
.filter.menu {
.label.color {
2015-08-09 16:45:38 +02:00
margin-left: 15px;
2015-07-24 20:52:25 +02:00
padding: 0 8px;
}
.octicon {
float: left;
margin-left: -5px;
margin-right: -7px;
}
.menu {
max-height: 300px;
overflow-x: auto;
2015-07-23 22:50:05 +02:00
right: 0!important;
left: auto!important;
2015-08-09 16:45:38 +02:00
}
2015-08-15 06:07:08 +02:00
.dropdown.item {
margin: 1px;
padding-right: 0;
}
2015-07-23 22:50:05 +02:00
}
&.file.list {
#repo-desc {
font-size: 1.2em;
}
.choose.reference {
.header .icon {
font-size: 1.4em;
}
}
.head.meta {
padding: 0;
li {
list-style: none;
display: inline-block;
.ui.breadcrumb {
margin-top: -5px;
span,
a {
font-size: 16px;
}
}
}
}
.clone.input {
margin-top: -8px;
width: 100%;
input {
border-radius: 0;
padding: 5px 10px;
}
.clone.button {
font-size: 13px;
padding: 0 5px;
&:first-child {
border-radius: .28571429rem 0 0 .28571429rem;
}
}
.icon.button {
padding: 0 10px;
}
.dropdown .menu {
right: 0!important;
left: auto!important;
}
}
#repo-files-table {
.table.list {
width: 80% !important;
}
thead {
th {
padding-top: 8px;
padding-bottom: 5px;
font-weight: normal;
#last-commit-message {
margin-left: 5px;
margin-bottom: -4px;
width: 400px;
}
.age {
margin-top: 2px;
}
}
.ui.avatar {
margin-bottom: 5px;
}
}
tbody {
.icon {
margin-left: 5px;
}
.name {
max-width: 120px;
}
.message {
max-width: 300px;
}
.age {
min-width: 150px;
}
.text.truncate {
margin-bottom: -5px;
max-width: 100%;
}
}
td {
padding-top: 8px;
padding-bottom: 8px;
}
tr:hover {
background-color: #ffffEE;
}
}
#file-content {
.header {
.icon {
font-size: 1em;
margin-top: -2px;
}
}
.view-raw {
* {
width: 100%;
}
img {
padding: 5px 5px 0 5px;
}
}
.code-view {
* {
font-size: 13px;
font-family: monospace;
line-height: 20px;
}
table {
width: 100%;
}
.lines-num {
vertical-align: top;
text-align: right;
color: #999;
background: #f5f5f5;
width: 1%;
span {
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
line-height: 20px;
padding: 0 10px;
cursor: pointer;
display: block;
}
}
.lines-num,
.lines-code {
padding: 0;
pre,
ol,
.hljs {
background-color: white;
margin: 0;
padding: 0 !important;
li {
padding-left: 5px;
&.active {
background: #ffffdd;
}
}
}
}
}
}
.sidebar {
padding-left: 0;
.octicon {
width: 16px;
}
}
}
2015-08-29 21:21:59 +02:00
&.options {
#interval {
width: 100px!important;
min-width: 100px;
}
.danger {
.item {
padding: 20px 15px;
}
.ui.divider {
margin: 0;
}
}
}
2015-08-03 11:42:09 +02:00
@comment-avatar-width: 3em;
&.new.issue {
.comment.form {
2015-08-12 12:44:09 +02:00
.comment {
.avatar {
width: @comment-avatar-width;
}
}
.content {
margin-left: 4em;
.markdown {
font-size: 14px;
}
}
.metas {
min-width: 220px;
2015-08-10 10:52:08 +02:00
.filter.menu {
max-height: 300px;
overflow-x: auto;
}
}
2015-08-12 12:44:09 +02:00
}
}
&.view.issue {
.title {
padding-bottom: 0!important;
h1 {
font-weight: 300;
font-size: 3rem;
margin-bottom: 5px;
2015-08-19 17:14:57 +02:00
.ui.input {
font-size: 0.5em;
vertical-align: top;
width: 50%;
min-width: 600px;
input {
font-size: 1.5em;
padding: 6px 10px;
}
}
}
.index {
font-weight: 300;
color: #aaa;
letter-spacing: -1px;
}
.label {
margin-right: 10px;
}
2015-08-19 17:14:57 +02:00
.edit-zone {
margin-top: 10px;
}
}
2015-09-02 01:26:39 +02:00
.pull-desc {
code {
color: #0166E6;
}
}
2015-09-02 01:07:02 +02:00
.pull {
2015-09-02 01:26:39 +02:00
&.tabular.menu {
margin-bottom: 10px;
.octicon {
margin-right: 5px;
2015-09-02 01:07:02 +02:00
}
2015-09-02 01:26:39 +02:00
}
&.tab.segment {
border: none;
padding: 0;
padding-top: 10px;
box-shadow: none;
background-color: inherit;
}
2015-09-02 10:08:05 +02:00
.merge.box {
.avatar {
margin-left: 10px;
margin-top: 10px;
}
}
2015-09-02 01:07:02 +02:00
}
.comment-list {
2015-08-13 17:21:43 +02:00
&:before {
display: block;
content: "";
position: absolute;
margin-top: 12px;
margin-bottom: 14px;
top: 0;
bottom: 0;
left: 96px;
width: 2px;
background-color: #f3f3f3;
z-index: -1;
}
.comment {
.avatar {
width: @comment-avatar-width;
}
.tag {
color: #767676;
margin-top: 3px;
padding: 2px 5px;
font-size: 12px;
border: 1px solid rgba(0,0,0,0.1);
border-radius: 3px;
}
2015-08-19 17:14:57 +02:00
.actions {
.item {
float: left;
}
a.item {
margin-top: 6px;
margin-left: 10px;
}
}
.content {
margin-left: 4em;
.header {
font-weight: normal;
padding: auto 15px;
color: #767676;
background-color: #f7f7f7;
border-bottom: 1px solid #eee;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
.text {
max-width: 78%;
padding-top: 10px;
padding-bottom: 10px;
}
}
.markdown {
font-size: 14px;
}
2015-08-12 12:44:09 +02:00
.no-content {
color: #767676;
font-style: italic;
}
> .bottom.segment {
background: #f3f4f5;
.ui.image {
max-height: 150px;
}
}
}
2015-08-12 12:44:09 +02:00
.ui.form {
.field:first-child {
clear: none;
}
.tab.segment {
border: none;
padding: 0;
padding-top: 10px;
}
textarea {
height: 200px;
}
}
2015-08-19 22:31:28 +02:00
.edit.buttons {
margin-top: 10px;
}
}
2015-08-13 17:21:43 +02:00
.event {
position: relative;
margin: 15px 0 15px 79px;
padding-left: 25px;
.octicon {
width: 30px;
float: left;
margin-left: -36px;
text-align: center;
&.octicon-circle-slash {
2015-08-15 20:09:37 +02:00
margin-top: 5px;
font-size: 20px;
2015-08-13 17:21:43 +02:00
color: #bd2c00;
}
&.octicon-primitive-dot {
font-size: 30px;
2015-08-13 17:21:43 +02:00
color: #6cc644;
}
&.octicon-bookmark {
margin-top: 3px;
font-size: 25px;
}
}
.detail {
font-size: 0.9rem;
margin-top: 5px;
margin-left: 35px;
.octicon {
&.octicon-git-commit {
margin-top: 2px;
}
}
2015-08-13 17:21:43 +02:00
}
}
}
.ui.segment.metas {
margin-top: -3px;
}
}
.comment.form {
.ui.comments {
margin-top: -12px;
2015-08-12 12:44:09 +02:00
max-width: 100%;
}
.content {
.field:first-child {
clear: none;
}
.tab.segment {
border: none;
padding: 0;
padding-top: 10px;
}
textarea {
height: 200px;
}
}
}
2015-08-03 11:42:09 +02:00
.label.list {
2015-08-03 11:42:09 +02:00
list-style: none;
2015-08-09 16:45:38 +02:00
padding-top: 15px;
.item {
padding-top: 10px;
padding-bottom: 10px;
border-bottom: 1px dashed #AAA;
a {
font-size: 15px;
padding-top: 5px;
padding-right: 10px;
color: #666;
&:hover {
color: #000;
}
&.open-issues {
margin-right: 30px;
}
}
}
}
2015-08-03 11:42:09 +02:00
.milestone.list {
list-style: none;
2015-08-09 16:45:38 +02:00
padding-top: 15px;
2015-08-04 16:24:04 +02:00
> .item {
2015-08-03 11:42:09 +02:00
padding-top: 10px;
padding-bottom: 10px;
border-bottom: 1px dashed #AAA;
> a {
padding-top: 5px;
padding-right: 10px;
color: #000;
&:hover {
color: #4078c0;
}
}
.ui.progress {
width: 40%;
padding: 0;
border: 0;
margin: 0;
.bar {
height: 20px;
}
}
.meta {
color: #999;
padding-top: 5px;
.issue-stats .octicon{
padding-left: 5px;
}
2015-08-05 09:24:26 +02:00
.overdue {
color: red;
}
2015-08-03 11:42:09 +02:00
}
.operate {
margin-top: -15px;
> a {
font-size: 15px;
padding-top: 5px;
padding-right: 10px;
color: #666;
&:hover {
color: #000;
}
}
}
.content {
padding-top: 10px;
}
}
}
2015-08-05 09:24:26 +02:00
&.new.milestone {
textarea {
height: 200px;
}
2015-08-09 18:23:20 +02:00
#deadline {
width: 150px;
2015-08-06 16:48:11 +02:00
}
}
2015-08-08 16:43:14 +02:00
&.compare.pull {
.choose.branch {
.octicon {
padding-right: 10px;
}
}
}
.filter.dropdown .menu {
margin-top: 1px!important;
}
2015-08-20 14:18:49 +02:00
&.commits {
.header {
.ui.right {
.search {
input {
font-weight: normal;
padding: 5px 10px;
}
}
}
}
}
.commits.table {
font-size: 13px;
th, td {
&:first-child {
padding-left: 15px;
}
}
td {
line-height: 15px;
}
.author {
min-width: 180px;
}
.message span {
max-width: 500px;
}
.date {
width: 120px;
}
}
2015-08-20 18:18:30 +02:00
.sha.label {
font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
font-size: 14px;
padding: 6px 10px 4px 10px;
font-weight: normal;
}
.diff-detail-box {
margin: 15px 0;
line-height: 30px;
ol {
clear: both;
padding-left: 0;
margin-top: 5px;
margin-bottom: 28px;
li {
list-style: none;
padding-bottom: 4px;
margin-bottom: 4px;
border-bottom: 1px dashed #DDD;
padding-left: 6px;
}
}
span.status{
display: inline-block;
width: 12px;
height: 12px;
margin-right: 8px;
vertical-align: middle;
&.modify {
background-color: #f0db88;
}
&.add {
background-color: #b4e2b4;
}
&.del {
background-color: #e9aeae;
}
&.rename {
background-color: #dad8ff;
}
}
}
.diff-box {
.count {
margin-right: 12px;
.bar {
background-color: #e75316;
height: 12px;
width: 40px;
display: inline-block;
margin: 2px 4px 0 4px;
vertical-align: text-top;
.add {
background-color: #77c64a;
height: 12px;
}
}
}
.file {
color: #888;
}
}
.diff-file-box {
.header {
border-bottom: 1px solid #d4d4d5!important;
}
.file-body.file-code {
.lines-num {
text-align: right;
color: #999;
background: #fafafa;
width: 1%;
}
.lines-num-old {
border-right: 1px solid #DDD;
}
}
.code-diff {
font-size: 13px;
td {
padding: 0;
border-top: none;
}
pre {
margin: 0;
}
.lines-num {
border-right: 1px solid #d4d4d5;
padding: 0 5px;
}
tbody {
tr {
&.tag-code {
td, pre {
background-color: #E0E0E0 !important;
border-color: #ADADAD!important;
}
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}
// &.same-code {
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
// }
&.del-code {
td, pre {
background-color: #ffe2dd !important;
border-color: #e9aeae !important;
}
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}
&.add-code {
td, pre {
background-color: #d1ffd6 !important;
border-color: #b4e2b4 !important;
}
// td.selected-line, td.selected-line pre {
// background-color: #ffffdd !important;
// }
}
&:hover {
td {
background-color: #FFF8D2 !important;
border-color: #F0DB88 !important;
}
pre {
background-color: transparent !important;
}
}
}
}
2015-11-03 15:52:17 +01:00
}
&.file-content {
img {
max-width: 100%;
padding: 5px 5px 0 5px;
}
2015-08-20 18:18:30 +02:00
}
}
2015-08-20 18:37:56 +02:00
.code-view {
overflow: auto;
overflow-x: auto;
overflow-y: hidden;
}
2015-10-03 01:58:36 +02:00
&.quickstart {
.guide {
.item {
padding: 1em;
small {
font-weight: normal;
}
}
.clone.button:first-child {
border-radius: .28571429rem 0 0 .28571429rem;
}
2015-10-08 05:11:32 +02:00
.ui.action.small.input {
width: 100%;
}
2015-10-03 01:58:36 +02:00
#repo-clone-url {
border-radius: 0;
padding: 5px 10px;
font-size: 1.2em;
}
}
}
2015-11-16 05:52:46 +01:00
&.release {
#release-list {
border-top: 1px solid #DDD;
margin-top: 20px;
padding-top: 15px;
>li {
list-style: none;
.meta,
.detail {
padding-top: 30px;
padding-bottom: 40px;
}
.meta {
text-align: right;
position: relative;
.tag:not(.icon) {
display: block;
margin-top: 15px;
}
.commit {
display: block;
margin-top: 10px;
}
}
.detail {
border-left: 1px solid #DDD;
.author {
img {
margin-bottom: -3px;
}
}
.download {
margin-top: 20px;
>a {
.octicon {
margin-left: 5px;
margin-right: 5px;
}
}
.list {
padding-left: 0;
border-top: 1px solid #eee;
li {
list-style: none;
display: block;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
}
}
}
.dot {
width: 9px;
height: 9px;
background-color: #ccc;
z-index: 999;
position: absolute;
display: block;
left: -5px;
top: 40px;
border-radius: 6px;
border: 1px solid #FFF;
}
}
}
}
}
&.new.release {
.target {
min-width: 500px;
.at {
margin-left: -5px;
margin-right: 5px;
}
.dropdown.icon {
margin: 0;
padding-top: 3px;
}
.selection.dropdown {
padding-top: 10px;
padding-bottom: 10px;
}
}
.prerelease.field {
margin-bottom: 0;
}
}
2015-08-06 16:48:11 +02:00
}
2015-10-03 01:58:36 +02:00
// End of .repository
2015-08-06 16:48:11 +02:00
2015-08-25 16:58:34 +02:00
.issue.list {
list-style: none;
padding-top: 15px;
>.item {
padding-top: 15px;
padding-bottom: 10px;
border-bottom: 1px dashed #AAA;
.title {
color: #444;
font-size: 15px;
font-weight: bold;
margin: 0 6px;
&:hover {
color: #000;
}
}
.comment {
padding-right: 10px;
color: #666;
}
.desc {
padding-top: 5px;
color: #999;
a.milestone {
padding-left: 5px;
color: #999!important;
&:hover {
color: #000!important;
}
}
.assignee {
margin-top: -5px;
margin-right: 5px;
}
}
}
}
.page.buttons {
padding-top: 15px;
}
2015-08-12 12:44:09 +02:00
.ui.comments {
.dropzone {
width: 100%;
margin-bottom: 10px;
border: 2px dashed #0087F7;
box-shadow: none!important;
.dz-error-message {
top: 140px;
}
}
}
2015-08-15 14:55:03 +02:00
.settings {
.content {
margin-top: 2px;
.header,
.segment {
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
}
2015-08-06 16:48:11 +02:00
}
2015-08-15 14:55:03 +02:00
.key.list {
.item:not(:first-child) {
border-top: 1px solid #eaeaea;
}
.ssh-key-state-indicator {
float: left;
color: gray;
padding-left: 10px;
padding-top: 10px;
&.active {
color: #6cc644;
}
}
.meta {
padding-top: 5px;
}
.print {
color: #767676;
}
.activity {
color: #666;
}
2015-08-06 16:48:11 +02:00
}
2015-08-26 12:03:30 +02:00
.hook.list {
2015-08-27 17:06:14 +02:00
> .item:not(:first-child) {
2015-08-26 12:03:30 +02:00
border-top: 1px solid #eaeaea;
}
.item {
padding: 10px 20px;
2015-08-26 15:45:51 +02:00
.octicon,
.fa {
width: 20px;
2015-08-27 17:06:14 +02:00
text-align: center;
}
}
}
.hook.history.list {
.item {
padding-left: 13px;
.meta {
.ui.right {
margin-top: 5px;
.time {
font-size: 12px;
}
}
}
.info {
margin-top: 10px;
.tabular.menu {
.item {
font-weight: 500;
}
}
.tab.segment {
border: none;
padding: 0;
padding-top: 10px;
box-shadow: none;
2015-08-27 17:58:50 +02:00
> * {
2015-08-27 17:06:14 +02:00
color: #666;
}
pre {
word-wrap: break-word;
2015-08-27 17:58:50 +02:00
.hljs {
padding: 0;
background-color: inherit;
}
2015-08-27 17:06:14 +02:00
}
}
2015-08-26 12:03:30 +02:00
}
}
}
}
2015-08-09 18:23:20 +02:00
.ui.vertical.menu {
.header.item {
font-size: 1.1em;
background: #f0f0f0;
}
2015-08-09 18:23:20 +02:00
}
2015-08-09 16:45:38 +02:00
.edit-label.modal,
.new-label.segment {
.form {
.column {
padding-right: 0;
}
.buttons {
margin-left: auto;
padding-top: 15px;
}
.color.picker.column {
width: auto;
.color-picker {
height: 35px;
width: auto;
padding-left: 30px;
}
}
.minicolors-swatch.minicolors-sprite {
top: 10px;
left: 10px;
width: 15px;
height: 15px;
}
2015-08-09 16:45:38 +02:00
.precolors {
padding-left: 0;
padding-right: 0;
margin: 3px 10px auto 10px;
width: 120px;
.color {
float: left;
width: 15px;
height: 15px;
}
}
}
2015-08-29 21:21:59 +02:00
}
#transfer-repo-modal,
#delete-repo-modal {
.ui.message {
width: 100%!important;
}
2015-07-23 22:50:05 +02:00
}