From 9fe54010badb543b5a5fc711dbeaa9cd42e6b8f0 Mon Sep 17 00:00:00 2001 From: "frank.paczynski" <frank.paczynski@open-xchange.com> Date: Tue, 14 Feb 2023 11:59:45 +0000 Subject: [PATCH] Fix: Set correct value for initial `display` of li elements --- help/inline_help_capabilities.less | 145 ++++++++++------------------- 1 file changed, 47 insertions(+), 98 deletions(-) diff --git a/help/inline_help_capabilities.less b/help/inline_help_capabilities.less index 8c7778ae3..ab3fbd959 100644 --- a/help/inline_help_capabilities.less +++ b/help/inline_help_capabilities.less @@ -1,98 +1,47 @@ -html.embedded { - & [class^="cap-"], & [class*=" cap-"], & [class^="feat-"], & [class*=" feat-"] { - display: none; - } - &.cap-calendar .cap-calendar { - display: inherit; - } - &.cap-contacts .cap-contacts { - display: inherit; - } - &.cap-infostore .cap-infostore { - display: inherit; - } - &.cap-guard .cap-guard { - display: inherit; - } - &.cap-multifactor .cap-multifactor { - display: inherit; - } - &.cap-presenter .cap-presenter { - display: inherit; - } - &.cap-portal .cap-portal { - display: inherit; - } - &.cap-spreadsheet .cap-spreadsheet { - display: inherit; - } - &.cap-tasks .cap-tasks { - display: inherit; - } - &.cap-text .cap-text { - display: inherit; - } - &.cap-webdav .cap-webdav { - display: inherit; - } - &.cap-webmail .cap-webmail { - display: inherit; - } - &.cap-xing .cap-xing { - display: inherit; - } - &.cap-share_links .cap-share_links { - display: inherit; - } - &.cap-share_mail_attachments .cap-share_mail_attachments { - display: inherit; - } - &.cap-appointments .cap-appointments { - display: inherit; - } - &.cap-call .cap-call { - display: inherit; - } - &.cap-chat .cap-chat { - display: inherit; - } - &.cap-dataexport .cap-dataexport { - display: inherit; - } - &.cap-switchboard .cap-switchboard { - display: inherit; - } - &.cap-deputy .cap-deputy { - display: inherit; - } - &.cap-edit_group .cap-edit_group { - display: inherit; - } - &.cap-gab .cap-gab { - display: inherit; - } - &.cap-edit_resource .cap-edit_resource { - display: inherit; - } - &.feat-io-ox-core-categories .feat-io-ox-core-categories { - display: inherit; - } - &.feat-io-ox-core-resourceCalendars .feat-io-ox-core-resourceCalendars { - display: inherit; - } - &.feat-io-ox-core-enterprisePicker .feat-io-ox-core-enterprisePicker { - display: inherit; - } - &.feat-zoom .feat-zoom { - display: inherit; - } - &.feat-jitsi .feat-jitsi { - display: inherit; - } - &.feat-io-ox-core-mailPDFExport .feat-io-ox-core-mailPDFExport { - display: inherit; - } - &.feat-io-ox-core-countdown .feat-io-ox-core-countdown { - display: inherit; - } -} \ No newline at end of file +html.embedded { + // hide all capabilities and features initially + & [class^="cap-"], + & [class*=" cap-"], + & [class^="feat-"], + & [class*=" feat-"] { + display: none; + } + // display again for enabled capabilities + &.cap-appointments .cap-appointments, + &.cap-calendar .cap-calendar, + &.cap-call .cap-call, + &.cap-chat .cap-chat, + &.cap-contacts .cap-contacts, + &.cap-dataexport .cap-dataexport, + &.cap-deputy .cap-deputy, + &.cap-edit_group .cap-edit_group, + &.cap-edit_resource .cap-edit_resource, + &.cap-gab .cap-gab, + &.cap-guard .cap-guard, + &.cap-infostore .cap-infostore, + &.cap-multifactor .cap-multifactor, + &.cap-portal .cap-portal, + &.cap-presenter .cap-presenter, + &.cap-share_links .cap-share_links, + &.cap-share_mail_attachments .cap-share_mail_attachments, + &.cap-spreadsheet .cap-spreadsheet, + &.cap-switchboard .cap-switchboard, + &.cap-tasks .cap-tasks, + &.cap-text .cap-text, + &.cap-webdav .cap-webdav, + &.cap-webmail .cap-webmail, + &.cap-xing .cap-xing, + // display again for enabled features + &.feat-io-ox-core-categories .feat-io-ox-core-categories, + &.feat-io-ox-core-countdown .feat-io-ox-core-countdown, + &.feat-io-ox-core-enterprisePicker .feat-io-ox-core-enterprisePicker, + &.feat-io-ox-core-mailPDFExport .feat-io-ox-core-mailPDFExport, + &.feat-io-ox-core-resourceCalendars .feat-io-ox-core-resourceCalendars, + &.feat-jitsi .feat-jitsi, + &.feat-zoom .feat-zoom { + // fallback is block + display: inherit; + // list-item is browser specific and not covered by inherit + &li { display: list-item; } + } +} -- GitLab