Permalink
Browse files

css: fix UI breaks

  • Loading branch information...
Unknwon committed Nov 19, 2017
1 parent b752fe6 commit f4ab9f9932289489a79eb7e9e897a311b5cfbb37
Showing with 24 additions and 0 deletions.
  1. +11 −0 public/css/gogs.css
  2. +13 −0 public/less/_base.less
@@ -108,6 +108,9 @@ code.wrap {
.following.bar .avatar > .ui.image {
margin-right: 0;
}
.following.bar .avatar .octicon-triangle-down {
margin-top: 6.5px;
}
.following.bar .searchbox {
background-color: #f4f4f4 !important;
}
@@ -439,6 +442,14 @@ footer .ui.language .menu {
background: inherit !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) {
overflow: hidden;
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
@@ -98,6 +98,9 @@ pre, code {
.avatar > .ui.image {
margin-right: 0;
}
.avatar .octicon-triangle-down {
margin-top: 6.5px;
}
.searchbox {
background-color: rgb(244, 244, 244) !important;
&:focus {
@@ -425,3 +428,13 @@ footer {
background: inherit !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;
}

0 comments on commit f4ab9f9

Please sign in to comment.