gitea/public/css/gogs.css

999 lines
17 KiB
CSS
Executable File

/*!
* Gogs - Go Git Service (http://gogits.org)
* Copyright 2014 Gogs.
* Licensed under MIT (https://github.com/gogits/gogs/blob/master/LICENSE)
*/
body {
background: #F6F6F6;
}
html, body {
height: 100%;
font-family: Helvetica, Arial, sans-serif;
}
/* override bs3 */
.tooltip-inner {
border-radius: 3px;
background: #333;
border: none;
}
.tooltip-arrow {
border-bottom-color: #333 !important;
}
.tooltip-arrow:before {
border-bottom-color: transparent !important;
}
.fa {
margin: 0 .5em;
}
.fa-m {
margin: 0;
}
.list-group .list-group-item {
background-color: transparent;
}
.btn {
cursor: pointer;
}
.panel-default .panel-heading {
background-color: #FAFAFA;
border-bottom: 1px solid #DDD;
font-weight: bold;
}
/* gogits nav header */
.gogs-masthead {
background-color: #428bca;
box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
margin: 0;
}
/* gogits nav item link */
.gogs-nav-item {
position: relative;
display: inline-block;
padding: 10px;
font-weight: bold;
color: #EEE;
font-size: 100%;
height: 46px;
}
#gogs-nav-logo {
padding-left: 0;
padding-right: 0;
margin-right: 10px;
}
.gogs-nav-item:hover,
.gogs-nav-item:focus {
color: #fff;
text-decoration: none;
}
.gogs-nav-item.navbar-right {
margin-top: 3px;
}
.gogs-nav-item.navbar-btn {
cursor: pointer;
margin-top: 8px;
padding: 5px 15px;
height: 30px;
}
.gogs-nav-item.navbar-right .fa {
margin: 0;
}
/* gogits nav item active status */
.gogs-nav .active {
color: #fff;
}
.gogs-nav .active:after {
position: absolute;
bottom: -1px;
left: 50%;
width: 0;
height: 0;
margin-left: -5px;
vertical-align: middle;
content: " ";
border-right: 5px solid transparent;
border-bottom: 5px solid;
border-left: 5px solid transparent;
}
#gogs-nav-logo:after {
bottom: -4px !important;
}
#gogs-nav-avatar:after {
bottom: -4px !important;
}
.gogs-nav .tooltip {
border: none;
}
/* gogits logo */
#gogs-nav-avatar {
margin-top: 0;
}
#gogs-logo, #gogs-nav-avatar img {
width: 28px;
height: 28px;
}
#gogs-nav-out {
margin-top: 10px;
padding: 5px 0;
margin-left: 10px;
height: 28px;
float: right;
}
#gogs-nav-signin, #gogs-nav-signup {
float: right;
margin-left: 1em;
}
#gogs-nav-out .fa {
vertical-align: -10%;
margin: 0 .5em;
}
/* gogits body */
#gogs-body {
padding-bottom: 60px;
margin-top: 30px;
}
#gogs-body .btn-default {
background-color: #FFF;
background-image: linear-gradient(to bottom, #FFF 0, #FAFAFA 100%);
}
#gogs-body-nav {
background-color: #FFF;
border-bottom: 1px solid #DDD;
height: 66px
}
#gogs-body-nav .nav {
font-size: 14px;
margin-top: 12px;
}
#gogs-body-nav .nav-pills li a {
color: #444;
}
#gogs-body-nav .nav-pills li.active a {
font-weight: bold;
border-bottom: 2px solid #d26911;
background-color: transparent;
color: #444;
}
#gogs-body-nav .nav-pills li:hover a {
background-color: transparent;
text-decoration: underline;
}
/* gogits login card */
.gogs-card {
margin: auto;
padding: 30px;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.gogs-card h3 {
margin-top: 0;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #ccc;
}
#gogs-login-card {
width: 600px;
}
#gogs-login-card .form-control {
padding: 6px 12px;
box-sizing: content-box;
}
#gogs-login-card .control-label {
height: 44px;
line-height: 30px;
}
.gogs-card .btn {
cursor: pointer;
margin-right: 1.2em;
}
#gogs-social-login {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #ccc;
}
#gogs-social-login .btn {
float: none;
margin: auto;
}
/* gogs-user-profile */
#gogs-user-avatar {
width: 200px;
height: 200px;
border-radius: 6px;
}
#gogs-user-avatar-commit {
width: 16px;
height: 16px;
border-radius: 2px;
}
#gogs-user-name {
margin-top: 20px;
font-size: 1.6em;
font-weight: bold;
margin-bottom: 20px;
}
#gogs-user-profile .profile-info .list-group-item {
background-color: transparent;
padding-top: 18px;
color: #666;
}
#gogs-user-profile .profile-info .list-group-item a {
margin: 0;
padding: 0;
display: inline;
color: #0093c4;
}
#gogs-user-profile .profile-info .list-group {
border-top: 1px solid #ccc;
padding-bottom: 18px;
border-bottom: 1px solid #ccc;
padding-left: 18px;
padding-right: 18px;
}
#gogs-user-activity .tab-pane {
padding: 20px;
}
#gogs-user-act-tabs li.active a {
border-bottom-color: #ddd;
}
/* gogits repo create */
#gogs-repo-create {
width: 800px;
}
#gogs-repo-create textarea[name=desc] {
height: 8em;
}
/* gogits user setting */
#gogs-user-setting-nav > h4, #gogs-user-setting-container > h4, #gogs-user-setting-container > div > h4,
#gogs-ssh-keys > h4, #gogs-user-delete > h4, #gogs-repo-setting-container .tab-pane > h4 {
padding-bottom: 18px;
margin-bottom: 18px;
border-bottom: 1px solid #CCC;
}
#gogs-user-setting-nav .list-group .list-group-item a {
margin-left: 0;
padding: .6em;
font-size: 14px;
color: #3B73AF;
}
#gogs-user-setting-nav .list-group .list-group-item {
background-color: transparent;
}
#gogs-user-setting-nav .list-group .list-group-item-success a {
font-weight: bold;
color: #444;
}
.gogs-admin-nav {
background-color: #FFF;
padding-top: 10px;
padding-left: 0;
padding-right: 0;
border: 1px solid #D8D8D8;
}
.gogs-admin-nav li {
margin-bottom: 8px;
border-left: 4px solid transparent;
}
.gogs-admin-nav li:hover {
border-left-color: #EEE;
}
.gogs-admin-nav li.active:hover {
border-left: 4px solid #DD4B39;
}
#gogs-repo-setting-container .form-horizontal label {
line-height: 30px;
}
/* gogits user ssh keys */
#gogs-ssh-keys .list-group-item {
padding: 15px 0;
border-bottom: 1px solid #DDD;
}
#gogs-ssh-keys .list-group-item .delete {
margin: -5px 50px 0;
}
#gogs-ssh-keys .list-group-item:after {
clear: both;
}
#gogs-ssh-keys .name {
font-size: 14px;
font-weight: bold;
}
#gogs-ssh-keys .print {
padding-left: 1em;
color: #888;
}
#gogs-ssh-add {
display: inline-block;
color: white;
cursor: pointer;
margin-left: 0;
border-radius: 3px;
}
#gogs-ssh-form textarea {
height: 16em;
}
/* #gogs-feed */
#gogs-feed-right .repo-panel .panel-heading .btn {
margin-top: -4px;
}
#gogs-feed-right .repo-panel .panel-body {
padding: 0;
}
#gogs-feed-right .repo-panel .list-group {
margin-bottom: 0;
}
#gogs-feed-right .repo-panel .list-group-item a {
display: block;
margin-left: 0;
background-color: transparent;
padding-left: 0;
font-weight: bold;
}
#gogs-feed-right .repo-panel .list-group-item .fa {
color: #666;
}
#gogs-feed-right .repo-panel .list-group-item {
font-size: 14px;
line-height: 32px;
border-bottom: 1px solid #DDD;
padding-left: 15px;
clear: both;
}
#gogs-feed-right .repo-panel .list-group-item:last-child {
border-bottom: none;
}
#gogs-feed-right .repo-panel .list-group-item:hover {
background-color: #eafffd;
background-color: rgba(65, 131, 196, 0.1);
}
#gogs-feed-right .repo-panel span.stars {
color: #666;
margin-right: 1em;
}
/* gogits repo single page */
#gogs-body-nav.gogs-repo-nav {
padding-top: 16px;
padding-bottom: 30px;
height: auto;
}
.gogs-repo-nav .name {
margin-top: 15px;
}
.gogs-repo-nav .desc {
color: #888;
margin-bottom: 0;
}
.gogs-repo-nav h3 .fa {
color: #BBB;
margin-left: 0;
}
.gogs-repo-nav .actions {
padding-top: 20px;
}
.gogs-repo-nav .btn-default {
font-family: Tahoma, Arial, sans-serif;
}
#gogs-repo-watching .dropdown-menu {
width: 280px;
padding: 0;
}
#gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header, #gogs-repo-watching .dropdown-item .dropdown-header.text-primary {
color: rgb(65, 131, 196);
cursor: pointer;
}
#gogs-repo-watching .dropdown-menu .description {
padding: 0 20px;
color: #888;
}
#gogs-repo-watching .dropdown-menu .dropdown-header {
color: #444;
font-weight: bold;
font-size: 14px;
margin-bottom: 4px;
}
#gogs-repo-toolbar {
border-bottom: 1px solid #DDD;
background-color: #FFF;
height: 40px;
font-size: 14px;
}
#gogs-repo-toolbar .navbar-default {
border: none;
height: 39px;
}
#gogs-repo-toolbar .nav > li > a {
height: 39px;
}
#gogs-repo-toolbar .navbar-toolbar.navbar-default .navbar-nav > .active > a:after {
border-bottom-color: #999;
}
#gogs-repo-toolbar .navbar.nav-toolbar {
margin-bottom: 0;
}
#gogs-repo-toolbar .navbar-collapse {
padding: 0;
}
.activity-list {
font-size: 14px;
}
.activity-list .icon {
font-size: 20px;
color: #aaa;
float: left;
}
.activity-list .info {
margin: 0 0 0 40px;
line-height: 1.7em;
}
.activity-list .meta {
color: #aaa;
}
.activity-list li {
padding: 15px 0;
border-top: 1px solid #ddd;
}
.activity-list li:first-child {
border-top: none;
}
.repo-list li {
padding: 15px 0;
border-top: 1px solid #ddd;
}
.repo-list li:first-child {
border-top: none;
}
.repo-list h4 {
font-weight: bold;
font-size: 24px;
}
.repo-list .meta {
margin: 15px 0 0;
font-size: 14px;
}
.repo-list .desc {
font-size: 15px;
}
.repo-list .meta .fa {
margin: 0 0 0 20px;
}
.repo-list .meta,
.repo-list .info {
color: #999;
}
.popover .repo-clone-div {
min-width: 200px;
}
#gogs-repo-clone .dropdown-menu {
width: 400px;
padding: 20px;
}
#gogs-repo-clone .input-group {
margin-bottom: 15px;
}
/* #gogs-source */
#gogs-source {
margin-top: -20px;
}
#gogs-source .source-toolbar:after {
clear: both;
}
#gogs-source .source-toolbar .branch-switch {
display: inline-block;
}
#gogs-source .source-toolbar .breadcrumb {
margin: 0 .5em;
padding: 6px 15px;
font-size: 16px;
vertical-align: middle;
display: inline-block;
background-color: transparent;
}
#gogs-source .source-toolbar,
#gogs-source .info-box,
#gogs-source .file-content {
margin: 0 0 10px;
}
.info-box .info-head,
.info-box .info-content {
padding: 9px 20px;
}
.info-box .info-head {
font-weight: normal;
}
.info-box .info-content a,
.info-box .info-head a {
color: #666;
}
.file-list {
background-color: #fafafa;
}
.file-list .icon {
font-size: 17px;
padding: 5px 0 4px 10px;
width: 50px;
color: #999;
text-align: right;
}
.file-list .wrap {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
white-space: nowrap;
}
.file-list .name .wrap {
max-width: 180px;
}
.file-list .text .wrap {
max-width: 450px;
}
.file-list .date .wrap {
max-width: 120px;
padding: 0 20px 0 0;
}
.file-list .date {
text-align: right;
}
.file-content .file-head {
font-size: 18px;
}
.file-content .file-head .icon {
color: #666;
margin: 0 .5em 0 0;
}
.file-content .file-body {
padding: 30px 30px 50px;
border: none;
background-color: #FFF;
overflow: auto;
overflow-x: auto;
overflow-y: hidden;
}
.file-content .file-body.file-code pre {
background-color: #FFF;
border: none;
}
.file-content .file-body.file-code {
padding: 0;
}
.file-content .file-body.file-code .lines-code > pre {
border: none;
background: none;
border-left: 1px solid #ddd;
}
.file-content .file-body.file-code .lines-code ol.linenums > .active {
background: #ffffdd;
}
.file-content .file-body.file-code .lines-num {
text-align: right;
color: #999;
background: #fafafa;
width: 1%;
}
.file-content .file-body.file-code .lines-ellipsis {
background-color: #FAFAFA;
color: #999;
width: 1%;
}
.file-content .file-body.file-code .lines-num span {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
line-height: 1.6;
padding: 0 8px 0 10px;
cursor: pointer;
display: block;
margin-top: 2px;
font-size: 90%;
}
.file-content .file-body.file-code .lines-num span:first-child {
margin-top: 0;
}
.file-content .file-body.file-code > table {
width: 100%;
}
.file-content .file-body.file-code > table > tbody > tr,
.file-content .file-body.file-code > table > tbody > tr > td,
.file-content .file-body.file-code > table {
border: none;
background: none;
}
.branch-list th, .commit-list th {
background-color: #FFF;
line-height: 28px !important;
}
.branch-list td {
line-height: 36px !important;
}
.branch-box tr:hover td, .commit-box tr:hover td {
background-color: rgba(19, 95, 215, 0.06) !important;
}
.branch-box .name, .commit-box .author {
padding-left: 20px;
}
.branch-box .name {
font-size: 15px;
}
.branch-box .action {
width: 150px;
}
.branch-box td.date, .branch-box td.behind, .branch-box td.ahead {
width: 120px;
font-family: Verdana, Arial, sans-serif;
}
.branch-box .graph {
display: block;
height: 3px;
}
.branch-box .behind {
text-align: right;
direction: rtl;
}
.branch-box .behind .graph {
background-color: #888;
}
.branch-box .ahead .graph {
background-color: #0093c4;
}
.branch-box .branch-main {
background-color: #444;
color: #FFF;
border-color: #444;
}
.branch-box .branch-main a {
color: #FFF;
}
.branch-box .branch-main .name .btn {
margin-left: .5em;
}
.commit-box .avatar, .diff-head-box .avatar {
width: 20px;
height: 20px;
margin-right: 8px;
vertical-align: top;
}
.commit-box .search {
margin-top: 3px;
}
.commit-box td {
background-color: #FFF;
}
.commit-list .date {
width: 120px;
}
.commit-list .author {
min-width: 180px;
}
.guide-box pre, .guide-box .input-group {
margin-top: 20px;
margin-bottom: 30px;
line-height: 24px;
}
.guide-box input[readonly] {
background-color: #FFF;
}
.guide-box, .diff-head-box {
margin-top: 20px;
}
.diff-head-box h4 {
margin-top: 0;
margin-bottom: 0;
line-height: 26px;
}
.diff-head-box p {
margin-bottom: 0;
}
.diff-head-box .sha {
margin-left: 8px;
}
.diff-head-box a.name {
color: #444;
margin-right: 8px;
}
.diff-head-box span.time {
color: #888;
}
.diff-detail-box {
margin-bottom: 16px;
line-height: 30px;
}
.diff-detail-box span.status {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 8px;
vertical-align: middle;
}
.diff-detail-box ol {
padding-left: 0;
margin-bottom: 28px;
}
.diff-detail-box li {
list-style: none;
padding-bottom: 4px;
margin-bottom: 4px;
border-bottom: 1px dashed #DDD;
padding-left: 6px;
}
.diff-detail-box span.status.modify {
background-color: #f0db88;
}
.diff-detail-box span.status.add {
background-color: #b4e2b4;
}
.diff-detail-box span.status.del {
background-color: #e9aeae;
}
.diff-detail-box span.status.rename {
background-color: #dad8ff;
}
.diff-file-box .panel-heading {
padding: 10px 20px;
line-height: 26px;
}
.diff-box .count {
margin-right: 12px;
}
.diff-box .count .bar {
width: 40px;
display: inline-block;
margin: 2px 4px 0 4px;
vertical-align: text-top;
}
.diff-box .file {
color: #888;
}
#gogs-source .file-content.diff-file-box {
margin-bottom: 20px;
}
.diff-box .count .bar .add {
background-color: #77c64a;
height: 12px;
}
.diff-box .count .bar .del, .diff-box .count .bar {
background-color: #e75316;
height: 12px;
}
.diff-file-box .file-body.file-code .lines-code > pre {
margin: 0;
padding: 3px;
}
.diff-file-box .file-body.file-code .lines-num-old {
border-right: 1px solid #DDD;
}
.diff-file-box .code-bin td {
padding: 20px;
}
.diff-file-box .code-diff tbody tr.add-code td, .diff-file-box .code-diff tbody tr.add-code pre {
background-color: #d1ffd6 !important;
border-color: #b4e2b4 !important;
}
.diff-file-box .code-diff tbody tr.del-code td, .diff-file-box .code-diff tbody tr.del-code pre {
background-color: #ffe2dd !important;
border-color: #e9aeae !important;
}
.diff-file-box .code-diff tbody tr:hover td, .diff-file-box .code-diff tbody tr:hover pre {
background-color: #fff8d2 !important;
border-color: #f0db88 !important;
}
.diff-file-box .ellipsis-code pre {
color: #AAA;
}
/* wrapper and footer */
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -100px;
padding: 0 0 100px;
}
#footer {
background: #fff;
-webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);;
height: 100px;
}
#footer .footer-wrap {
padding: 20px 15px;
}
#footer a {
color: #000;
}