Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Present modal sidebars as gridded rows.

Karl Stolley47c3903ce033
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 9835f94eb4c..ce75013262c 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1303,7 +1303,15 @@ $option_title_width: 180px;
}
& li {
- padding: 5px 0;
+ display: grid;
+ /* 3.5714em is 50px at 14px/1em -- the legacy height of these rows. */
+ grid-template:
+ "starting-anchor-element row-content ending-anchor-element" 3.5714em / 40px minmax(
+ 0,
+ 1fr
+ )
+ minmax(34px, auto);
+ align-items: center;
outline: none;
cursor: pointer;
transition:
@@ -1320,46 +1328,25 @@ $option_title_width: 180px;
border-bottom: 1px solid transparent;
}
- .text,
- .icon,
- .locked {
- display: inline-block;
- vertical-align: top;
- }
-
- .text {
- width: calc(100% - 90px);
- padding: 10px 12px 10px 0;
- }
-
.icon {
- width: 18px;
- height: 18px;
- margin: 10px;
- text-align: center;
-
font-size: 1.4em;
+ text-align: center;
color: hsl(0deg 0% 53%);
+ }
- background-size: cover;
- background-repeat: no-repeat;
+ .text {
+ /* Hyphenate for internationalization */
+ hyphens: auto;
}
.zulip-icon-smart-toy {
font-size: 1.6em;
- margin: 8px 11px 10px 9px;
}
.locked {
- width: 18px;
- height: 18px;
- margin: 14px 8px 6px;
-
font-size: 1em;
+ text-align: center;
color: hsl(0deg 0% 62%);
-
- background-size: cover;
- background-repeat: no-repeat;
}
}
@@ -1367,6 +1354,10 @@ $option_title_width: 180px;
display: none;
}
+ .hide-org-settings {
+ display: none;
+ }
+
.normal-settings-list,
.org-settings-list {
position: relative;
@@ -1660,10 +1651,6 @@ $option_title_width: 180px;
display: inline-block;
}
-.hide-org-settings {
- display: none;
-}
-
.collapse-settings-btn {
margin: 10px 0 0 10px;
color: hsl(200deg 100% 40%);