Changeset - ddba357cb1e3
[Not reviewed]
default
0 2 0
domruf - 8 years ago 2017-10-28 18:39:04
dominikruf@gmail.com
less: prevent elements from overflowing panels - add horizontal scrollbar when necessary
2 files changed with 13 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
/*!
 
 * Don't edit the css file directly.
 
 *
 
 * Instead, edit the less file(s) and regenerate the css:
 
 *
 
 * npm --prefix kallithea/public/less install
 
 * npm --prefix kallithea/public/less run less
 
 *
 
 */
 
body {
 
  background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
 
  font-family: Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif;
 
}
 
/* Undo unfortunate Bootstrap default styling */
 
body pre {
 
  display: inherit;
 
  padding: inherit;
 
  margin: inherit;
 
  font-size: inherit;
 
  line-height: inherit;
 
  color: inherit;
 
  word-break: inherit;
 
  word-wrap: inherit;
 
  background-color: inherit;
 
  border: inherit;
 
  border-radius: inherit;
 
  overflow: inherit;
 
}
 
a {
 
  color: #577632;
 
  text-decoration: none;
 
}
 
a:hover {
 
  color: #576622;
 
  text-decoration: underline;
 
}
 
code,
 
.code pre,
 
.linenos pre,
 
div.readme pre,
 
div.formatted-fixed,
 
.CodeMirror .CodeMirror-code pre {
 
  font-size: 12px;
 
  font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 
}
 
/* class for texts where newlines should be preserved, for very light-weight ascii art markup (like pull request descriptions) */
 
.formatted-fixed {
 
  white-space: pre-wrap;
 
}
 
.changeset_hash {
 
  font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 
}
 
.inline-comments-general.show-general-status .hidden.general-only {
 
  display: block !important;
 
}
 
.truncate {
 
  white-space: nowrap;
 
  overflow: hidden;
 
  text-overflow: ellipsis;
 
  -o-text-overflow: ellipsis;
 
  -ms-text-overflow: ellipsis;
 
}
 
.truncate.autoexpand:hover {
 
  overflow: visible;
 
}
 
/* show comment anchors when hovering over panel-heading */
 
a.permalink {
 
  visibility: hidden;
 
}
 
.panel-heading:hover .permalink {
 
  visibility: visible;
 
}
 
.navbar-inverse {
 
  border: none;
 
}
 
.navbar-inverse .navbar-nav > .active > a,
 
.navbar-inverse .navbar-nav > .active > a:hover,
 
.navbar-inverse .navbar-nav > .active > a:focus {
 
  background-color: inherit;
 
}
 
nav.navbar .navbar-brand:hover,
 
nav.navbar .navbar-brand {
 
  font-size: 20px;
 
  padding-top: 12px;
 
  color: white !important;
 
  height: 44px;
 
}
 
nav.navbar {
 
  min-height: 44px;
 
  background-color: #577632;
 
}
 
nav.navbar #logo > .navbar-brand > img {
 
  margin-top: -9px;
 
  margin-right: 5px;
 
}
 
/* language bars (summary page) */
 
#lang_stats .progress-bar {
 
  min-width: 15px;
 
  border-top-right-radius: 8px;
 
  border-bottom-right-radius: 8px;
 
}
 
#lang_stats td {
 
  padding: 1px 0 !important;
 
}
 
/* every direct child of a main panel, that is not .panel-heading, should auto
 
 * overflow to prevent overflowing of elements like text boxes and tables */
 
#main > .panel > :not(.panel-heading) {
 
  overflow-x: auto;
 
  min-height: 0.01%;
 
}
 
.form-group > label {
 
  float: left;
 
}
 
.groups_breadcrumbs a {
 
  color: #fff;
 
}
 
.groups_breadcrumbs a:hover {
 
  color: #bfe3ff;
 
  text-decoration: none;
 
}
 
.dt_repo {
 
  white-space: nowrap;
 
  color: #577632;
 
}
 
.dt_repo_pending {
 
  opacity: 0.5;
 
}
 
.dt_repo i.icon-keyhole-circled,
 
.dt_repo i.icon-globe {
 
  font-size: 16px;
 
  vertical-align: -2px;
 
  margin: 0px 1px 0px 3px;
 
}
 
div.panel-primary {
 
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
 
  border: none;
 
}
 
div.panel div.panel-heading {
 
  background-color: #577632;
 
  background-repeat: repeat-x;
 
  background-image: linear-gradient(to bottom, #577632, #577632);
 
  border-radius: 4px 4px 0 0;
 
}
 
#content div.panel div.panel-heading ul.links li {
 
  list-style: none;
 
  float: left;
 
  margin: 0;
 
  padding: 0;
 
}
 
