summaryrefslogtreecommitdiffstats
path: root/css
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-07-02 14:06:22 +0200
committerPaul Kocialkowski <contact@paulk.fr>2015-07-02 14:06:22 +0200
commit3f3c818ca9ac12ebdf76d2db101a8a7d8458f0f0 (patch)
treeb37d065a455f3563d5d9f836e3b9af67369027ba /css
parent95c64e6ecdbc3efc9bdfad9859cf454d202b082c (diff)
downloadreplicant_website-3f3c818ca9ac12ebdf76d2db101a8a7d8458f0f0.zip
replicant_website-3f3c818ca9ac12ebdf76d2db101a8a7d8458f0f0.tar.gz
replicant_website-3f3c818ca9ac12ebdf76d2db101a8a7d8458f0f0.tar.bz2
supported-devices: Equal column height and vertical spacing for tablets
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'css')
-rw-r--r--css/equal-height-columns.css32
1 files changed, 32 insertions, 0 deletions
diff --git a/css/equal-height-columns.css b/css/equal-height-columns.css
new file mode 100644
index 0000000..5d78527
--- /dev/null
+++ b/css/equal-height-columns.css
@@ -0,0 +1,32 @@
+/*
+ * Row with equal height columns
+ * --------------------------------------------------
+ */
+.row-eq-height {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+}
+
+.row-eq-height > div {
+ padding-bottom: 20px;
+}
+
+.row-eq-height > div > a {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ height: 100%;
+}
+
+.row-eq-height .vertical-spacer {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ height: 100%;
+}
+
+.row-eq-height .vertical-spacer img {
+ width: 100%;
+}