2015-08-26 15:51:56 -04:00
|
|
|
.menu-panel.slide-in {
|
2015-08-25 12:50:19 -04:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
2018-02-20 12:18:20 -05:00
|
|
|
box-shadow: shadow("header");
|
2018-12-11 12:15:20 -05:00
|
|
|
&.animate {
|
|
|
|
transition: right 0.2s ease-out, left 0.2s ease-out;
|
|
|
|
}
|
2015-09-10 12:49:54 -04:00
|
|
|
|
|
|
|
.panel-body {
|
2020-03-23 13:25:33 -04:00
|
|
|
width: 100%;
|
2015-09-10 12:49:54 -04:00
|
|
|
}
|
2015-08-26 14:42:42 -04:00
|
|
|
}
|
2018-12-11 12:15:20 -05:00
|
|
|
.header-cloak {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-08-26 14:42:42 -04:00
|
|
|
|
2015-08-26 15:51:56 -04:00
|
|
|
.menu-panel.drop-down {
|
2015-08-26 17:21:20 -04:00
|
|
|
position: absolute;
|
2015-09-08 18:31:44 -04: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
|
2015-08-26 14:42:42 -04:00
|
|
|
}
|
|
|
|
|
2015-08-26 15:51:56 -04:00
|
|
|
.menu-panel {
|
2017-08-16 14:14:44 -04:00
|
|
|
border: 1px solid $primary-low;
|
2018-02-20 12:18:20 -05:00
|
|
|
box-shadow: shadow("menu-panel");
|
2015-08-26 14:42:42 -04:00
|
|
|
background-color: $secondary;
|
2018-01-16 19:05:12 -05:00
|
|
|
z-index: z("header");
|
2015-08-29 19:26:02 -04:00
|
|
|
padding: 0.5em;
|
2015-08-25 12:50:19 -04:00
|
|
|
width: 300px;
|
2015-08-29 19:26:02 -04:00
|
|
|
|
2015-09-01 17:33:37 -04:00
|
|
|
hr {
|
|
|
|
margin: 3px 0;
|
|
|
|
}
|
|
|
|
|
2015-08-26 15:51:56 -04:00
|
|
|
.panel-header {
|
2015-08-25 23:44:48 -04:00
|
|
|
position: absolute;
|
|
|
|
right: 20px;
|
|
|
|
}
|
|
|
|
|
2015-08-25 12:50:19 -04:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-08-26 15:51:56 -04:00
|
|
|
.panel-body {
|
2018-12-11 12:15:20 -05:00
|
|
|
touch-action: pan-y pinch-zoom;
|
2015-08-26 15:51:56 -04:00
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
2019-11-03 18:47:53 -05:00
|
|
|
max-height: 100vh;
|
2015-08-26 15:51:56 -04:00
|
|
|
}
|
2019-01-17 11:42:03 -05:00
|
|
|
|
|
|
|
.badge-notification {
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
2015-08-26 15:51:56 -04:00
|
|
|
}
|
|
|
|
|
2015-09-03 15:57:00 -04:00
|
|
|
.menu-links.columned {
|
|
|
|
li {
|
|
|
|
width: 50%;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-28 14:32:53 -04:00
|
|
|
.menu-panel {
|
2018-08-03 17:43:07 -04:00
|
|
|
li,
|
|
|
|
li.heading {
|
2019-06-27 13:26:14 -04:00
|
|
|
a.widget-link {
|
2015-08-29 19:26:02 -04:00
|
|
|
padding: 0.25em 0.5em;
|
2015-08-25 12:50:19 -04:00
|
|
|
display: block;
|
2018-06-08 05:49:31 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-06-11 22:20:14 -04:00
|
|
|
background-color: $highlight-medium;
|
2018-04-13 12:53:04 -04:00
|
|
|
outline: none;
|
2015-08-25 12:50:19 -04:00
|
|
|
}
|
|
|
|
}
|
2015-09-04 16:56:02 -04:00
|
|
|
|
|
|
|
.new {
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-down-1;
|
2015-09-04 16:56:02 -04:00
|
|
|
margin-left: 0.5em;
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-09-04 16:56:02 -04:00
|
|
|
}
|
2015-08-25 12:50:19 -04:00
|
|
|
}
|
|
|
|
|
2019-10-03 21:19:03 -04:00
|
|
|
.categories-link {
|
|
|
|
display: block;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
}
|
|
|
|
|
2015-08-25 12:50:19 -04:00
|
|
|
li.category-link {
|
|
|
|
float: left;
|
|
|
|
background-color: transparent;
|
2018-02-02 19:03:25 -05:00
|
|
|
display: inline-flex;
|
2018-08-10 14:00:06 -04:00
|
|
|
align-items: center;
|
2018-05-24 04:15:57 -04:00
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
width: 50%;
|
|
|
|
box-sizing: border-box;
|
2018-08-03 17:43:07 -04:00
|
|
|
a {
|
2018-08-07 09:47:01 -04:00
|
|
|
display: inline-flex;
|
2018-08-03 17:43:07 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
2015-08-25 12:50:19 -04:00
|
|
|
.badge-notification {
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-25 12:50:19 -04:00
|
|
|
background-color: transparent;
|
2015-08-28 14:32:53 -04:00
|
|
|
display: inline;
|
2015-09-02 15:42:20 -04:00
|
|
|
padding: 0;
|
2018-02-02 19:03:25 -05:00
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-large;
|
|
|
|
}
|
|
|
|
.badge-wrapper {
|
2018-06-08 05:49:31 -04:00
|
|
|
&.bar,
|
|
|
|
&.bullet {
|
2018-02-02 19:03:25 -05:00
|
|
|
color: $primary;
|
2018-08-06 11:11:29 -04:00
|
|
|
padding: 0 0 0 0.15em;
|
2018-02-02 19:03:25 -05:00
|
|
|
}
|
|
|
|
&.box {
|
|
|
|
color: $secondary;
|
|
|
|
+ a.badge.badge-notification {
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
|
|
|
span {
|
2018-02-16 15:58:10 -05:00
|
|
|
z-index: z("base") * -1;
|
2018-02-02 19:03:25 -05:00
|
|
|
}
|
|
|
|
}
|
2015-08-25 12:50:19 -04:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
|
2015-08-25 12:50:19 -04:00
|
|
|
// note these topic counts only appear for anons in the category hamburger drop down
|
|
|
|
b.topics-count {
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-25 12:50:19 -04:00
|
|
|
font-weight: normal;
|
2018-02-02 19:03:25 -05:00
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
2015-09-02 15:42:20 -04:00
|
|
|
|
|
|
|
span.badge-category {
|
2019-02-21 21:52:21 -05:00
|
|
|
max-width: 100px;
|
2015-09-02 15:42:20 -04:00
|
|
|
}
|
2019-06-27 13:26:14 -04:00
|
|
|
|
|
|
|
div.discourse-tags {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
2015-08-25 12:50:19 -04:00
|
|
|
}
|
2015-08-26 14:42:42 -04:00
|
|
|
|
2015-08-28 14:32:53 -04:00
|
|
|
.user-menu {
|
2019-09-09 11:03:57 -04:00
|
|
|
.quick-access-panel {
|
2018-03-23 03:19:15 -04:00
|
|
|
width: 100%;
|
|
|
|
display: table;
|
|
|
|
|
2015-08-28 14:32:53 -04:00
|
|
|
h3 {
|
|
|
|
padding: 0 0.4em;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
2019-01-31 13:59:49 -05:00
|
|
|
.d-icon,
|
|
|
|
&:hover .d-icon {
|
|
|
|
color: $primary-medium;
|
2018-06-08 05:49:31 -04:00
|
|
|
}
|
|
|
|
.icon {
|
2019-01-31 13:59:49 -05:00
|
|
|
color: $primary-high;
|
2018-06-08 05:49:31 -04:00
|
|
|
}
|
2015-08-28 14:32:53 -04:00
|
|
|
li {
|
2017-06-11 22:20:14 -04:00
|
|
|
background-color: $tertiary-low;
|
2017-09-14 14:26:31 -04:00
|
|
|
|
|
|
|
// This is until other languages remove the HTML from within
|
|
|
|
// notifications. It can then be removed
|
2018-11-26 16:49:57 -05:00
|
|
|
div .fa {
|
2017-09-14 14:26:31 -04:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-05-25 09:53:03 -04:00
|
|
|
span:first-child {
|
2018-06-08 05:49:31 -04:00
|
|
|
color: $primary;
|
2018-04-13 12:53:04 -04:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $highlight-medium;
|
|
|
|
outline: none;
|
2018-04-13 12:53:04 -04:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
a {
|
|
|
|
padding: 0;
|
2018-08-09 12:04:34 -04:00
|
|
|
> div {
|
|
|
|
overflow: hidden; // clears the text from wrapping below icons
|
2019-09-09 11:03:57 -04:00
|
|
|
|
|
|
|
// Truncate items with more than 2 lines.
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
2018-08-09 12:04:34 -04:00
|
|
|
}
|
2018-04-13 12:53:04 -04:00
|
|
|
}
|
|
|
|
|
2015-08-28 14:32:53 -04:00
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2017-11-07 13:48:35 -05:00
|
|
|
li:not(.show-all) {
|
|
|
|
padding: 0.25em 0.5em;
|
2018-11-26 16:49:57 -05:00
|
|
|
.d-icon {
|
2017-11-07 13:48:35 -05:00
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
2019-01-17 11:42:03 -05:00
|
|
|
padding-top: 0.2em;
|
2017-11-07 13:48:35 -05:00
|
|
|
}
|
|
|
|
}
|
2015-08-28 14:32:53 -04:00
|
|
|
.is-warning {
|
2018-11-26 16:49:57 -05:00
|
|
|
.d-icon-far-envelope {
|
2015-08-28 14:32:53 -04:00
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.read {
|
|
|
|
background-color: $secondary;
|
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
2019-12-03 22:40:59 -05:00
|
|
|
.spinner-container {
|
|
|
|
min-height: 2em;
|
2015-08-28 14:32:53 -04:00
|
|
|
}
|
|
|
|
.spinner {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2019-09-09 11:03:57 -04:00
|
|
|
.show-all a {
|
2017-11-07 13:48:35 -05:00
|
|
|
width: 100%;
|
2019-09-09 11:03:57 -04:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
min-height: 30px;
|
2017-11-07 13:48:35 -05:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
|
|
background: blend-primary-secondary(5%);
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
background: dark-light-diff($primary, $secondary, 90%, -80%);
|
|
|
|
}
|
|
|
|
}
|
2015-08-28 14:32:53 -04:00
|
|
|
/* as a big ol' click target, don't let text inside be selected */
|
|
|
|
@include unselectable;
|
|
|
|
}
|
2017-11-07 10:41:12 -05:00
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.dismiss-link {
|
2017-11-07 10:41:12 -05:00
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
}
|
2015-08-28 14:32:53 -04:00
|
|
|
}
|
2015-08-29 19:26:02 -04:00
|
|
|
|
2015-08-30 22:02:00 -04:00
|
|
|
div.menu-links-header {
|
2015-08-29 19:26:02 -04:00
|
|
|
width: 100%;
|
|
|
|
display: table;
|
2015-08-30 22:02:00 -04:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0 0.5em;
|
|
|
|
.menu-links-row {
|
2019-09-09 11:03:57 -04:00
|
|
|
border-bottom: 1px solid dark-light-choose($primary-low, $secondary-medium);
|
2018-06-19 15:38:06 -04:00
|
|
|
display: flex;
|
2019-09-09 11:03:57 -04:00
|
|
|
|
|
|
|
// Tabs should have "ears".
|
|
|
|
padding: 0 4px;
|
|
|
|
|
2018-06-19 15:38:06 -04:00
|
|
|
li {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
&.user {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
&.glyphs {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
text-align: right;
|
2019-09-09 11:03:57 -04:00
|
|
|
|
|
|
|
a {
|
|
|
|
// Expand the click area a bit.
|
|
|
|
padding-left: 0.6em;
|
|
|
|
padding-right: 0.6em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
// This is to make sure active and inactive tab icons have the same
|
|
|
|
// size. `box-sizing` does not work and I have no idea why.
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.active {
|
|
|
|
border: 1px solid dark-light-choose($primary-low, $secondary-medium);
|
|
|
|
border-bottom: 0;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
z-index: z("header") + 1; // Higher than .menu-panel
|
|
|
|
width: 100%;
|
|
|
|
height: 0;
|
|
|
|
content: "";
|
|
|
|
border-top: 1px solid $secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
}
|
2018-04-13 12:53:04 -04:00
|
|
|
}
|
2015-08-30 22:02:00 -04:00
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
a:hover,
|
|
|
|
a:focus {
|
2017-06-11 22:20:14 -04:00
|
|
|
background-color: $highlight-medium;
|
2018-04-13 12:53:04 -04:00
|
|
|
outline: none;
|
2015-08-29 19:26:02 -04:00
|
|
|
}
|
2015-08-30 22:02:00 -04:00
|
|
|
a {
|
2018-06-19 15:38:06 -04:00
|
|
|
padding: 0.3em 0.5em;
|
2015-08-30 22:02:00 -04:00
|
|
|
}
|
2015-12-20 01:15:45 -05:00
|
|
|
a.user-activity-link {
|
2019-09-09 11:03:57 -04:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2015-12-20 01:15:45 -05:00
|
|
|
margin: -0.5em 0;
|
2019-09-09 11:03:57 -04:00
|
|
|
max-width: 130px;
|
|
|
|
|
|
|
|
// `overflow: hidden` on `.user-activity-link` would hide the `::after`
|
|
|
|
// pseudo element (used to create the tab-looking effect). Sets `overflow:
|
|
|
|
// hidden` on the child username label instead.
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
span.d-label {
|
|
|
|
display: block;
|
|
|
|
max-width: 130px;
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2019-09-09 11:03:57 -04:00
|
|
|
}
|
|
|
|
|
2019-04-09 13:15:31 -04:00
|
|
|
@include breakpoint(mobile-medium) {
|
2018-06-19 15:38:06 -04:00
|
|
|
max-width: 125px;
|
|
|
|
}
|
2015-12-20 01:15:45 -05:00
|
|
|
}
|
2015-08-29 19:26:02 -04:00
|
|
|
li {
|
|
|
|
display: table-cell;
|
|
|
|
width: auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
li:first-child {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
li:last-child {
|
|
|
|
text-align: right;
|
2015-08-30 22:02:00 -04:00
|
|
|
}
|
2018-06-08 05:49:31 -04:00
|
|
|
.fa,
|
|
|
|
a {
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-30 22:07:30 -04:00
|
|
|
}
|
2015-08-30 22:02:00 -04:00
|
|
|
|
2017-11-23 11:14:51 -05:00
|
|
|
.d-icon-user {
|
2019-09-09 11:03:57 -04:00
|
|
|
margin-right: 0.475em;
|
2015-08-29 19:26:02 -04:00
|
|
|
}
|
|
|
|
}
|