div.panel.panel-default {
 
  border: 1px solid #ccc;
 
  box-shadow: none;
 
  border-radius: 6px 6px 0px 0px;
 
  margin-bottom: 15px;
 
}
 
div.panel.panel-default:last-child {
 
  margin-bottom: 0;
 
}
 
div.panel.panel-default > div.panel-heading {
 
  background: #eee;
 
  border-bottom: 1px solid #ccc;
 
  font-size: 14px;
 
  font-weight: 700;
 
}
 
#content div.panel div.panel-heading .pull-left {
 
  margin-right: 10px;
 
}
 
#content div.panel div.panel-heading .pull-right {
 
  margin-left: 10px;
 
}
 
#content div.panel div.form div.form-group {
 
  border-bottom: 1px solid #DDD;
 
  clear: both;
 
}
 
#content div.panel table#permissions_manage {
 
  width: auto;
 
}
 
#content div.panel table td.compact {
 
  padding-left: 0;
 
  padding-right: 0;
 
}
 
#content div.panel table tr.selected td {
 
  background: #FFC;
 
}
 
#content div.panel table td.selected {
 
  width: 3%;
 
  text-align: center;
 
  vertical-align: middle;
 
  padding: 0;
 
}
 
#content div.panel table td.action {
 
  width: 45%;
 
  text-align: left;
 
}
 
#content div.panel table td.date {
 
  width: 33%;
 
  text-align: center;
 
}
 
#content div.panel div.action {
 
  float: right;
 
  background: #FFF;
 
  text-align: right;
 
  margin: 10px 0 0;
 
  padding: 0;
 
}
 
#content div.panel div.action select {
 
  font-size: 11px;
 
  margin: 0;
 
}
 
#content div.panel div.action .ui-selectmenu {
 
  margin: 0;
 
  padding: 0;
 
}
 
#content div.panel ul.pagination {
 
  margin: 10px 0 0 0;
 
}
 
#content div.panel ul.pagination > li > a,
 
#content div.panel ul.pagination > li > span {
 
  background: #ebebeb url("../images/pager.png") repeat-x;
 
  color: #4A4A4A;
 
  font-weight: 700;
 
  border-top: 1px solid #dedede;
 
  border-left: 1px solid #cfcfcf;
 
  border-bottom: 1px solid #c4c4c4;
 
  border-right: 1px solid #cfcfcf;
 
}
 
#content div.panel ul.pagination > li.active > span,
 
#content div.panel ul.pagination > li:hover > a,
 
#content div.panel ul.pagination > li:active > a {
 
  background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
 
  border-top: 1px solid #ccc;
 
  border-left: 1px solid #bebebe;
 
  border-bottom: 1px solid #afafaf;
 
  border-right: 1px solid #bebebe;
 
  color: #515151;
 
}
 
#content div.panel #summary-panel-body {
 
  position: relative;
 
}
 
#content div.panel div#summary-panel-body.form div.form-group > div {
 
  margin: 0 0 10px 150px;
 
}
 
#content div.panel #summary {
 
  margin-right: 200px;
 
  min-height: 200px;
 
}
 
ul#summary-menu-stats {
 
  width: 180px;
 
  position: absolute;
 
  top: 0;
 
  right: 0;
 
  border-radius: 4px;
 
  margin: 15px;
 
}
 
#content #summary-menu-stats li {
 
  padding: 0;
 
}
 
#content #summary-menu-stats li:hover {
 
  background: #f0f0f0;
 
}
 
#summary-menu-stats a {
 
  display: block;
 
  padding: 10px;
 
}
 
#repo_size_2 {
 
  display: none;
 
}
 
#repo_size_2.loaded {
 
  display: block;
 
  padding-right: 10px;
 
  padding-bottom: 7px;
 
}
 
#summary-menu-stats a:hover {
 
  text-decoration: none;
 
}
 
#summary-menu-stats .badge {
 
  padding: 2px 4px !important;
 
  font-size: 10px;
 
}
 
#summary .metatag {
 
  display: inline-block;
 
  padding: 3px 5px;
 
  margin-bottom: 3px;
 
  margin-right: 1px;
 
  border-radius: 5px;
 
}
 
#content div.panel #summary p {
 
  margin-bottom: -5px;
 
  width: 600px;
 
  white-space: pre-wrap;
 
}
 
#clone_by_name.input-group,
 
#clone_by_id.input-group {
 
  width: 100%;
 
}
 
#clone_by_name.input-group > span,
 
#clone_by_id.input-group > span {
 
  display: inline-block;
 
  float: left;
 
  height: 30px;
 
}
 
#clone_by_name.input-group > input,
kallithea/public/less/style.less
Show inline comments
 
