Kaynağa Gözat

adjust form layout

yusuketk 6 yıl önce
ebeveyn
işleme
a3705e304f

+ 2 - 1
src/client/styles/scss/_override-bootstrap.scss

@@ -163,9 +163,10 @@ fieldset[disabled] .btn {
 }
 }
 
 
 // input form (disabled box-shadow added in bootstrap4)
 // input form (disabled box-shadow added in bootstrap4)
-.form-group .form-control {
+form.form-group input.form-control {
   &:focus,
   &:focus,
   &.focus {
   &.focus {
+    border-color: inherit;
     box-shadow: none;
     box-shadow: none;
   }
   }
 }
 }

+ 3 - 3
src/server/views/modal/create_page.html

@@ -9,7 +9,7 @@
 
 
       <div class="modal-body">
       <div class="modal-body">
 
 
-        <form class="row form-horizontal" id="create-page-today" role="form">
+        <form class="row form-group" id="create-page-today" role="form">
           <fieldset class="col-12 mb-4">
           <fieldset class="col-12 mb-4">
             <h3 class="grw-modal-head pb-2">{{ t("Create today's") }}</h3>
             <h3 class="grw-modal-head pb-2">{{ t("Create today's") }}</h3>
             <div class="d-flex create-page-input-container">
             <div class="d-flex create-page-input-container">
@@ -26,7 +26,7 @@
           </fieldset>
           </fieldset>
         </form>
         </form>
 
 
-        <form class="row form-horizontal" id="create-page-under-tree" role="form">
+        <form class="row form-group" id="create-page-under-tree" role="form">
           <fieldset class="col-12 mb-4">
           <fieldset class="col-12 mb-4">
             <h3 class="grw-modal-head pb-2">{{ t('Create under') }}</h3>
             <h3 class="grw-modal-head pb-2">{{ t('Create under') }}</h3>
             <div class="d-flex create-page-input-container">
             <div class="d-flex create-page-input-container">
@@ -45,7 +45,7 @@
         </form>
         </form>
 
 
         {% set templateParentPath = parentPath(path | preventXss | escape) %}
         {% set templateParentPath = parentPath(path | preventXss | escape) %}
-        <div id="template-form" class="row form-horizontal">
+        <div id="template-form" class="row form-group">
           <fieldset class="col-12">
           <fieldset class="col-12">
             <h3 class="grw-modal-head pb-2">{{ t('template.modal_label.Create template under', templateParentPath) }}</h3>
             <h3 class="grw-modal-head pb-2">{{ t('template.modal_label.Create template under', templateParentPath) }}</h3>
             <div class="d-flex create-page-input-container">
             <div class="d-flex create-page-input-container">