[New] Changes to table layouting, made g-m* and g-p* !important

This commit is contained in:
Robert von Burg 2017-03-10 08:25:02 +01:00
parent 6fbffa330c
commit 4b92ddf35f
2 changed files with 101 additions and 91 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "strolch-wc-styles", "name": "strolch-wc-styles",
"description": "Strolch WebComponent Styles", "description": "Strolch WebComponent Styles",
"version": "0.1.4", "version": "0.1.5",
"authors": "Robert von Burg", "authors": "Robert von Burg",
"keywords": [ "keywords": [
"strolch", "strolch",

View File

@ -30,12 +30,47 @@
padding: 0 0 0.5em 0; padding: 0 0 0.5em 0;
} }
/*
* Alignment
*/
.g-middle {
vertical-align: middle;
}
.g-center {
text-align: center;
}
.g-right {
text-align: right;
}
.g-left {
text-align: left;
}
.g-pull-right {
float: right;
}
.g-pull-left {
float: left;
}
.g-auto-center {
margin-left: auto !important;
margin-right: auto !important;
}
/* /*
* Tables * Tables
*/ */
.g-table { .g-table {
text-align: left; text-align: left;
border-collapse: collapse !important; border-collapse: collapse !important;
table-layout: fixed;
width: calc(100% - 2 * 1.2em);
margin: 1.2em 1.2em 1rem;
} }
.g-table td, .g-table td,
@ -43,12 +78,6 @@
background-color: #fff !important; background-color: #fff !important;
} }
.g-table {
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
}
.g-table th, .g-table th,
.g-table td { .g-table td {
padding: 0.5rem; padding: 0.5rem;
@ -65,8 +94,21 @@
border-top: 2px solid #eceeef; border-top: 2px solid #eceeef;
} }
.g-table .g-table { .g-table.g-table-middle td {
background-color: #fff; vertical-align: middle;
}
.g-table.g-table-no-border td,
.g-table.g-table-no-border tbody + tbody {
border-top: none;
}
.g-table.g-table-no-border th {
border-bottom: none;
}
.g-table.g-table-small {
width: inherit;
} }
/* /*
@ -189,238 +231,206 @@
* margins * margins
*/ */
.g-m-0 { .g-m-0 {
margin: 0.0em; margin: 0.0em !important;
} }
.g-m-1 { .g-m-1 {
margin: 0.2em; margin: 0.2em !important;
} }
.g-m-2 { .g-m-2 {
margin: 0.4em; margin: 0.4em !important;
} }
.g-m-3 { .g-m-3 {
margin: 0.8em; margin: 0.8em !important;
} }
.g-m-4 { .g-m-4 {
margin: 1.2em; margin: 1.2em !important;
} }
.g-ml-0 { .g-ml-0 {
margin-left: 0.0em; margin-left: 0.0em !important;
} }
.g-ml-1 { .g-ml-1 {
margin-left: 0.2em; margin-left: 0.2em !important;
} }
.g-ml-2 { .g-ml-2 {
margin-left: 0.4em; margin-left: 0.4em !important;
} }
.g-ml-3 { .g-ml-3 {
margin-left: 0.8em; margin-left: 0.8em !important;
} }
.g-ml-4 { .g-ml-4 {
margin-left: 1.2em; margin-left: 1.2em !important;
} }
.g-mr-0 { .g-mr-0 {
margin-right: 0.0em; margin-right: 0.0em !important;
} }
.g-mr-1 { .g-mr-1 {
margin-right: 0.2em; margin-right: 0.2em !important;
} }
.g-mr-2 { .g-mr-2 {
margin-right: 0.4em; margin-right: 0.4em !important;
} }
.g-mr-3 { .g-mr-3 {
margin-right: 0.8em; margin-right: 0.8em !important;
} }
.g-mr-4 { .g-mr-4 {
margin-right: 1.2em; margin-right: 1.2em !important;
} }
.g-mt-0 { .g-mt-0 {
margin-top: 0.0em; margin-top: 0.0em !important;
} }
.g-mt-1 { .g-mt-1 {
margin-top: 0.2em; margin-top: 0.2em !important;
} }
.g-mt-2 { .g-mt-2 {
margin-top: 0.4em; margin-top: 0.4em !important;
} }
.g-mt-3 { .g-mt-3 {
margin-top: 0.8em; margin-top: 0.8em !important;
} }
.g-mt-4 { .g-mt-4 {
margin-top: 1.2em; margin-top: 1.2em !important;
} }
.g-mb-0 { .g-mb-0 {
margin-bottom: 0.0em; margin-bottom: 0.0em !important;
} }
.g-mb-1 { .g-mb-1 {
margin-bottom: 0.2em; margin-bottom: 0.2em !important;
} }
.g-mb-2 { .g-mb-2 {
margin-bottom: 0.4em; margin-bottom: 0.4em !important;
} }
.g-mb-3 { .g-mb-3 {
margin-bottom: 0.8em; margin-bottom: 0.8em !important;
} }
.g-mb-4 { .g-mb-4 {
margin-bottom: 1.2em; margin-bottom: 1.2em !important;
} }
/* /*
* padding * padding
*/ */
.g-p-0 { .g-p-0 {
padding: 0.0em; padding: 0.0em !important;
} }
.g-p-1 { .g-p-1 {
padding: 0.2em; padding: 0.2em !important;
} }
.g-p-2 { .g-p-2 {
padding: 0.4em; padding: 0.4em !important;
} }
.g-p-3 { .g-p-3 {
padding: 0.8em; padding: 0.8em !important;
} }
.g-p-4 { .g-p-4 {
padding: 1.2em; padding: 1.2em !important;
} }
.g-pl-0 { .g-pl-0 {
padding-left: 0.0em; padding-left: 0.0em !important;
} }
.g-pl-1 { .g-pl-1 {
padding-left: 0.2em; padding-left: 0.2em !important;
} }
.g-pl-2 { .g-pl-2 {
padding-left: 0.4em; padding-left: 0.4em !important;
} }
.g-pl-3 { .g-pl-3 {
padding-left: 0.8em; padding-left: 0.8em !important;
} }
.g-pl-4 { .g-pl-4 {
padding-left: 1.2em; padding-left: 1.2em !important;
} }
.g-pr-0 { .g-pr-0 {
padding-right: 0.0em; padding-right: 0.0em !important;
} }
.g-pr-1 { .g-pr-1 {
padding-right: 0.2em; padding-right: 0.2em !important;
} }
.g-pr-2 { .g-pr-2 {
padding-right: 0.4em; padding-right: 0.4em !important;
} }
.g-pr-3 { .g-pr-3 {
padding-right: 0.8em; padding-right: 0.8em !important;
} }
.g-pr-4 { .g-pr-4 {
padding-right: 1.2em; padding-right: 1.2em !important;
} }
.g-pt-0 { .g-pt-0 {
padding-top: 0.0em; padding-top: 0.0em !important;
} }
.g-pt-1 { .g-pt-1 {
padding-top: 0.2em; padding-top: 0.2em !important;
} }
.g-pt-2 { .g-pt-2 {
padding-top: 0.4em; padding-top: 0.4em !important;
} }
.g-pt-3 { .g-pt-3 {
padding-top: 0.8em; padding-top: 0.8em !important;
} }
.g-pt-4 { .g-pt-4 {
padding-top: 1.2em; padding-top: 1.2em !important;
} }
.g-pb-0 { .g-pb-0 {
padding-bottom: 0.0em; padding-bottom: 0.0em !important;
} }
.g-pb-1 { .g-pb-1 {
padding-bottom: 0.2em; padding-bottom: 0.2em !important;
} }
.g-pb-2 { .g-pb-2 {
padding-bottom: 0.4em; padding-bottom: 0.4em !important;
} }
.g-pb-3 { .g-pb-3 {
padding-bottom: 0.8em; padding-bottom: 0.8em !important;
} }
.g-pb-4 { .g-pb-4 {
padding-bottom: 1.2em; padding-bottom: 1.2em !important;
}
/*
* Alignment
*/
.g-middle {
vertical-align: middle;
}
.g-center {
text-align: center;
}
.g-right {
text-align: right;
}
.g-left {
text-align: left;
}
.g-pull-right {
float: right;
}
.g-pull-left {
float: left;
}
.g-auto-center {
margin-left: auto;
margin-right: auto;
} }
</style> </style>