/*!
 
 * Don't edit the css file directly.
 
 *
 
 * Instead, edit the less file(s) and regenerate the css:
 
 *
 
 * npm --prefix kallithea/public/less install
 
 * npm --prefix kallithea/public/less run less
 
 *
 
 */
 

	
 
body {
 
  background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
 
  font-family: Lucida Grande, Verdana, Lucida Sans Regular, Lucida Sans Unicode, Arial, sans-serif;
 
}
 
/* Undo unfortunate Bootstrap default styling */
 
body pre {
 
  display: inherit;
 
  padding: inherit;
 
  margin: inherit;
 
  font-size: inherit;
 
  line-height: inherit;
 
  color: inherit;
 
  word-break: inherit;
 
  word-wrap: inherit;
 
  background-color: inherit;
 
  border: inherit;
 
  border-radius: inherit;
 
  overflow: inherit;
 
}
 

	
 
a {
 
  color: #577632;
 
  text-decoration: none;
 
}
 
a:hover {
 
  color: #576622;
 
  text-decoration: underline;
 
}
 
code,
 
.code pre,
 
.linenos pre,
 
div.readme pre,
 
div.formatted-fixed,
 
.CodeMirror .CodeMirror-code pre {
 
  font-size: 12px;
 
  font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 
}
 

	
 
/* class for texts where newlines should be preserved, for very light-weight ascii art markup (like pull request descriptions) */
 
.formatted-fixed {
 
  white-space: pre-wrap;
 
}
 

	
 
.changeset_hash {
 
  font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace;
 
}
 

	
 
.inline-comments-general.show-general-status .hidden.general-only {
 
  display: block !important;
 
}
 
.truncate {
 
  white-space: nowrap;
 
  overflow: hidden;
 
  text-overflow: ellipsis;
 
  -o-text-overflow: ellipsis;
 
  -ms-text-overflow: ellipsis;
 
}
 
.truncate.autoexpand:hover {
 
  overflow: visible;
 
}
 

	
 
/* show comment anchors when hovering over panel-heading */
 
a.permalink {
 
  visibility: hidden;
 
}
 
.panel-heading:hover .permalink {
 
  visibility: visible;
 
}
 

	
 
.navbar-inverse {
 
  border: none;
 
}
 
.navbar-inverse .navbar-nav > .active > a,
 
.navbar-inverse .navbar-nav > .active > a:hover,
 
.navbar-inverse .navbar-nav > .active > a:focus {
 
  background-color: inherit;
 
}
 
nav.navbar .navbar-brand:hover,
 
nav.navbar .navbar-brand {
 
  font-size: 20px;
 
  padding-top: 12px;
 
  color: white !important;
 
  height: 44px;
 
}
 
nav.navbar {
 
  min-height: 44px;
 
  background-color: #577632;
 
}
 
nav.navbar #logo > .navbar-brand > img {
 
  margin-top: -9px;
 
  margin-right: 5px;
 
}
 

	
 
/* language bars (summary page) */
 
#lang_stats {
 
  .progress-bar {
 
    min-width: 15px;
 
    border-top-right-radius: 8px;
 
    border-bottom-right-radius: 8px;
 
  }
 
  td {
 
    padding: 1px 0 !important;
 
  }
 
}
 

	
 
/* every direct child of a main panel, that is not .panel-heading, should auto
 
 * overflow to prevent overflowing of elements like text boxes and tables */
 
#main > .panel > :not(.panel-heading) {
 
  overflow-x: auto;
 
  min-height: 0.01%;
 
}
 

	
 
.form-group > label {
 
  float: left;
 
}
 
.groups_breadcrumbs a {
 
  color: #fff;
 
}
 
.groups_breadcrumbs a:hover {
 
  color: #bfe3ff;
 
  text-decoration: none;
 
}
 
.dt_repo {
 
  white-space: nowrap;
 
  color: #577632;
 
}
 
.dt_repo_pending {
 
  opacity: 0.5;
 
}
 
.dt_repo i.icon-keyhole-circled,
 
.dt_repo i.icon-globe {
 
  font-size: 16px;
 
  vertical-align: -2px;
 
  margin: 0px 1px 0px 3px;
 
}
 
div.panel-primary {
 
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
 
  border: none;
 
}
 
div.panel div.panel-heading {
 
  background-color: #577632;
 
  background-repeat: repeat-x;
 
  background-image: linear-gradient(to bottom, #577632, #577632);
 
  border-radius: 4px 4px 0 0;
 
}
 
#content div.panel div.panel-heading ul.links li {
 
  list-style: none;
 
  float: left;
 
  margin: 0;
 
  padding: 0;
 
}
 
