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 {
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
bottom: 37px;
|
|
|
|
width: 97%;
|
|
|
|
}
|
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
|
2015-08-27 02:42:42 +08:00
|
|
|
}
|
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
.menu-panel {
|
2017-08-17 02:14:44 +08:00
|
|
|
border: 1px solid $primary-low;
|
2018-02-21 01:18:20 +08:00
|
|
|
box-shadow: shadow("menu-panel");
|
2015-08-27 02:42:42 +08:00
|
|
|
background-color: $secondary;
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("header");
|
2015-08-30 07:26:02 +08:00
|
|
|
padding: 0.5em;
|
2015-08-26 00:50:19 +08:00
|
|
|
width: 300px;
|
2015-08-30 07:26:02 +08:00
|
|
|
|
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 {
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2018-08-04 05:43:07 +08:00
|
|
|
li,
|
|
|
|
li.heading {
|
2015-08-26 00:50:19 +08:00
|
|
|
a {
|
2015-08-30 07:26:02 +08:00
|
|
|
padding: 0.25em 0.5em;
|
2015-08-26 00:50:19 +08:00
|
|
|
display: block;
|
2018-06-08 17:49:31 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2018-04-14 00:53:04 +08:00
|
|
|
outline: none;
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
|
|
|
}
|
2015-09-05 04:56:02 +08:00
|
|
|
|
|
|
|
.new {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-1;
|
2015-09-05 04:56:02 +08:00
|
|
|
margin-left: 0.5em;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-09-05 04:56:02 +08:00
|
|
|
}
|
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-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;
|
|
|
|
}
|
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
.badge-notification {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
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;
|
2018-02-03 08:03:25 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
line-height: $line-height-large;
|
|
|
|
}
|
|
|
|
.badge-wrapper {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-06-08 17:49:31 +08:00
|
|
|
&.bar,
|
|
|
|
&.bullet {
|
2018-02-03 08:03:25 +08:00
|
|
|
color: $primary;
|
2018-08-06 23:11:29 +08:00
|
|
|
padding: 0 0 0 0.15em;
|
2018-02-03 08:03:25 +08:00
|
|
|
}
|
|
|
|
&.box {
|
|
|
|
color: $secondary;
|
|
|
|
+ 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 {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-26 00:50:19 +08:00
|
|
|
font-weight: normal;
|
2018-02-03 08:03:25 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
|
|
|
.box + b.topics-count {
|
2018-06-08 17:49:31 +08:00
|
|
|
padding-top: 2px;
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
2015-09-03 03:42:20 +08:00
|
|
|
|
|
|
|
span.badge-category {
|
|
|
|
max-width: 90px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2015-08-26 00:50:19 +08:00
|
|
|
}
|
2015-08-27 02:42:42 +08:00
|
|
|
|
2015-08-27 04:55:01 +08:00
|
|
|
.search-menu {
|
2017-12-02 00:01:03 +08:00
|
|
|
.search-input {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2015-08-27 04:55:01 +08:00
|
|
|
.search-context .show-help {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.heading {
|
|
|
|
padding: 5px 0 5px 5px;
|
|
|
|
.filter {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
input[type="text"] {
|
2015-09-09 02:43:18 +08:00
|
|
|
margin: 0.5em 3px;
|
2015-09-01 04:27:36 +08:00
|
|
|
box-sizing: border-box;
|
2015-09-09 02:43:18 +08:00
|
|
|
width: calc(100% - 6px);
|
2015-09-01 04:27:36 +08:00
|
|
|
height: 32px;
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-context {
|
|
|
|
padding: 0 5px;
|
2018-06-08 17:49:31 +08:00
|
|
|
label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.searching {
|
|
|
|
position: absolute;
|
2017-12-02 00:01:03 +08:00
|
|
|
top: 1.15em;
|
|
|
|
right: 1em;
|
2015-09-01 04:41:08 +08:00
|
|
|
|
2015-08-27 04:55:01 +08:00
|
|
|
.spinner {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-width: 2px;
|
2017-12-02 00:01:03 +08:00
|
|
|
margin: 0;
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// I am ghetto using this to display "Show More".. be warned
|
|
|
|
.no-results {
|
|
|
|
padding: 5px;
|
|
|
|
text-align: center;
|
2017-08-17 02:14:44 +08:00
|
|
|
}
|
|
|
|
|
2015-08-27 04:55:01 +08:00
|
|
|
.filter {
|
|
|
|
padding: 0;
|
2018-06-08 17:49:31 +08:00
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-link {
|
|
|
|
.badge-category-parent {
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-small;
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
.topic-title {
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-statuses {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-27 04:55:01 +08:00
|
|
|
margin: 0;
|
|
|
|
.fa {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li:not(.category):not(.heading) {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $line-height-medium;
|
2015-08-27 04:55:01 +08:00
|
|
|
|
|
|
|
.fa {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2017-10-25 05:55:30 +08:00
|
|
|
&:not(.discourse-tag) {
|
|
|
|
display: block;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
transition: all linear 0.15s;
|
2017-02-13 23:10:28 +08:00
|
|
|
|
|
|
|
.user-results {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2017-02-13 23:10:28 +08:00
|
|
|
}
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover a:not(.badge-notification) {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
button {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2015-08-27 04:55:01 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
|
|
|
|
.user-menu {
|
|
|
|
.notifications {
|
2018-03-23 15:19:15 +08:00
|
|
|
width: 100%;
|
|
|
|
display: table;
|
|
|
|
|
2015-08-29 02:32:53 +08:00
|
|
|
h3 {
|
|
|
|
padding: 0 0.4em;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.fa {
|
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
li {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $tertiary-low;
|
2017-09-15 02:26:31 +08:00
|
|
|
|
|
|
|
// This is until other languages remove the HTML from within
|
|
|
|
// notifications. It can then be removed
|
|
|
|
div i.fa {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
span {
|
|
|
|
color: $primary;
|
2018-04-14 00:53:04 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $highlight-medium;
|
|
|
|
outline: none;
|
2018-04-14 00:53:04 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
a {
|
|
|
|
padding: 0;
|
2018-08-10 00:04:34 +08:00
|
|
|
> div {
|
|
|
|
overflow: hidden; // clears the text from wrapping below icons
|
|
|
|
}
|
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) {
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
i {
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
|
|
|
padding-top: 2px;
|
|
|
|
}
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
.is-warning {
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-envelope-o {
|
2015-08-29 02:32:53 +08:00
|
|
|
&:before {
|
|
|
|
content: "\f0e0";
|
|
|
|
}
|
|
|
|
color: $danger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.read {
|
|
|
|
background-color: $secondary;
|
|
|
|
}
|
|
|
|
.none {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
|
|
|
.spinner-container.visible {
|
|
|
|
min-height: 30px;
|
|
|
|
}
|
|
|
|
.spinner {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2017-11-08 02:48:35 +08:00
|
|
|
.show-all .btn {
|
|
|
|
width: 100%;
|
|
|
|
padding: 2px 0;
|
|
|
|
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-29 02:32:53 +08:00
|
|
|
/* as a big ol' click target, don't let text inside be selected */
|
|
|
|
@include unselectable;
|
|
|
|
}
|
2017-11-07 23:41:12 +08:00
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.logout-link,
|
|
|
|
.dismiss-link {
|
2017-11-07 23:41:12 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.dismiss-link {
|
|
|
|
float: right;
|
|
|
|
}
|
2015-08-29 02:32:53 +08:00
|
|
|
}
|
2015-08-30 07:26:02 +08:00
|
|
|
|
2015-09-01 05:44:21 +08:00
|
|
|
.notifications .logout {
|
|
|
|
padding: 0.25em;
|
|
|
|
&:hover {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2015-09-01 05:44:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-31 10:02:00 +08:00
|
|
|
div.menu-links-header {
|
2015-08-30 07:26:02 +08:00
|
|
|
width: 100%;
|
|
|
|
display: table;
|
2015-08-31 10:02:00 +08:00
|
|
|
border-collapse: separate;
|
|
|
|
border-spacing: 0 0.5em;
|
|
|
|
.menu-links-row {
|
2018-06-20 03:38:06 +08:00
|
|
|
display: flex;
|
|
|
|
li {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
&.user {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
&.glyphs {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
text-align: right;
|
|
|
|
max-width: 65%; //IE11
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2018-04-14 00:53:04 +08:00
|
|
|
}
|
2015-08-31 10:02:00 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
a:hover,
|
|
|
|
a:focus {
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $highlight-medium;
|
2018-04-14 00:53:04 +08:00
|
|
|
outline: none;
|
2015-08-30 07:26:02 +08:00
|
|
|
}
|
2015-08-31 10:02:00 +08:00
|
|
|
a {
|
2018-06-20 03:38:06 +08:00
|
|
|
padding: 0.3em 0.5em;
|
2015-08-31 10:02:00 +08:00
|
|
|
}
|
2015-12-20 14:15:45 +08:00
|
|
|
a.user-activity-link {
|
|
|
|
max-width: 150px;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: -0.5em 0;
|
2018-06-20 03:38:06 +08:00
|
|
|
@media screen and (max-width: 350px) {
|
|
|
|
max-width: 125px;
|
|
|
|
}
|
2015-12-20 14:15:45 +08:00
|
|
|
}
|
2015-08-30 07:26:02 +08:00
|
|
|
li {
|
|
|
|
display: table-cell;
|
|
|
|
width: auto;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
li:first-child {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
li:last-child {
|
|
|
|
text-align: right;
|
2015-08-31 10:02:00 +08:00
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
.fa,
|
|
|
|
a {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2015-08-31 10:07:30 +08:00
|
|
|
}
|
2015-08-31 10:02:00 +08:00
|
|
|
|
2017-11-24 00:14:51 +08:00
|
|
|
.d-icon-user {
|
2015-08-31 10:02:00 +08:00
|
|
|
margin-right: 0.2em;
|
2015-08-30 07:26:02 +08:00
|
|
|
}
|
|
|
|
}
|