From 42773a11220a5bba7bdf3395e3f00913dce9f5a0 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Fri, 2 Jan 2015 18:14:23 +0100 Subject: Reworked switch to also display text --- view/css/mod_connect.css | 4 +--- view/css/mod_group.css | 4 +--- view/css/mod_settings.css | 8 ++------ view/css/mod_thing.css | 4 +--- 4 files changed, 5 insertions(+), 15 deletions(-) (limited to 'view/css') diff --git a/view/css/mod_connect.css b/view/css/mod_connect.css index 218b1d2cb..e1f28484a 100644 --- a/view/css/mod_connect.css +++ b/view/css/mod_connect.css @@ -6,8 +6,6 @@ margin-top: 25px; } -/* first-of-type needed to style switches */ -#sellpage-edit label.mainlabel, -#sellpage-edit label:first-of-type { +#sellpage-edit > label { width: 300px; } diff --git a/view/css/mod_group.css b/view/css/mod_group.css index 30a954d2a..91d5b2136 100644 --- a/view/css/mod_group.css +++ b/view/css/mod_group.css @@ -3,9 +3,7 @@ margin-top: 30px; } -/* first-of-type needed to style switches */ -#group-edit-form label.mainlabel, -#group-edit-form label:first-of-type { +#group-edit-form > label { float: left; width: 300px; } diff --git a/view/css/mod_settings.css b/view/css/mod_settings.css index b066e6059..cd66684f8 100644 --- a/view/css/mod_settings.css +++ b/view/css/mod_settings.css @@ -28,9 +28,7 @@ ul#settings-privacy-macros { margin-bottom: 10px; } -/* first-of-type needed to be able to style switches */ -#settings-permissions-wrapper .field label.mainlabel, -#settings-permissions-wrapper .field label:first-of-type { +#settings-permissions-wrapper .field > label { width: 350px; } @@ -43,9 +41,7 @@ ul#settings-privacy-macros { margin-bottom: 45px; } -/* first-of-type needed to be able to style switches */ -#settings-notifications .field label.mainlabel, -#settings-notifications .field label:first-of-type { +#settings-notifications .field > label { margin-left: 20px; width: 330px; } diff --git a/view/css/mod_thing.css b/view/css/mod_thing.css index ddb2faa87..1b091860b 100644 --- a/view/css/mod_thing.css +++ b/view/css/mod_thing.css @@ -4,9 +4,7 @@ margin-left: 0; } -/* first-of-type needed to style switches */ -.field label.mainlabel, -.thing-label, .field label:first-of-type, .thing-verb-label, .thing-profile-label{ +.thing-label, .field > label, .thing-verb-label, .thing-profile-label{ float: left; width: 350px; } -- cgit v1.2.3