div.panel.panel-default {
 
  border: 1px solid #ccc;
 
  box-shadow: none;
 
  border-radius: 6px 6px 0px 0px;
 
  margin-bottom: 15px;
 
}
 
div.panel.panel-default:last-child {
 
  margin-bottom: 0;
 
}
 
div.panel.panel-default > div.panel-heading {
 
  background: #eee;
 
  border-bottom: 1px solid #ccc;
 
  font-size: 14px;
 
  font-weight: 700;
 
}
 
#content div.panel div.panel-heading .pull-left {
 
  margin-right: 10px;
 
}
 
#content div.panel div.panel-heading .pull-right {
 
  margin-left: 10px;
 
}
 
#content div.panel div.form div.form-group {
 
  border-bottom: 1px solid #DDD;
 
  clear: both;
 
}
 
#content div.panel table#permissions_manage {
 
  width: auto;
 
}
 
#content div.panel table td.compact {
 
  padding-left: 0;
 
  padding-right: 0;
 
}
 
#content div.panel table tr.selected td {
 
  background: #FFC;
 
}
 
#content div.panel table td.selected {
 
  width: 3%;
 
  text-align: center;
 
  vertical-align: middle;
 
  padding: 0;
 
}
 
#content div.panel table td.action {
 
  width: 45%;
 
  text-align: left;
 
}
 
#content div.panel table td.date {
 
  width: 33%;
 
  text-align: center;
 
}
 
#content div.panel div.action {
 
  float: right;
 
  background: #FFF;
 
  text-align: right;
 
  margin: 10px 0 0;
 
  padding: 0;
 
}
 
#content div.panel div.action select {
 
  font-size: 11px;
 
  margin: 0;
 
}
 
#content div.panel div.action .ui-selectmenu {
 
  margin: 0;
 
  padding: 0;
 
}
 
#content div.panel ul.pagination {
 
  margin: 10px 0 0 0;
 
}
 
#content div.panel ul.pagination > li > a,
 
#content div.panel ul.pagination > li > span {
 
  background: #ebebeb url("../images/pager.png") repeat-x;
 
  color: #4A4A4A;
 
  font-weight: 700;
 
  border-top: 1px solid #dedede;
 
  border-left: 1px solid #cfcfcf;
 
  border-bottom: 1px solid #c4c4c4;
 
  border-right: 1px solid #cfcfcf;
 
}
 
#content div.panel ul.pagination > li.active > span,
 
#content div.panel ul.pagination > li:hover > a,
 
#content div.panel ul.pagination > li:active > a {
 
  background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
 
  border-top: 1px solid #ccc;
 
  border-left: 1px solid #bebebe;
 
  border-bottom: 1px solid #afafaf;
 
  border-right: 1px solid #bebebe;
 
  color: #515151;
 
}
 
#content div.panel #summary-panel-body {
 
  position: relative;
 
}
 
#content div.panel div#summary-panel-body.form div.form-group > div {
 
  margin: 0 0 10px 150px;
 
}
 
#content div.panel #summary {
 
  margin-right: 200px;
 
  min-height: 200px;
 
}
 
ul#summary-menu-stats {
 
  width: 180px;
 
  position: absolute;
 
  top: 0;
 
  right: 0;
 
  border-radius: 4px;
 
  margin: 15px;
 
}
 
#content #summary-menu-stats li {
 
  padding: 0;
 
}
 
#content #summary-menu-stats li:hover {
 
  background: #f0f0f0;
 
}
 
#summary-menu-stats a {
 
  display: block;
 
  padding: 10px;
 
}
 
#repo_size_2 {
 
  display: none;
 
}
 
#repo_size_2.loaded {
 
  display: block;
 
  padding-right: 10px;
 
  padding-bottom: 7px;
 
}
 
#summary-menu-stats a:hover {
 
  text-decoration: none;
 
}
 
#summary-menu-stats .badge {
 
  padding: 2px 4px !important;
 
  font-size: 10px;
 
}
 
#summary .metatag {
 
  display: inline-block;
 
  padding: 3px 5px;
 
  margin-bottom: 3px;
 
  margin-right: 1px;
 
  border-radius: 5px;
 
}
 
#content div.panel #summary p {
 
  margin-bottom: -5px;
 
  width: 600px;
 
  white-space: pre-wrap;
 
}
 
#clone_by_name.input-group,
 
#clone_by_id.input-group {
 
  width: 100%;
 
}
 
#clone_by_name.input-group > span,
 
#clone_by_id.input-group > span {
 
  display: inline-block;
 
  float: left;
 
  height: 30px;
 
}
 
#clone_by_name.input-group > input,
0 comments (0 inline, 0 general)