Browse Source

css: fix UI breaks

pull/4878/head
Unknwon 7 years ago
parent
commit
f4ab9f9932
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 11
      public/css/gogs.css
  2. 13
      public/less/_base.less

11
public/css/gogs.css

@ -108,6 +108,9 @@ code.wrap {
.following.bar .avatar > .ui.image { .following.bar .avatar > .ui.image {
margin-right: 0; margin-right: 0;
} }
.following.bar .avatar .octicon-triangle-down {
margin-top: 6.5px;
}
.following.bar .searchbox { .following.bar .searchbox {
background-color: #f4f4f4 !important; background-color: #f4f4f4 !important;
} }
@ -439,6 +442,14 @@ footer .ui.language .menu {
background: inherit !important; background: inherit !important;
padding: 0 !important; padding: 0 !important;
} }
.ui.dropdown .menu > .item > .image,
.ui.dropdown .menu > .item > img,
.ui.dropdown > .text > .image,
.ui.dropdown > .text > img {
vertical-align: middle;
margin-top: 0;
margin-bottom: 0;
}
.markdown:not(code) { .markdown:not(code) {
overflow: hidden; overflow: hidden;
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;

13
public/less/_base.less

@ -98,6 +98,9 @@ pre, code {
.avatar > .ui.image { .avatar > .ui.image {
margin-right: 0; margin-right: 0;
} }
.avatar .octicon-triangle-down {
margin-top: 6.5px;
}
.searchbox { .searchbox {
background-color: rgb(244, 244, 244) !important; background-color: rgb(244, 244, 244) !important;
&:focus { &:focus {
@ -425,3 +428,13 @@ footer {
background: inherit !important; background: inherit !important;
padding: 0 !important; padding: 0 !important;
} }
// Reset CSS to prevent UI breaks
.ui.dropdown .menu>.item>.image,
.ui.dropdown .menu>.item>img,
.ui.dropdown>.text>.image,
.ui.dropdown>.text>img {
vertical-align: middle;
margin-top: 0;
margin-bottom: 0;
}
Loading…
Cancel
Save