Ver código fonte

Center all elements of checklist-item form

- before the save button, X and slider element had a strange layout. The
  save button was at the bottom, the X and slider at the top of the flex
  layout
Martin Filser 3 anos atrás
pai
commit
d9a7950fa4

+ 1 - 1
client/components/cards/checklists.styl

@@ -146,4 +146,4 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
 
 
 .edit-controls
 .edit-controls
   label.toggle-label
   label.toggle-label
-    margin-left: 6px
+    margin-left: 2px

+ 4 - 7
client/components/forms/forms.styl

@@ -117,7 +117,6 @@ button
   display: inline-block
   display: inline-block
   font-weight: 700
   font-weight: 700
   line-height: 22px
   line-height: 22px
-  margin: 8px 4px 0 0
   padding: 7px 20px
   padding: 7px 20px
   text-align: center
   text-align: center
 
 
@@ -226,20 +225,18 @@ textarea
 .edit-controls,
 .edit-controls,
 .add-controls
 .add-controls
   display: flex
   display: flex
-  align-items: baseline
-  margin-top: 0
+  align-items: center
+  margin-top: 0px
 
 
   button[type=submit]
   button[type=submit]
   input[type=button]
   input[type=button]
     float: left
     float: left
     height: 32px
     height: 32px
-    margin-top: -2px
-    padding-top: 5px
-    padding-bottom: 5px
+    margin-bottom: 0px
 
 
   .fa-times-thin
   .fa-times-thin
     font-size: 26px
     font-size: 26px
-    margin: 3px 4px
+    margin: 3px 10px
 
 
 // Material Design checkboxes
 // Material Design checkboxes
   [type="checkbox"]:not(:checked),
   [type="checkbox"]:not(:checked),