From 50c137d152f0e0df3a7912ba361c68dc5de13565 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Sep 2014 17:51:24 -0700 Subject: constrain photos to a fixed block regardless of aspect ratio --- view/theme/redbasic/css/style.css | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 0f2949a49..5ff32ff58 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -660,11 +660,33 @@ aside li { } .photo-top-photo, .photo-album-photo { - padding: 10px; + /* padding: 10px; max-width: 300px; border: 1px solid #888888; +*/ + position: absolute; + display: block; + max-width: 100%; + max-height: 100%; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; } +.photo-top-image-wrapper, .photo-album-image-wrapper { + width: 300px; +} + +.photo-top-photo-link, .photo-album-photo-link { + display: block; + width: 100%; + position: relative; + height: 0; + padding: 75% 0 0 0; + overflow: hidden; +} .photo-album-image-wrapper .caption { background-color: $acpopup_bgcolour; -- cgit v1.2.3 From d71e304b150f500af60c215e9772f94b9a9f300b Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 4 Sep 2014 21:18:47 -0700 Subject: this improves the photos even more --- view/theme/redbasic/css/style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 5ff32ff58..bcbaec3d0 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -666,8 +666,8 @@ aside li { */ position: absolute; display: block; - max-width: 100%; - max-height: 100%; +/* max-width: 100%; + max-height: 100%; */ left: 0; right: 0; top: 0; @@ -676,7 +676,7 @@ aside li { } .photo-top-image-wrapper, .photo-album-image-wrapper { - width: 300px; + width: 240px; } .photo-top-photo-link, .photo-album-photo-link { -- cgit v1.2.3 From 11b5ec7ec8bc6492f63ffe2be92ecb5e97fed800 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Sun, 7 Sep 2014 21:46:20 +0000 Subject: Added abook-changed background colour to dark schema --- view/theme/redbasic/css/style.css | 4 ++++ view/theme/redbasic/php/style.php | 3 +++ view/theme/redbasic/schema/dark.php | 12 +++++++----- 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index bcbaec3d0..4062c259c 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2184,6 +2184,10 @@ img.mail-list-sender-photo { background-color: $abookself_bgcolour; } +.abook-pending-contact, .abook-permschange { + background: $abook_changebg; +} + .online-now { color: red; cursor: pointer; diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 4ffdcbef8..dbe7c306d 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -276,6 +276,8 @@ if(! $a->install) { $dirpopup_txtcol=""; if (!$dirpopup_linkcol) $dirpopup_linkcol=""; + if (!$abook_changebg) + $abook_changebg="orange"; if($nav_min_opacity === false || $nav_min_opacity === '') { $nav_float_min_opacity = 1.0; @@ -400,6 +402,7 @@ $options = array ( '$admintable_hoverbgcol' => $admintable_hoverbgcol, '$dirpopup_txtcol' => $dirpopup_txtcol, '$dirpopup_linkcol' => $dirpopup_linkcol, +'$abook_changebg' => $abook_changebg, ); echo str_replace(array_keys($options), array_values($options), $x); diff --git a/view/theme/redbasic/schema/dark.php b/view/theme/redbasic/schema/dark.php index 69fcf403f..a4b43b31e 100644 --- a/view/theme/redbasic/schema/dark.php +++ b/view/theme/redbasic/schema/dark.php @@ -154,15 +154,15 @@ $abookself_bgcolour = "#251111"; if(! $infomess_bgcolour) $infomess_bgcolour = "#333"; - if(! $advperm_bgcolour) + if(! $advperm_bgcolour) $advperm_bgcolour = "#1E1E1E"; - if(! $advperm_bordercol) + if(! $advperm_bordercol) $advperm_bordercol = "#222"; - if(! $advperm_gradientcol) + if(! $advperm_gradientcol) $advperm_gradientcol = "#111"; - if(! $cal_bgcolour) + if(! $cal_bgcolour) $cal_bgcolour = "#333"; - if(! $fancybox_bgcolour) + if(! $fancybox_bgcolour) $fancybox_bgcolour = "#1E1E1E"; if (!$admintable_hoverbgcol) $admintable_hoverbgcol="#222"; @@ -170,3 +170,5 @@ $dirpopup_txtcol="#111"; if (!$dirpopup_linkcol) $dirpopup_linkcol="#000"; + if (!$abook_changebg) + $abook_changebg="#402900"; -- cgit v1.2.3