diff --git a/ckan/public/base/css/main.css b/ckan/public/base/css/main.css index 9b454097752..c686d0f8da1 100644 --- a/ckan/public/base/css/main.css +++ b/ckan/public/base/css/main.css @@ -4480,10 +4480,6 @@ ul.icons li .icon-large:before { right: -11px; width: 11px; } -.unstyled { - margin: 0; - list-style: none; -} .simple-item { font-size: 12px; line-height: 1.1666666666666667em; @@ -4506,13 +4502,13 @@ ul.icons li .icon-large:before { .simple-list:after { clear: both; } -.simple-list > li { +.simple-list > li { font-size: 12px; line-height: 1.1666666666666667em; padding: 7px 25px; border-bottom: 1px dotted #cccccc; } -.simple-list > li:last-of-type { +.simple-list > li:last-of-type { border-bottom: 0; } .simple-list .ckan-icon { @@ -4663,8 +4659,6 @@ ul.icons li .icon-large:before { padding-right: 15px; } .module-grid { - margin: 0; - list-style: none; margin: 0; list-style: none; *zoom: 1; @@ -4688,7 +4682,6 @@ ul.icons li .icon-large:before { padding-left: 20px; padding-bottom: 25px; float: left; - float: left; margin-left: 20px; width: 460px; padding-top: 10px; @@ -4711,6 +4704,17 @@ ul.icons li .icon-large:before { .group-listing { margin-left: -20px; } +.ckanext-datapreview { + position: relative; +} +.ckanext-datapreview > iframe { + min-height: 400px; +} +.ckanext-datapreview > img { + max-height: 500px; + max-width: 100%; + overflow: hidden; +} .media { position: relative; overflow: hidden; @@ -4867,13 +4871,13 @@ ol.media-grid:after { .nav-simple:after { clear: both; } -.nav-simple > li { +.nav-simple > li { font-size: 12px; line-height: 1.1666666666666667em; padding: 7px 25px; border-bottom: 1px dotted #cccccc; } -.nav-simple > li:last-of-type { +.nav-simple > li:last-of-type { border-bottom: 0; } .nav-simple .ckan-icon { @@ -4895,12 +4899,10 @@ ol.media-grid:after { } .nav-item.active > a { background: url("../../../base/images/background-tag.png") no-repeat -13px center; - position: relative; display: block; font-size: 11px; line-height: 27px; color: #005772; - padding-left: 10px; padding-right: 5px; margin-right: 11px; -webkit-box-sizing: border-box; @@ -5025,6 +5027,10 @@ input[type=checkbox] { padding: 0; margin: 0; } +input[type=radio].checkbox-onown, +input[type=checkbox].checkbox-onown { + top: 0; +} select { margin-top: 6px; padding: 4px; @@ -5185,8 +5191,6 @@ textarea { background-image: url("../../../base/images/sprite-ckan-icons.png"); background-repeat: no-repeat; background-position: 16px 16px; - width: 17px; - height: 17px; background-position: -51px -16px; position: absolute; display: block; @@ -5772,8 +5776,6 @@ textarea { vertical-align: text-bottom; position: relative; top: 2px; - width: 16px; - height: 16px; background-image: url("../../../base/images/sprite-ckan-icons.png"); background-repeat: no-repeat; background-position: 16px 16px; @@ -6596,7 +6598,6 @@ li .icon-large:before { float: right; } [role=main] .secondary { - float: left; margin-left: 20px; width: 220px; margin-left: 0; @@ -6832,13 +6833,11 @@ li .icon-large:before { bottom: NaN; width: 1px; background-color: #007094; - background-color: rgba(255, 255, 255, 0); background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(rgba(255, 255, 255, 0.1)), to(rgba(255, 255, 255, 0))); background-image: -webkit-radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); background-image: -moz-radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); background-image: -ms-radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); background-image: -o-radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); - background-repeat: no-repeat; background-color: rgba(255, 255, 255, 0.08000000000000002); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0.1)), to(rgba(255, 255, 255, 0))); background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 0.5, rgba(255, 255, 255, 0)); @@ -6852,13 +6851,11 @@ li .icon-large:before { .masthead .section:after { left: -1px; background-color: #004a61; - background-color: rgba(0, 0, 0, 0); background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(rgba(0, 0, 0, 0.2)), to(rgba(0, 0, 0, 0))); background-image: -webkit-radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)); background-image: -moz-radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)); background-image: -ms-radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)); background-image: -o-radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)); - background-repeat: no-repeat; background-color: rgba(0, 0, 0, 0.16000000000000003); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(0, 0, 0, 0)), color-stop(0.5, rgba(0, 0, 0, 0.2)), to(rgba(0, 0, 0, 0))); background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 0.5, rgba(0, 0, 0, 0)); @@ -7247,6 +7244,42 @@ iframe { .page-heading { margin-bottom: 16px; } +.m-top { + margin-top: 15px; +} +.m-left { + margin-left: 15px; +} +.m-right { + margin-right: 15px; +} +.m-bottom { + margin-bottom: 15px; +} +.no-margin { + margin: 0; +} +.reduced-margin { + margin: 3px 5px; +} +.p-top { + padding-top: 15px; +} +.p-left { + padding-left: 15px; +} +.p-right { + padding-right: 15px; +} +.p-bottom { + padding-bottom: 15px; +} +.no-padding { + padding: 0; +} +.reduced-padding { + padding: 3px 5px; +} .ie .lang-dropdown { position: relative; top: -20px; diff --git a/ckan/public/base/less/mixins.less b/ckan/public/base/less/mixins.less index fa429a5a548..935cb3dbaca 100644 --- a/ckan/public/base/less/mixins.less +++ b/ckan/public/base/less/mixins.less @@ -73,7 +73,7 @@ } } -.unstyled { +.unstyled() { margin: 0; list-style: none; }