summaryrefslogtreecommitdiff
path: root/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2016-03-20 19:50:03 +0100
committerCtibor Brančík <ctibor@brancik.cz>2016-03-20 19:50:03 +0100
commit26106a315f04ca082152b474e6604cded843d08b (patch)
treef1c0869e1839e57e3cac9f63c926beafe4c6ce88 /sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts
parent07a7c72b4bb6c8d585908b71c63d661880f1f61d (diff)
downloadbrdo-26106a315f04ca082152b474e6604cded843d08b.tar.gz
brdo-26106a315f04ca082152b474e6604cded843d08b.tar.bz2
Added theme for Máme rádi přírodu.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts')
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed-rtl.css72
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed.css144
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive-rtl.css195
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive.css271
4 files changed, 682 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed-rtl.css b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed-rtl.css
new file mode 100644
index 000000000..c66a9b380
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed-rtl.css
@@ -0,0 +1,72 @@
+/**
+ * @file
+ * RTL companion for the layout-fixed-width.css file.
+ */
+
+/**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+/* Span 4 columns, starting in 2nd column from right. */
+.sidebar-first #content {
+ float: right;
+ width: 764px;
+ margin-right: 196px;
+ margin-left: -980px;
+}
+
+/* Span 1 column, starting in 1st column from right. */
+.sidebar-first .region-sidebar-first {
+ float: right;
+ width: 176px;
+ margin-right: 0px;
+ margin-left: -196px;
+}
+
+/**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+/* Span 4 columns, starting in 1st column from right. */
+.sidebar-second #content {
+ float: right;
+ width: 764px;
+ margin-right: 0px;
+ margin-left: -784px;
+}
+
+/* Span 1 column, starting in 5th column from right. */
+.sidebar-second .region-sidebar-second {
+ float: right;
+ width: 176px;
+ margin-right: 784px;
+ margin-left: -980px;
+}
+
+/**
+ * The layout when there are two sidebars.
+ */
+
+/* Span 3 columns, starting in 2nd column from right. */
+.two-sidebars #content {
+ float: right;
+ width: 568px;
+ margin-right: 196px;
+ margin-left: -784px;
+}
+
+/* Span 1 column, starting in 1st column from right. */
+.two-sidebars .region-sidebar-first {
+ float: right;
+ width: 176px;
+ margin-right: 0px;
+ margin-left: -196px;
+}
+
+/* Span 1 column, starting in 5th column from right. */
+.two-sidebars .region-sidebar-second {
+ float: right;
+ width: 176px;
+ margin-right: 784px;
+ margin-left: -980px;
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed.css b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed.css
new file mode 100644
index 000000000..bf1e3ad1a
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/fixed.css
@@ -0,0 +1,144 @@
+/**
+ * @file
+ * Positioning for a fixed-width, desktop-centric layout.
+ *
+ * Define CSS classes to create a table-free, 3-column, 2-column, or single
+ * column layout depending on whether blocks are enabled in the left or right
+ * columns.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+/**
+ * Center the page.
+ *
+ * If you want to make the page a fixed width and centered in the viewport,
+ * this is the standards-compliant way to do that.
+ */
+#page,
+.region-bottom {
+ margin-left: auto;
+ margin-right: auto;
+ width: 980px;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+ padding-left: 10px;
+ padding-right: 10px;
+ border-left: 0 !important;
+ border-right: 0 !important;
+ word-wrap: break-word;
+ *behavior: url("/path/to/boxsizing.htc");
+ _display: inline;
+ _overflow: hidden;
+ _overflow-y: visible;
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+ *position: relative;
+ *zoom: 1;
+}
+#header:before,
+#header:after,
+#main:before,
+#main:after,
+#footer:before,
+#footer:after {
+ content: "";
+ display: table;
+}
+#header:after,
+#main:after,
+#footer:after {
+ clear: both;
+}
+
+/* Navigation bar */
+#main {
+ /* Move all the children of #main down to make room. */
+ padding-top: 2em;
+}
+#navigation {
+ /* Move the navbar up inside #main's padding. */
+ position: absolute;
+ top: 0;
+ height: 3em;
+ width: 960px;
+}
+
+/**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+/* Span 4 columns, starting in 2nd column from left. */
+.sidebar-first #content {
+ float: left;
+ width: 764px;
+ margin-left: 196px;
+ margin-right: -980px;
+}
+
+/* Span 1 column, starting in 1st column from left. */
+.sidebar-first .region-sidebar-first {
+ float: left;
+ width: 176px;
+ margin-left: 0px;
+ margin-right: -196px;
+}
+
+/**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+/* Span 4 columns, starting in 1st column from left. */
+.sidebar-second #content {
+ float: left;
+ width: 764px;
+ margin-left: 0px;
+ margin-right: -784px;
+}
+
+/* Span 1 column, starting in 5th column from left. */
+.sidebar-second .region-sidebar-second {
+ float: left;
+ width: 176px;
+ margin-left: 784px;
+ margin-right: -980px;
+}
+
+/**
+ * The layout when there are two sidebars.
+ */
+
+/* Span 3 columns, starting in 2nd column from left. */
+.two-sidebars #content {
+ float: left;
+ width: 568px;
+ margin-left: 196px;
+ margin-right: -784px;
+}
+
+/* Span 1 column, starting in 1st column from left. */
+.two-sidebars .region-sidebar-first {
+ float: left;
+ width: 176px;
+ margin-left: 0px;
+ margin-right: -196px;
+}
+
+/* Span 1 column, starting in 5th column from left. */
+.two-sidebars .region-sidebar-second {
+ float: left;
+ width: 176px;
+ margin-left: 784px;
+ margin-right: -980px;
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive-rtl.css b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive-rtl.css
new file mode 100644
index 000000000..a06f82ffa
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive-rtl.css
@@ -0,0 +1,195 @@
+/**
+ * @file
+ * RTL companion for the layout-responsive.css file.
+ */
+
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+ /**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+ /* Span 2 columns, starting in 2nd column from right. */
+ .sidebar-first #content {
+ float: right;
+ width: 66.66667%;
+ margin-right: 33.33333%;
+ margin-left: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from right. */
+ .sidebar-first .region-sidebar-first {
+ float: right;
+ width: 33.33333%;
+ margin-right: 0%;
+ margin-left: -33.33333%;
+ }
+
+ /**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+ /* Span 2 columns, starting in 1st column from right. */
+ .sidebar-second #content {
+ float: right;
+ width: 66.66667%;
+ margin-right: 0%;
+ margin-left: -66.66667%;
+ }
+
+ /* Span 1 column, starting in 3rd column from right. */
+ .sidebar-second .region-sidebar-second {
+ float: right;
+ width: 33.33333%;
+ margin-right: 66.66667%;
+ margin-left: -100%;
+ }
+
+ /**
+ * The layout when there are two sidebars.
+ */
+
+ /* Span 2 columns, starting in 2nd column from right. */
+ .two-sidebars #content {
+ float: right;
+ width: 66.66667%;
+ margin-right: 33.33333%;
+ margin-left: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from right. */
+ .two-sidebars .region-sidebar-first {
+ float: right;
+ width: 33.33333%;
+ margin-right: 0%;
+ margin-left: -33.33333%;
+ }
+
+ /* Start a new row and span all 3 columns. */
+ .two-sidebars .region-sidebar-second {
+ float: right;
+ width: 100%;
+ margin-right: 0%;
+ margin-left: -100%;
+ padding-left: 0;
+ padding-right: 0;
+ clear: right;
+ }
+
+ /* Apply the shared properties of grid items in a single, efficient ruleset. */
+ .two-sidebars .region-sidebar-second .block {
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ word-wrap: break-word;
+ *behavior: url("/path/to/boxsizing.htc");
+ _display: inline;
+ _overflow: hidden;
+ _overflow-y: visible;
+ }
+
+ /* Span 1 column, starting in the 1st column from right. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+ float: right;
+ width: 33.33333%;
+ margin-right: 0%;
+ margin-left: -33.33333%;
+ clear: right;
+ }
+
+ /* Span 1 column, starting in the 2nd column from right. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+ float: right;
+ width: 33.33333%;
+ margin-right: 33.33333%;
+ margin-left: -66.66667%;
+ }
+
+ /* Span 1 column, starting in the 3rd column from right. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+ float: right;
+ width: 33.33333%;
+ margin-right: 66.66667%;
+ margin-left: -100%;
+ }
+}
+
+/**
+ * Use 5 grid columns for larger screens.
+ */
+@media all and (min-width: 960px) {
+
+ /**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+ /* Span 4 columns, starting in 2nd column from right. */
+ .sidebar-first #content {
+ float: right;
+ width: 80%;
+ margin-right: 20%;
+ margin-left: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from right. */
+ .sidebar-first .region-sidebar-first {
+ float: right;
+ width: 20%;
+ margin-right: 0%;
+ margin-left: -20%;
+ }
+
+ /**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+ /* Span 4 columns, starting in 1st column from right. */
+ .sidebar-second #content {
+ float: right;
+ width: 80%;
+ margin-right: 0%;
+ margin-left: -80%;
+ }
+
+ /* Span 1 column, starting in 5th column from right. */
+ .sidebar-second .region-sidebar-second {
+ float: right;
+ width: 20%;
+ margin-right: 80%;
+ margin-left: -100%;
+ }
+
+ /**
+ * The layout when there are two sidebars.
+ */
+
+ /* Span 3 columns, starting in 2nd column from right. */
+ .two-sidebars #content {
+ float: right;
+ width: 60%;
+ margin-right: 20%;
+ margin-left: -80%;
+ }
+
+ /* Span 1 column, starting in 1st column from right. */
+ .two-sidebars .region-sidebar-first {
+ float: right;
+ width: 20%;
+ margin-right: 0%;
+ margin-left: -20%;
+ }
+
+ /* Span 1 column, starting in 5th column from right. */
+ .two-sidebars .region-sidebar-second {
+ float: right;
+ width: 20%;
+ margin-right: 80%;
+ margin-left: -100%;
+ }
+}
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive.css b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive.css
new file mode 100644
index 000000000..33190f416
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/css/layouts/responsive.css
@@ -0,0 +1,271 @@
+/**
+ * @file
+ * Positioning for a responsive layout.
+ *
+ * Define CSS classes to create a fluid grid layout with optional sidebars
+ * depending on whether blocks are placed in the left or right sidebars.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+/**
+ * Center the page.
+ *
+ * For screen sizes larger than 1200px, prevent excessively long lines of text
+ * by setting a max-width.
+ */
+#page,
+.region-bottom {
+ margin-left: auto;
+ margin-right: auto;
+ max-width: 1200px;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ word-wrap: break-word;
+ *behavior: url("/path/to/boxsizing.htc");
+ _display: inline;
+ _overflow: hidden;
+ _overflow-y: visible;
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+ *position: relative;
+ *zoom: 1;
+}
+#header:before,
+#header:after,
+#main:before,
+#main:after,
+#footer:before,
+#footer:after {
+ content: "";
+ display: table;
+}
+#header:after,
+#main:after,
+#footer:after {
+ clear: both;
+}
+
+/* Navigation bar */
+@media all and (min-width: 480px) {
+ #main {
+ /* Move all the children of #main down to make room. */
+ padding-top: 3em;
+ position: relative;
+ }
+ #navigation {
+ /* Move the navbar up inside #main's padding. */
+ position: absolute;
+ top: 0;
+ height: 3em;
+ width: 100%;
+ }
+}
+
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+ /**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+ /* Span 2 columns, starting in 2nd column from left. */
+ .sidebar-first #content {
+ float: left;
+ width: 66.66667%;
+ margin-left: 33.33333%;
+ margin-right: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from left. */
+ .sidebar-first .region-sidebar-first {
+ float: left;
+ width: 33.33333%;
+ margin-left: 0%;
+ margin-right: -33.33333%;
+ }
+
+ /**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+ /* Span 2 columns, starting in 1st column from left. */
+ .sidebar-second #content {
+ float: left;
+ width: 66.66667%;
+ margin-left: 0%;
+ margin-right: -66.66667%;
+ }
+
+ /* Span 1 column, starting in 3rd column from left. */
+ .sidebar-second .region-sidebar-second {
+ float: left;
+ width: 33.33333%;
+ margin-left: 66.66667%;
+ margin-right: -100%;
+ }
+
+ /**
+ * The layout when there are two sidebars.
+ */
+
+ /* Span 2 columns, starting in 2nd column from left. */
+ .two-sidebars #content {
+ float: left;
+ width: 66.66667%;
+ margin-left: 33.33333%;
+ margin-right: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from left. */
+ .two-sidebars .region-sidebar-first {
+ float: left;
+ width: 33.33333%;
+ margin-left: 0%;
+ margin-right: -33.33333%;
+ }
+
+ /* Start a new row and span all 3 columns. */
+ .two-sidebars .region-sidebar-second {
+ float: left;
+ width: 100%;
+ margin-left: 0%;
+ margin-right: -100%;
+ padding-left: 0;
+ padding-right: 0;
+ clear: left;
+ }
+
+ /* Apply the shared properties of grid items in a single, efficient ruleset. */
+ .two-sidebars .region-sidebar-second .block {
+ padding-left: 10px;
+ padding-right: 10px;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+ word-wrap: break-word;
+ *behavior: url("/path/to/boxsizing.htc");
+ _display: inline;
+ _overflow: hidden;
+ _overflow-y: visible;
+ }
+
+ /* Span 1 column, starting in the 1st column from left. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+ float: left;
+ width: 33.33333%;
+ margin-left: 0%;
+ margin-right: -33.33333%;
+ clear: left;
+ }
+
+ /* Span 1 column, starting in the 2nd column from left. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+ float: left;
+ width: 33.33333%;
+ margin-left: 33.33333%;
+ margin-right: -66.66667%;
+ }
+
+ /* Span 1 column, starting in the 3rd column from left. */
+ .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+ float: left;
+ width: 33.33333%;
+ margin-left: 66.66667%;
+ margin-right: -100%;
+ }
+}
+
+/**
+ * Use 5 grid columns for larger screens.
+ */
+@media all and (min-width: 960px) {
+
+ /**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+ /* Span 4 columns, starting in 2nd column from left. */
+ .sidebar-first #content {
+ float: left;
+ width: 80%;
+ margin-left: 20%;
+ margin-right: -100%;
+ }
+
+ /* Span 1 column, starting in 1st column from left. */
+ .sidebar-first .region-sidebar-first {
+ float: left;
+ width: 20%;
+ margin-left: 0%;
+ margin-right: -20%;
+ }
+
+ /**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+ /* Span 4 columns, starting in 1st column from left. */
+ .sidebar-second #content {
+ float: left;
+ width: 80%;
+ margin-left: 0%;
+ margin-right: -80%;
+ }
+
+ /* Span 1 column, starting in 5th column from left. */
+ .sidebar-second .region-sidebar-second {
+ float: left;
+ width: 20%;
+ margin-left: 80%;
+ margin-right: -100%;
+ }
+
+ /**
+ * The layout when there are two sidebars.
+ */
+
+ /* Span 3 columns, starting in 2nd column from left. */
+ .two-sidebars #content {
+ float: left;
+ width: 60%;
+ margin-left: 20%;
+ margin-right: -80%;
+ }
+
+ /* Span 1 column, starting in 1st column from left. */
+ .two-sidebars .region-sidebar-first {
+ float: left;
+ width: 20%;
+ margin-left: 0%;
+ margin-right: -20%;
+ }
+
+ /* Span 1 column, starting in 5th column from left. */
+ .two-sidebars .region-sidebar-second {
+ float: left;
+ width: 20%;
+ margin-left: 80%;
+ margin-right: -100%;
+ }
+}