2015-08-27 03:51:56 +08:00
|
|
|
.menu-panel.slide-in {
|
2015-08-26 00:50:19 +08:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("header");
|
2015-09-11 00:49:54 +08:00
|
|
|
|
|
|
|
.panel-body {
|
2020-03-24 01:25:33 +08:00
|
|
|
width: 100%;
|
2015-09-11 00:49:54 +08:00
|
|
|
}
|
2015-08-27 02:42:42 +08:00
|
|
|
}
|
2018-12-12 01:15:20 +08:00
|
|
|
.header-cloak {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-08-27 02:42:42 +08:00
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
.menu-panel.drop-down {
|
2015-08-27 05:21:20 +08:00
|
|
|
position: absolute;
|
2015-09-09 06:31:44 +08:00
|
|
|
// positions are relative to the .d-header .panel div
|
|
|
|
top: 100%; // directly underneath .panel
|
|
|
|
right: -10px; // 10px to the right of .panel - adjust as needed
|
2020-08-11 04:17:15 +08:00
|
|
|
max-height: 80vh;
|
2015-08-27 02:42:42 +08:00
|
|
|
}
|
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
.menu-panel {
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("menu-panel");
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("header");
|
2015-08-30 07:26:02 +08:00
|
|
|
padding: 0.5em;
|
2020-12-18 11:50:50 +08:00
|
|
|
width: 320px;
|
2020-08-11 04:17:15 +08:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-02-21 21:55:38 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
2015-09-02 05:33:37 +08:00
|
|
|
hr {
|
|
|
|
margin: 3px 0;
|
|
|
|
}
|
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
.panel-header {
|
2015-08-26 11:44:48 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
|
|
|
}
|
|
|
|
|
2015-08-26 00:50:19 +08:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
.panel-body {
|
2020-08-11 04:17:15 +08:00
|
|
|
display: flex;
|
2018-12-12 01:15:20 +08:00
|
|
|
touch-action: pan-y pinch-zoom;
|
2020-08-11 04:17:15 +08:00
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-body-contents {
|
|
|
|
max-height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-body-bottom {
|
|
|
|
display: flex;
|
|
|
|
flex: 1 0 0%; // safari height fix
|
|
|
|
margin-top: 0.5em;
|
2020-12-18 23:03:51 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
|
2020-08-11 04:17:15 +08:00
|
|
|
.show-all {
|
2021-06-03 12:14:24 +08:00
|
|
|
display: flex;
|
2020-08-11 04:17:15 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
button {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.notifications-dismiss {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2020-08-13 05:14:48 +08:00
|
|
|
.btn {
|
2020-08-11 04:17:15 +08:00
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
color: var(--primary-high);
|
|
|
|
&:hover {
|
|
|
|
background: var(--primary-low);
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2015-08-27 03:51:56 +08:00
|
|
|
}
|
2019-01-18 00:42:03 +08:00
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
2015-08-27 03:51:56 +08:00
|
|
|
}
|
|
|
|
|
2023-02-21 23:40:22 +08:00
|
|
|
.search-menu .menu-panel {
|
|
|
|
width: 500px;
|
|
|
|
}
|
|
|
|
|
2022-07-19 10:35:02 +08:00
|
|
|
.user-menu.revamped {
|
|
|
|
right: 0;
|
|
|
|
width: 320px;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.panel-body-bottom {
|
|
|
|
flex: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-tabs-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
border-left: 1px solid var(--primary-low);
|
2022-08-19 18:02:11 +08:00
|
|
|
padding: 0.75em 0 0;
|
2022-09-21 04:48:00 +08:00
|
|
|
overflow-y: auto;
|
2023-03-22 01:49:19 +08:00
|
|
|
overscroll-behavior: contain;
|
2022-07-19 10:35:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabs-list {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
display: flex;
|
|
|
|
padding: 0.857em;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
background-color: var(--tertiary-med-or-tertiary);
|
|
|
|
position: absolute;
|
|
|
|
right: 6px;
|
|
|
|
top: 6px;
|
|
|
|
font-size: var(--font-down-3);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-selected);
|
2022-07-19 10:35:02 +08:00
|
|
|
}
|
|
|
|
&:hover {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-hover);
|
2022-07-19 10:35:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-19 18:02:11 +08:00
|
|
|
.bottom-tabs {
|
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
|
2022-07-19 10:35:02 +08:00
|
|
|
.panel-body-contents {
|
|
|
|
display: flex;
|
2022-09-21 00:31:56 +08:00
|
|
|
flex-direction: row-reverse;
|
2022-07-19 10:35:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.quick-access-panel {
|
|
|
|
width: 320px;
|
|
|
|
padding: 0.75em;
|
2023-03-21 09:46:13 +08:00
|
|
|
padding-bottom: max(env(safe-area-inset-bottom), 0.75em);
|
2022-07-19 10:35:02 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
2022-08-29 10:29:21 +08:00
|
|
|
min-width: 0; // makes sure menu tabs don't go off screen
|
2022-07-19 10:35:02 +08:00
|
|
|
|
|
|
|
.double-user,
|
|
|
|
.multi-user {
|
|
|
|
white-space: unset;
|
|
|
|
}
|
2022-08-05 12:55:00 +08:00
|
|
|
|
2022-08-08 22:24:04 +08:00
|
|
|
.item-label {
|
2023-02-17 13:54:56 +08:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2022-08-05 12:55:00 +08:00
|
|
|
color: var(--primary);
|
|
|
|
}
|
2022-08-08 22:24:04 +08:00
|
|
|
|
|
|
|
li {
|
|
|
|
background-color: var(--secondary);
|
|
|
|
|
|
|
|
&.unread,
|
|
|
|
&.pending {
|
|
|
|
background-color: var(--tertiary-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-hover);
|
2022-08-08 22:24:04 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-within {
|
2023-02-21 17:15:49 +08:00
|
|
|
background: var(--d-hover);
|
2022-08-08 22:24:04 +08:00
|
|
|
a {
|
|
|
|
// we don't need the link focus because we're styling the parent
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-08-05 12:55:00 +08:00
|
|
|
}
|
2022-08-19 18:02:11 +08:00
|
|
|
|
|
|
|
#quick-access-profile {
|
|
|
|
display: inline;
|
2022-08-26 03:18:26 +08:00
|
|
|
max-height: 99%; // macOS Chrome sometimes adds an unneeded scrollbar at 100%
|
|
|
|
|
|
|
|
ul {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
height: 100%;
|
|
|
|
align-items: center;
|
|
|
|
overflow-y: auto; // really short viewports
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
max-height: 3em; // prevent buttons from getting too tall
|
|
|
|
> * {
|
|
|
|
// button, a, and everything else
|
|
|
|
height: 100%;
|
|
|
|
align-items: center;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
}
|
2023-04-08 01:55:11 +08:00
|
|
|
img.emoji {
|
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
|
|
|
padding-top: 0.2em;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2022-08-26 03:18:26 +08:00
|
|
|
.d-icon {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-08-19 18:02:11 +08:00
|
|
|
|
2022-08-25 22:14:42 +08:00
|
|
|
.set-user-status {
|
|
|
|
.emoji {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-19 18:02:11 +08:00
|
|
|
.profile-tab-btn {
|
2022-08-25 22:14:42 +08:00
|
|
|
.relative-date {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-3);
|
2022-08-25 22:14:42 +08:00
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
|
|
|
|
2022-08-19 18:02:11 +08:00
|
|
|
justify-content: unset;
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-large);
|
2022-08-19 18:02:11 +08:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.do-not-disturb {
|
|
|
|
.d-icon-toggle-on {
|
|
|
|
color: var(--tertiary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-08-05 12:55:00 +08:00
|
|
|
}
|
|
|
|
|
2020-09-29 09:59:45 +08:00
|
|
|
.hamburger-panel {
|
2021-01-15 07:25:19 +08:00
|
|
|
a.widget-link {
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
2020-09-29 09:59:45 +08:00
|
|
|
.panel-body {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.badge-category {
|
|
|
|
max-width: 100px;
|
|
|
|
}
|
2020-08-13 04:03:08 +08:00
|
|
|
}
|
|
|
|
|
2015-09-04 03:57:00 +08:00
|
|
|
.menu-links.columned {
|
|
|
|
li {
|
|
|
|
width: 50%;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-29 02:32:53 +08:00
|
|
|
.menu-panel {
|
2021-06-03 12:14:24 +08:00
|
|
|
.widget-link,
|
|
|
|
.categories-link {
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
display: block;
|
|
|
|
color: var(--primary);
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-hover);
|
2021-06-03 12:14:24 +08:00
|
|
|
outline: none;
|
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
|
2021-06-03 12:14:24 +08:00
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-medium);
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
2015-09-05 04:56:02 +08:00
|
|
|
|
|
|
|
.new {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2015-09-05 04:56:02 +08:00
|
|
|
margin-left: 0.5em;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2015-09-05 04:56:02 +08:00
|
|
|
}
|
2021-06-03 12:14:24 +08:00
|
|
|
|
|
|
|
&.show-help,
|
|
|
|
&.filter {
|
|
|
|
color: var(--tertiary);
|
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
li.category-link {
|
|
|
|
float: left;
|
|
|
|
background-color: transparent;
|
2018-02-03 08:03:25 +08:00
|
|
|
display: inline-flex;
|
2018-08-11 02:00:06 +08:00
|
|
|
align-items: center;
|
2018-05-24 16:15:57 +08:00
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
width: 50%;
|
|
|
|
box-sizing: border-box;
|
2018-08-04 05:43:07 +08:00
|
|
|
a {
|
2018-08-07 21:47:01 +08:00
|
|
|
display: inline-flex;
|
2018-08-04 05:43:07 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
2020-05-29 14:05:21 +08:00
|
|
|
|
|
|
|
.category-name {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2020-05-29 14:05:21 +08:00
|
|
|
}
|
2018-08-04 05:43:07 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
.badge-notification {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2015-08-26 00:50:19 +08:00
|
|
|
background-color: transparent;
|
2015-08-29 02:32:53 +08:00
|
|
|
display: inline;
|
2015-09-03 03:42:20 +08:00
|
|
|
padding: 0;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-large);
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
.badge-wrapper {
|
2018-06-08 17:49:31 +08:00
|
|
|
&.bar,
|
|
|
|
&.bullet {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2018-08-06 23:11:29 +08:00
|
|
|
padding: 0 0 0 0.15em;
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
&.box {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2018-02-03 08:03:25 +08:00
|
|
|
+ a.badge.badge-notification {
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
|
|
|
span {
|
2018-02-17 04:58:10 +08:00
|
|
|
z-index: z("base") * -1;
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
|
2015-08-26 00:50:19 +08:00
|
|
|
// note these topic counts only appear for anons in the category hamburger drop down
|
|
|
|
b.topics-count {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2015-08-26 00:50:19 +08:00
|
|
|
font-weight: normal;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
2015-09-03 03:42:20 +08:00
|
|
|
|
2019-06-28 01:26:14 +08:00
|
|
|
div.discourse-tags {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2019-06-28 01:26:14 +08:00
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
2015-08-27 02:42:42 +08:00
|
|
|
|
2015-08-29 02:32:53 +08:00
|
|
|
.user-menu {
|
2019-09-09 23:03:57 +08:00
|
|
|
.quick-access-panel {
|
2018-03-23 15:19:15 +08:00
|
|
|
width: 100%;
|
2020-08-11 04:17:15 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 0;
|
|
|
|
max-height: 100%;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2020-08-29 08:20:59 +08:00
|
|
|
padding-top: 0.75em;
|
2020-08-11 04:17:15 +08:00
|
|
|
margin-top: -1px;
|
2021-02-04 00:45:54 +08:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
h3 {
|
|
|
|
padding: 0 0.4em;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
2019-02-01 02:59:49 +08:00
|
|
|
.d-icon,
|
|
|
|
&:hover .d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
|
|
|
.icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
|
2021-04-01 08:22:40 +08:00
|
|
|
.btn-primary {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-11 04:17:15 +08:00
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column wrap;
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
|
2015-08-29 02:32:53 +08:00
|
|
|
li {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-selected);
|
2020-08-11 04:17:15 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
list-style-type: none;
|
2017-09-15 02:26:31 +08:00
|
|
|
|
|
|
|
// This is until other languages remove the HTML from within
|
|
|
|
// notifications. It can then be removed
|
2018-11-27 05:49:57 +08:00
|
|
|
div .fa {
|
2017-09-15 02:26:31 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-12-18 23:03:51 +08:00
|
|
|
span.double-user,
|
2020-11-09 13:06:52 +08:00
|
|
|
// e.g., "username, username2"
|
|
|
|
span.multi-user
|
|
|
|
// e.g., "username, username2, and n others"
|
|
|
|
{
|
|
|
|
display: inline-flex;
|
|
|
|
max-width: 100%;
|
|
|
|
align-items: baseline;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2020-12-18 23:03:51 +08:00
|
|
|
span.multi-user
|
2020-11-09 13:06:52 +08:00
|
|
|
// e.g., "username, username2, and n others"
|
|
|
|
{
|
|
|
|
span.multi-username:nth-of-type(2) {
|
|
|
|
// margin between username2 and "and n others"
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// truncate when usernames are very long
|
|
|
|
span.multi-username {
|
|
|
|
@include ellipsis;
|
|
|
|
flex: 0 1 auto;
|
2020-11-10 07:05:09 +08:00
|
|
|
min-width: 1.2em;
|
2020-11-09 13:06:52 +08:00
|
|
|
max-width: 10em;
|
|
|
|
&:nth-of-type(2) {
|
|
|
|
// margin for comma between username and username2
|
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-24 16:10:01 +08:00
|
|
|
&:hover {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--d-hover);
|
2018-06-08 17:49:31 +08:00
|
|
|
outline: none;
|
2018-04-14 00:53:04 +08:00
|
|
|
}
|
|
|
|
|
2021-05-24 16:10:01 +08:00
|
|
|
&:focus-within {
|
2023-02-21 17:15:49 +08:00
|
|
|
background: var(--d-hover);
|
2021-05-24 16:10:01 +08:00
|
|
|
a {
|
|
|
|
// we don't need the link focus because we're styling the parent
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
.btn-flat:focus {
|
|
|
|
// undo default btn-flat style
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-19 18:02:11 +08:00
|
|
|
a,
|
|
|
|
.profile-tab-btn {
|
2020-08-11 04:17:15 +08:00
|
|
|
display: flex;
|
2021-03-18 20:29:27 +08:00
|
|
|
margin: 0.25em;
|
|
|
|
padding: 0em 0.25em;
|
2021-01-21 01:50:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2020-08-11 04:17:15 +08:00
|
|
|
padding: 0.25em 0.5em;
|
2021-03-18 20:29:27 +08:00
|
|
|
}
|
2020-05-29 14:05:21 +08:00
|
|
|
|
2021-03-18 20:29:27 +08:00
|
|
|
a,
|
|
|
|
button {
|
2018-08-10 00:04:34 +08:00
|
|
|
> div {
|
|
|
|
overflow: hidden; // clears the text from wrapping below icons
|
2020-04-01 08:55:11 +08:00
|
|
|
overflow-wrap: anywhere;
|
2020-04-01 09:57:09 +08:00
|
|
|
@supports not (overflow-wrap: anywhere) {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
2019-09-09 23:03:57 +08:00
|
|
|
// Truncate items with more than 2 lines.
|
2020-08-29 08:20:59 +08:00
|
|
|
@include line-clamp(2);
|
2018-08-10 00:04:34 +08:00
|
|
|
}
|
2018-04-14 00:53:04 +08:00
|
|
|
}
|
|
|
|
|
2015-08-29 02:32:53 +08:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2017-11-08 02:48:35 +08:00
|
|
|
li:not(.show-all) {
|
2020-05-29 14:05:21 +08:00
|
|
|
padding: 0;
|
2020-08-11 04:17:15 +08:00
|
|
|
align-self: flex-start;
|
|
|
|
width: 100%;
|
2018-11-27 05:49:57 +08:00
|
|
|
.d-icon {
|
2020-05-30 04:48:47 +08:00
|
|
|
padding-top: 0.2em;
|
2020-05-29 14:05:21 +08:00
|
|
|
margin-right: 0.5em;
|
2017-11-08 02:48:35 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
.is-warning {
|
2022-11-23 08:46:35 +08:00
|
|
|
.d-icon-envelope {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--danger);
|
2015-08-29 02:32:53 +08:00
|
|
|
}
|
|
|
|
}
|
2022-08-08 22:24:04 +08:00
|
|
|
.read {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2015-08-29 02:32:53 +08:00
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
2019-12-04 11:40:59 +08:00
|
|
|
.spinner-container {
|
|
|
|
min-height: 2em;
|
2015-08-29 02:32:53 +08:00
|
|
|
}
|
|
|
|
.spinner {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2019-09-09 23:03:57 +08:00
|
|
|
.show-all a {
|
2017-11-08 02:48:35 +08:00
|
|
|
width: 100%;
|
2019-09-09 23:03:57 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
min-height: 30px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-high);
|
|
|
|
background: var(--blend-primary-secondary-5);
|
2017-11-08 02:48:35 +08:00
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
|
|
|
background: var(--primary-low);
|
2017-11-08 02:48:35 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
/* as a big ol' click target, don't let text inside be selected */
|
|
|
|
@include unselectable;
|
|
|
|
}
|
2020-08-29 08:20:59 +08:00
|
|
|
}
|
2017-11-07 23:41:12 +08:00
|
|
|
|
2022-11-25 12:33:26 +08:00
|
|
|
.hamburger-panel .menu-panel.slide-in {
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
.panel-body {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.panel-body-contents {
|
|
|
|
max-height: unset;
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.header-cloak {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
position: fixed;
|
|
|
|
background-color: black;
|
|
|
|
--opacity: 0.5;
|
|
|
|
opacity: var(--opacity);
|
2023-02-21 21:55:38 +08:00
|
|
|
top: var(--header-top);
|
2022-11-25 12:33:26 +08:00
|
|
|
left: 0;
|
|
|
|
display: none;
|
|
|
|
touch-action: pan-y pinch-zoom;
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
&.animate {
|
|
|
|
transition: opacity 0.1s linear;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-panel.slide-in {
|
2023-02-21 21:55:38 +08:00
|
|
|
top: var(--header-top);
|
|
|
|
box-sizing: border-box;
|
2023-05-01 22:41:28 +08:00
|
|
|
// ensure there's always space to click outside on tiny devices
|
|
|
|
max-width: 90vw;
|
2023-02-21 21:55:38 +08:00
|
|
|
|
2023-03-14 22:41:38 +08:00
|
|
|
--100dvh: 100%;
|
|
|
|
@supports (height: 100dvh) {
|
|
|
|
--100dvh: 100dvh;
|
|
|
|
}
|
2023-02-21 21:55:38 +08:00
|
|
|
|
2023-03-17 07:23:15 +08:00
|
|
|
--base-height: calc(var(--100dvh) - var(--header-top));
|
2023-02-21 21:55:38 +08:00
|
|
|
|
|
|
|
height: var(--base-height);
|
|
|
|
|
|
|
|
body.footer-nav-ipad & {
|
|
|
|
height: calc(var(--base-height) - var(--footer-nav-height));
|
|
|
|
}
|
|
|
|
|
2022-11-25 12:33:26 +08:00
|
|
|
transform: translateX(var(--offset));
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
&.animate {
|
|
|
|
transition: transform 0.1s linear;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.moving,
|
|
|
|
&.animate {
|
|
|
|
// PERF: only render first 20 items in a list to allow for smooth
|
|
|
|
// pan events
|
|
|
|
li:nth-child(n + 20) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|