Changeset - 89be46d1bfd0
[Not reviewed]
default
0 3 0
domruf - 8 years ago 2017-10-27 22:13:34
dominikruf@gmail.com
less: remove .reviewer_ac

It has nothing to do with reviewers or autocomplete and the 'padding: 10px'
does not improve the style.
3 files changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -112,99 +112,96 @@ nav.navbar #logo > .navbar-brand > img {
 
}
 
.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;
 
}
 
.reviewer_ac {
 
  padding: 10px;
 
}
 
#content div.panel table#permissions_manage {
 
  width: auto;
 
}
 
#content div.panel table th {
 
  background: #eee;
 
  border-bottom: 1px solid #ddd;
 
  padding: 5px 0px 5px 5px;
 
  text-align: left;
 
}
 
#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;
 
}
kallithea/public/less/style.less
Show inline comments
 
@@ -120,99 +120,96 @@ nav.navbar #logo > .navbar-brand > img {
 
}
 
.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;
 
}
 
.reviewer_ac {
 
  padding: 10px;
 
}
 
#content div.panel table#permissions_manage {
 
  width: auto;
 
}
 
#content div.panel table th {
 
  background: #eee;
 
  border-bottom: 1px solid #ddd;
 
  padding: 5px 0px 5px 5px;
 
  text-align: left;
 
}
 
#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;
 
}
kallithea/templates/files/files_add.html
Show inline comments
 
<%inherit file="/base/base.html"/>
 

	
 
<%block name="title">
 
    ${_('%s Files Add') % c.repo_name}
 
</%block>
 

	
 
<%block name="js_extra">
 
  <script type="text/javascript" src="${h.url('/codemirror/lib/codemirror.js')}"></script>
 
  <script type="text/javascript" src="${h.url('/js/codemirror_loadmode.js')}"></script>
 
  <script type="text/javascript" src="${h.url('/codemirror/mode/meta.js')}"></script>
 
</%block>
 
<%block name="css_extra">
 
  <link rel="stylesheet" type="text/css" href="${h.url('/codemirror/lib/codemirror.css')}"/>
 
</%block>
 

	
 
<%block name="header_menu">
 
    ${self.menu('repositories')}
 
</%block>
 

	
 
<%def name="breadcrumbs_links()">
 
    ${_('Add New File')} @ ${h.show_id(c.cs)}
 
</%def>
 

	
 
<%def name="main()">
 
${self.repo_context_bar('files')}
 
<div class="panel panel-primary">
 
    <div class="panel-heading clearfix">
 
        <div class="pull-left">
 
            ${self.breadcrumbs()}
 
        </div>
 
        <div class="pull-right">
 
            <a href="#">${_('Branch')}: ${c.cs.branch}</a>
 
        </div>
 
    </div>
 
    <div class="panel-body" id="edit">
 
        <div id="files_data">
 
            ${h.form(h.url.current(),method='post',id='eform',enctype="multipart/form-data", class_="form-inline")}
 
            <h3 class="files_location">
 
              ${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.raw_id,c.f_path)} /
 
              <span id="filename_container" class="file reviewer_ac">
 
              <span id="filename_container" class="file">
 
                  <input class="form-control input-small" type="text" value="" size="30" name="filename" id="filename" placeholder="${_('Enter filename...')}">
 
                  <input type="hidden" value="${c.f_path}" name="location" id="location">
 
                  ${_('or')} <button type="button" class="btn btn-default btn-sm" id="upload_file_enable">${_('Upload File')}</button>
 
              </span>
 
              <span id="upload_file_container" class="reviewer_ac" style="display:none">
 
              <span id="upload_file_container" style="display:none">
 
                  <input class="form-control" type="file" size="20" name="upload_file" id="upload_file">
 
                  ${_('or')} <button type="button" class="btn btn-default btn-sm" id="file_enable">${_('Create New File')}</button>
 
              </span>
 
            </h3>
 
            <div id="body" class="panel panel-default">
 
              <div class="panel-heading clearfix">
 
                  <div class="pull-left">
 
                    <label>${_('New file type')}
 
                        <select class="form-control" id="mimetype" name="mimetype"></select>
 
                    </label>
 
                  </div>
 
              </div>
 
              <div class="panel-body no-padding">
 
                <textarea id="editor" name="content" style="display:none"></textarea>
 
              </div>
 
            </div>
 
            <div>
 
              <div>
 
                  <div>${_('Commit Message')}</div>
 
                  <textarea class="form-control commit-message" name="message" placeholder="${c.default_message}"></textarea>
 
              </div>
 
              <div class="buttons">
 
                ${h.submit('commit',_('Commit Changes'),class_="btn btn-success")}
 
                ${h.reset('reset',_('Reset'),class_="btn btn-default")}
 
              </div>
 
            </div>
 
            ${h.end_form()}
 
            <script type="text/javascript">
 
                $(document).ready(function(){
 
                    var reset_url = ${h.jshtml(h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))};
 
                    var myCodeMirror = initCodeMirror('editor', ${h.jshtml(request.script_name)}, reset_url);
 

	
 
                    //inject new modes, based on codeMirrors modeInfo object
 
                    var $mimetype_select = $('#mimetype');
 
                    $mimetype_select.each(function(){
 
                        var modes_select = this;
 
                        var index = 1;
 
                        for(var i=0;i<CodeMirror.modeInfo.length;i++){
 
                            var m = CodeMirror.modeInfo[i];
 
                            var opt = new Option(m.name, m.mime);
 
                            $(opt).attr('mode', m.mode);
 
                            if (m.mime == 'text/plain') {
 
                                // default plain text
 
                                $(opt).prop('selected', true);
 
                                modes_select.options[0] = opt;
 
                            } else {
 
                                modes_select.options[index++] = opt;
 
                            }
0 comments (0 inline, 0 general)