Преглед изворни кода

Merge pull request #134 from crowi/fix-dialog

Fix create modal dialog
Sotaro KARASAWA пре 9 година
родитељ
комит
1c0896e393
2 измењених фајлова са 18 додато и 2 уклоњено
  1. 16 0
      resource/css/crowi.scss
  2. 2 2
      resource/js/crowi.js

+ 16 - 0
resource/css/crowi.scss

@@ -109,6 +109,22 @@ footer {
     }
     }
 
 
     form {
     form {
+
+      input.form-control {
+        border: none;
+        box-shadow: none;
+        border-bottom: dotted 1px #444;
+        border-radius: 0;
+        padding: 6px;
+        height: 34px;
+        font-weight: bold;
+        background: #f0f0f0;
+
+        &:focus {
+          background: #ddd;
+        }
+      }
+
       .page-name-addons {
       .page-name-addons {
         position: absolute;
         position: absolute;
         top: 7px;
         top: 7px;

+ 2 - 2
resource/js/crowi.js

@@ -215,12 +215,12 @@ $(function() {
 
 
   $('#create-page').on('shown.bs.modal', function (e) {
   $('#create-page').on('shown.bs.modal', function (e) {
 
 
-    var input2Width = $('#create-page-today .page-today-input2').outerWidth();
+    var input2Width = $('#create-page-today .col-xs-10').outerWidth();
     var newWidth = input2Width
     var newWidth = input2Width
       - $('#create-page-today .page-today-prefix').outerWidth()
       - $('#create-page-today .page-today-prefix').outerWidth()
       - $('#create-page-today .page-today-input1').outerWidth()
       - $('#create-page-today .page-today-input1').outerWidth()
       - $('#create-page-today .page-today-suffix').outerWidth()
       - $('#create-page-today .page-today-suffix').outerWidth()
-      - 10
+      - 40
       ;
       ;
     $('#create-page-today .form-control.page-today-input2').css({width: newWidth}).focus();
     $('#create-page-today .form-control.page-today-input2').css({width: newWidth}).focus();