Small CSS updates
authorThierry Florac <thierry.florac@onf.fr>
Tue, 17 Nov 2015 12:04:26 +0100
changeset 141 a4200ce41c25
parent 140 aa78e9eb61ad
child 142 0201f1422bd7
Small CSS updates
src/ztfy/myams/resources/less/forms.less
src/ztfy/myams/resources/less/tables.less
--- a/src/ztfy/myams/resources/less/forms.less	Tue Nov 17 12:04:03 2015 +0100
+++ b/src/ztfy/myams/resources/less/forms.less	Tue Nov 17 12:04:26 2015 +0100
@@ -41,6 +41,13 @@
 	}
 }
 
+.form-suffix {
+	.alert:last-child {
+		margin-bottom: 0;
+		border-radius: 0 0 5px 5px;
+	}
+}
+
 fieldset {
 	position: relative;
 }
@@ -64,7 +71,7 @@
 }
 
 .input-group-addon {
-	padding: 6px 10px 5px;
+	padding: 6px 10px 5px!important;
 	border-radius: 0;
 	transition: background-color .3s;
 	-webkit-transition: background-color .3s;
@@ -716,6 +723,11 @@
 		   -moz-box-sizing: content-box;
 				box-sizing: content-box;
 	}
+	.dt-top-row * {
+		-webkit-box-sizing: border-box;
+		   -moz-box-sizing: border-box;
+				box-sizing: border-box;
+	}
 	header {
 		display: block;
 		padding: 8px 0;
@@ -766,7 +778,7 @@
 			}
 		}
 		&.bordered {
-			margin: 10px;
+			margin: 0 10px 10px;
 			border: 1px solid rgba(192, 192, 192, 0.8);
 			-webkit-border-radius: 3px;
 			   -moz-border-radius: 3px;
@@ -817,12 +829,13 @@
 		}
 		.fa {
 			&.text-danger {
-				color: #a94442;
+				color: @dangerTextColor;
 			}
 		}
 		>.fa {
 			color: rgb(50, 118, 177);
 			font-size: 75%;
+
 			&.fa-stack {
 				font-size: 100%;
 				width: 1em;
@@ -845,6 +858,9 @@
 				top: -1px;
 			}
 		}
+		.btn-group {
+			margin-left: 20px;
+		}
 	}
 	>.modal-viewport >fieldset >legend {
 		padding-top: 0;
@@ -860,6 +876,10 @@
 	& .form-tight {
 		.form-group {
 			padding: 1px 10px;
+
+			.i18n-content {
+				margin-bottom: 5px;
+			}
 		}
 	}
 	label {
@@ -1082,7 +1102,7 @@
 		display: block;
 		margin-top: 4px;
 		margin-bottom: 6px;
-		padding-top: 0;
+		padding: 0 8px 6px;
 		line-height: 19px;
 		font-size: 13px;
 	}
@@ -1686,6 +1706,10 @@
 		padding-left: 2px;
 		border-left-width: 1px;
 		border-left-style: solid;
+
+		&.fa-spin {
+			border-left-style: none;
+		}
 	}
 	.icon-append-2 {
 		right: 31px;
--- a/src/ztfy/myams/resources/less/tables.less	Tue Nov 17 12:04:03 2015 +0100
+++ b/src/ztfy/myams/resources/less/tables.less	Tue Nov 17 12:04:26 2015 +0100
@@ -124,11 +124,15 @@
 	background: #fafafa;
 	font-size: 11px;
 	overflow: hidden;
-	padding: 5px 10px;
+	padding: 5px 10px!important;
 	border-top: 1px solid #ccc;
 	-webkit-box-shadow: inset 0 1px #fff;
 	-ms-box-shadow: inset 0 1px #fff;
 	box-shadow: inset 0 1px #fff;
+
+	.ams-form & .row {
+		margin: 0!important;
+	}
 }
 
 .modal-dialog .ams-form .dt-bottom-row {