Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
widgets: Improve visual style for Polls.
nooblaga8b529b3ed38
diff --git a/static/styles/night_mode.css b/static/styles/night_mode.cssindex 403902a2659..fb48ee584a6 100644--- a/static/styles/night_mode.css+++ b/static/styles/night_mode.css@@ -202,7 +202,7 @@ body.night-mode {.new-style .button {background-color: hsla(0, 0%, 0%, 0.2);- &:not(.sea-green):not(.btn-danger):not(.btn-warning):not(.btn-link) {+ &:not(.sea-green):not(.btn-danger):not(.btn-warning):not(.btn-link):not(.poll-vote) {border-color: hsla(0, 0%, 0%, 0.6);color: inherit;}@@ -1101,6 +1101,28 @@ body.night-mode {background-color: hsl(228, 96%, 71%);}}++ /* Widgets: Poll */+ .poll-widget {+ .poll-vote {+ color: hsl(185, 35%, 65%);+ border-color: hsl(185, 35%, 35%);++ &:hover {+ color: hsl(185, 50%, 70%);+ border-color: hsl(185, 40%, 40%);+ background-color: hsl(185, 20%, 20%);+ }+ &:focus {+ color: hsl(185, 50%, 65%);+ border-color: hsl(185, 40%, 50%);+ background-color: hsl(185, 40%, 35%);+ }+ }+ .poll-names {+ color: hsl(236, 15%, 70%);+ }+ }}@supports (-moz-appearance: none) {diff --git a/static/styles/widgets.css b/static/styles/widgets.cssindex f5f5d695b5a..8d5b2cad6b7 100644--- a/static/styles/widgets.css+++ b/static/styles/widgets.css@@ -35,7 +35,7 @@li {list-style: none;- margin: 2px 2px 2px 0;+ margin: 2px 2px 6px 0;}ul {@@ -52,17 +52,32 @@.poll-option {font-weight: 600;+ font-size: 12pt;}.poll-vote {color: hsl(156, 41%, 40%);border-color: hsl(156, 28%, 70%);+ border-style: solid;+ border-radius: 3px;margin-right: 4px;+ padding-left: 2px; /* padding for Chromium browsers */+ padding-right: 2px;+ min-width: 28px;background-color: hsl(0, 0%, 100%);&:hover {border-color: hsl(156, 30%, 50%);}+ &:focus {+ outline: 0;+ background-color: hsl(156, 41%, 90%);+ }+ }+ .poll-names {+ color: hsl(0, 0%, 45%);+ padding-left: 4px;+ font-size: 10pt;}}