2024-04-16 22:36:57 +02:00
|
|
|
.widget-content {
|
2024-04-26 20:55:40 +02:00
|
|
|
margin-bottom: var(--markdown-interelement-space-px);
|
2024-04-16 22:36:57 +02:00
|
|
|
}
|
|
|
|
|
2019-08-04 21:57:43 +02:00
|
|
|
.widget-choices {
|
2023-03-17 22:10:10 +01:00
|
|
|
& ul {
|
2019-08-04 21:57:43 +02:00
|
|
|
padding: 3px;
|
|
|
|
}
|
2018-02-23 15:37:19 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& li {
|
2019-08-04 21:57:43 +02:00
|
|
|
padding: 2px;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2018-02-23 15:37:19 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& button {
|
2019-08-04 21:57:43 +02:00
|
|
|
font-weight: 700;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(240deg 100% 50%);
|
2019-08-04 21:57:43 +02:00
|
|
|
}
|
2018-02-23 15:37:19 +01:00
|
|
|
|
2019-08-04 22:02:02 +02:00
|
|
|
.widget-choices-heading {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2018-02-23 15:37:19 +01:00
|
|
|
}
|
2018-05-31 02:00:40 +02:00
|
|
|
|
2021-07-24 09:54:42 +02:00
|
|
|
.todo-widget {
|
2024-05-22 23:49:37 +02:00
|
|
|
.todo-task-list-title-bar {
|
2024-06-05 19:36:57 +02:00
|
|
|
flex: 1 1 auto;
|
2024-05-22 23:49:37 +02:00
|
|
|
display: flex;
|
2024-06-05 19:36:57 +02:00
|
|
|
/* Ensure controls remain visible on narrower screens. */
|
|
|
|
flex-flow: row wrap;
|
2024-05-22 23:49:37 +02:00
|
|
|
gap: 5px;
|
2024-06-05 19:36:57 +02:00
|
|
|
margin-bottom: var(--markdown-interelement-space-px);
|
2024-05-22 23:49:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.add-task-bar {
|
|
|
|
display: flex;
|
|
|
|
/* Ensure controls remain visible on narrower screens. */
|
|
|
|
flex-flow: row wrap;
|
|
|
|
gap: 5px;
|
|
|
|
}
|
|
|
|
|
2021-07-24 09:54:42 +02:00
|
|
|
/* For the box-shadow to be visible on the left */
|
2023-01-08 17:09:14 +01:00
|
|
|
.add-task,
|
|
|
|
.add-desc {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
2021-07-24 09:54:42 +02:00
|
|
|
}
|
2022-02-23 20:25:45 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& label.checkbox {
|
2023-01-08 17:09:14 +01:00
|
|
|
display: flex; /* Arrange that a multi-line description line wraps properly. */
|
2024-05-22 23:22:30 +02:00
|
|
|
/* Keep checkboxes vertically aligned, including with multi-line tasks. */
|
|
|
|
align-items: baseline;
|
|
|
|
/* Reset things from .new-style */
|
|
|
|
gap: 5px;
|
|
|
|
position: static;
|
|
|
|
min-height: 0;
|
2023-01-08 17:09:14 +01:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& input[type="checkbox"] {
|
2024-05-08 22:21:59 +02:00
|
|
|
~ .custom-checkbox {
|
2024-05-22 23:22:30 +02:00
|
|
|
position: static;
|
|
|
|
margin-right: 0;
|
|
|
|
|
2023-01-08 17:09:14 +01:00
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 2px solid hsl(156deg 28% 70%);
|
2023-01-08 17:09:14 +01:00
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
filter: brightness(1);
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-05-08 22:21:59 +02:00
|
|
|
&:checked ~ .custom-checkbox {
|
2023-01-08 17:09:14 +01:00
|
|
|
background-image: url("../images/checkbox-white.svg");
|
|
|
|
background-size: 75%;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-repeat: no-repeat;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(156deg 41% 40%);
|
|
|
|
border: 2px solid hsl(156deg 41% 40%);
|
2023-01-08 17:09:14 +01:00
|
|
|
}
|
|
|
|
|
2024-05-08 22:21:59 +02:00
|
|
|
&:disabled ~ .custom-checkbox {
|
2023-01-08 17:09:14 +01:00
|
|
|
opacity: 0.5;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2024-05-08 22:21:59 +02:00
|
|
|
&:hover ~ .custom-checkbox {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 30% 50%);
|
2023-01-08 17:09:14 +01:00
|
|
|
}
|
|
|
|
|
2024-05-08 22:21:59 +02:00
|
|
|
&:focus ~ .custom-checkbox {
|
2023-03-20 22:08:47 +01:00
|
|
|
outline-color: hsl(0deg 0% 100% / 0%);
|
2023-01-08 17:09:14 +01:00
|
|
|
}
|
|
|
|
}
|
2022-02-23 20:25:45 +01:00
|
|
|
}
|
2021-07-24 09:54:42 +02:00
|
|
|
}
|
|
|
|
|
2019-08-04 22:11:14 +02:00
|
|
|
.todo-widget,
|
|
|
|
.poll-widget {
|
2023-03-17 22:10:10 +01:00
|
|
|
& h4 {
|
2019-08-04 22:11:14 +02:00
|
|
|
font-size: 18px;
|
|
|
|
font-weight: 600;
|
2022-07-07 12:08:06 +02:00
|
|
|
|
|
|
|
/* for example in help `?` widget */
|
|
|
|
&.reduced-font-size {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-08-04 22:11:14 +02:00
|
|
|
}
|
2018-05-31 02:00:40 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& li {
|
2024-06-05 17:13:51 +02:00
|
|
|
display: flex;
|
|
|
|
gap: 5px;
|
|
|
|
align-items: baseline;
|
2019-08-04 22:11:14 +02:00
|
|
|
list-style: none;
|
2024-06-05 17:13:51 +02:00
|
|
|
margin: 0 0 5px;
|
2019-08-04 22:11:14 +02:00
|
|
|
}
|
2018-06-26 13:30:59 +02:00
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& ul {
|
2024-05-22 23:21:50 +02:00
|
|
|
margin: 0 0 5px;
|
2019-08-04 22:11:14 +02:00
|
|
|
padding: 0;
|
|
|
|
}
|
2023-03-27 11:24:07 +02:00
|
|
|
|
2023-06-20 11:44:03 +02:00
|
|
|
& input[type="text"] {
|
2024-05-22 23:49:37 +02:00
|
|
|
/* Reset from zulip.css */
|
|
|
|
height: unset;
|
|
|
|
|
2023-06-20 11:44:03 +02:00
|
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
|
|
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);
|
2023-07-21 23:08:07 +02:00
|
|
|
transition:
|
|
|
|
border linear 0.2s,
|
|
|
|
box-shadow linear 0.2s;
|
2023-06-20 11:44:03 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
color: hsl(0deg 0% 33%);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: hsl(206deg 80% 62% / 80%);
|
|
|
|
outline: 0;
|
2023-08-16 06:17:17 +02:00
|
|
|
box-shadow: none;
|
|
|
|
background-color: var(--color-background-widget-input);
|
2023-06-20 11:44:03 +02:00
|
|
|
}
|
|
|
|
}
|
2018-05-31 02:00:40 +02:00
|
|
|
}
|
|
|
|
|
2019-08-04 22:11:14 +02:00
|
|
|
.poll-widget {
|
2024-05-22 23:49:37 +02:00
|
|
|
.poll-option-bar {
|
|
|
|
display: flex;
|
|
|
|
/* Ensure controls remain visible on narrower screens. */
|
|
|
|
flex-flow: row wrap;
|
|
|
|
gap: 5px;
|
2023-01-08 17:09:14 +01:00
|
|
|
}
|
|
|
|
|
2024-05-22 23:49:37 +02:00
|
|
|
.poll-option {
|
|
|
|
font-weight: 400;
|
2021-07-24 09:54:42 +02:00
|
|
|
}
|
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& span.poll-option {
|
2019-08-04 22:11:14 +02:00
|
|
|
font-weight: 600;
|
2024-06-05 17:13:51 +02:00
|
|
|
/* Start with max-content, but allow options
|
|
|
|
to shrink, so that voting names wrap comfortably. */
|
|
|
|
flex: 0 1 max-content;
|
2019-08-04 22:11:14 +02:00
|
|
|
}
|
2018-06-26 13:30:59 +02:00
|
|
|
|
2019-08-04 23:01:03 +02:00
|
|
|
.poll-vote {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(156deg 41% 40%);
|
|
|
|
border-color: hsl(156deg 28% 70%);
|
2021-09-29 13:23:02 +02:00
|
|
|
border-style: solid;
|
2023-01-08 17:09:14 +01:00
|
|
|
font-weight: 600;
|
2021-09-29 13:23:02 +02:00
|
|
|
border-radius: 3px;
|
2023-01-08 17:09:14 +01:00
|
|
|
min-width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
font-size: 13px;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2018-06-26 13:30:59 +02:00
|
|
|
|
2019-08-04 23:01:03 +02:00
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 30% 50%);
|
2019-08-04 23:01:03 +02:00
|
|
|
}
|
2021-10-27 03:09:23 +02:00
|
|
|
|
2021-09-29 13:23:02 +02:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(156deg 41% 90%);
|
2021-09-29 13:23:02 +02:00
|
|
|
}
|
|
|
|
}
|
2021-10-27 03:09:23 +02:00
|
|
|
|
2021-09-29 13:23:02 +02:00
|
|
|
.poll-names {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 45%);
|
2024-06-05 17:13:51 +02:00
|
|
|
/* Aim for 50% of the flexbox for voting names,
|
|
|
|
but also shrink modestly (.5) adjacent a long
|
|
|
|
option. */
|
|
|
|
flex: 1 0.5 50%;
|
2019-08-04 22:53:25 +02:00
|
|
|
}
|
2019-08-04 22:51:55 +02:00
|
|
|
}
|
|
|
|
|
2019-08-05 01:44:37 +02:00
|
|
|
button {
|
|
|
|
&.task {
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
background-color: transparent;
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 28% 70%);
|
2019-08-05 01:44:37 +02:00
|
|
|
margin-right: 4px;
|
|
|
|
border-radius: 3px;
|
2018-07-02 19:57:01 +02:00
|
|
|
|
2019-08-05 01:44:37 +02:00
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(194deg 60% 40%);
|
2019-08-05 01:44:37 +02:00
|
|
|
}
|
|
|
|
}
|
2018-07-02 19:57:01 +02:00
|
|
|
|
2020-08-06 02:34:58 +02:00
|
|
|
&.add-task,
|
2023-01-08 17:09:14 +01:00
|
|
|
&.poll-option {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(156deg 41% 40%);
|
|
|
|
border: 1px solid hsl(156deg 28% 70%);
|
2024-05-22 23:49:37 +02:00
|
|
|
width: max-content;
|
|
|
|
flex: 0 0 auto;
|
2020-08-06 02:34:58 +02:00
|
|
|
border-radius: 3px;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2023-01-08 17:09:14 +01:00
|
|
|
padding: 4px;
|
|
|
|
padding-left: 14px;
|
|
|
|
padding-right: 14px;
|
|
|
|
transition: all 0.2s ease;
|
2020-08-06 02:34:58 +02:00
|
|
|
|
2023-01-08 17:09:14 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 30% 50%);
|
2023-01-08 17:09:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 30% 40%);
|
|
|
|
color: hsl(156deg 44% 43%);
|
|
|
|
background-color: hsl(154deg 33% 96%);
|
2020-08-06 02:34:58 +02:00
|
|
|
}
|
|
|
|
}
|
2018-07-02 19:57:01 +02:00
|
|
|
}
|
|
|
|
|
2024-05-22 23:49:37 +02:00
|
|
|
input {
|
2019-08-05 01:42:06 +02:00
|
|
|
&.add-task,
|
2020-02-22 11:50:24 +01:00
|
|
|
&.add-desc,
|
2019-08-05 01:42:06 +02:00
|
|
|
&.poll-option,
|
2022-07-29 04:25:31 +02:00
|
|
|
&.poll-question,
|
|
|
|
&.todo-task-list-title {
|
2024-06-05 19:36:57 +02:00
|
|
|
flex: 1 0 auto;
|
2019-08-05 01:42:06 +02:00
|
|
|
padding: 4px 6px;
|
2024-05-22 23:49:37 +02:00
|
|
|
}
|
2018-06-26 13:30:59 +02:00
|
|
|
}
|
|
|
|
|
2018-07-02 19:57:01 +02:00
|
|
|
.widget-error {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(1deg 45% 50%);
|
2018-07-02 19:57:01 +02:00
|
|
|
font-size: 12px;
|
|
|
|
}
|
2018-12-22 05:02:36 +01:00
|
|
|
|
|
|
|
.poll-question-check,
|
2022-07-29 04:25:31 +02:00
|
|
|
.poll-question-remove,
|
|
|
|
.todo-task-list-title-check,
|
|
|
|
.todo-task-list-title-remove {
|
2024-06-05 19:36:57 +02:00
|
|
|
align-self: stretch;
|
|
|
|
/* TODO: Re-express the 30.5px value here
|
|
|
|
as part of information density work. */
|
|
|
|
flex: 0 0 30.5px;
|
|
|
|
min-height: 30.5px;
|
2018-12-22 05:02:36 +01:00
|
|
|
border-radius: 3px;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
|
|
background-color: hsl(0deg 0% 100%);
|
2018-12-22 05:02:36 +01:00
|
|
|
|
2019-08-05 01:48:08 +02:00
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(0deg 0% 60%);
|
2019-08-05 01:48:08 +02:00
|
|
|
}
|
2018-12-22 05:02:36 +01:00
|
|
|
}
|
|
|
|
|
2022-07-29 04:25:31 +02:00
|
|
|
.poll-edit-question,
|
|
|
|
.todo-edit-task-list-title {
|
2018-12-22 05:02:36 +01:00
|
|
|
opacity: 0.4;
|
|
|
|
|
2019-08-05 01:49:23 +02:00
|
|
|
&:hover {
|
2020-08-04 23:58:56 +02:00
|
|
|
opacity: 1;
|
2019-08-05 01:49:23 +02:00
|
|
|
}
|
2018-12-22 05:02:36 +01:00
|
|
|
}
|
|
|
|
|
2024-06-05 19:36:57 +02:00
|
|
|
.poll-question-bar {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
/* Ensure controls remain visible on narrower screens. */
|
|
|
|
flex-flow: row wrap;
|
|
|
|
gap: 5px;
|
|
|
|
margin-bottom: var(--markdown-interelement-space-px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll-widget-header-area,
|
|
|
|
.todo-widget-header-area {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
gap: 5px;
|
2018-12-22 05:02:36 +01:00
|
|
|
}
|
2019-02-27 07:20:12 +01:00
|
|
|
|
|
|
|
.current-user-vote {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(156deg 10% 90% / 90%);
|
2019-02-27 07:20:12 +01:00
|
|
|
}
|