░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/app/stylesheets/pages/conversations
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: _conversations_new.scss
/* * Copyright (C) 2013 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @use "sass:math"; @import "deprecated/bootstrap/mixins"; @import "vendor/bootstrap/button-groups"; @import "components/autocomplete"; $conversations-headerHeightPhone: 210px; #not_right_side, .ic-Layout-contentWrapper, .ic-Layout-contentMain, .conversations { height: 100%; } .conversations { overflow: hidden; } .ic-Layout-wrapper { position: relative; } .ic-Layout-columns { position: absolute; top: 0; bottom: 0; margin-bottom: 0; display: none; width: 100%; } #footer { display: none; } .ic-Layout-contentMain { overflow: visible; padding: 0; } .conversations { position: relative; } .conversations .panel { box-sizing: border-box; background: $lightBackground; border-bottom: 1px solid $ic-border-light; height: 112px; padding: $ic-sp; // TODO: revisit when breakpoint fixed // until we have a better breakpoint for desktop // need to put in direct amount for better ux @media only screen and (min-width: 1200px) { height: 62px; display: flex; align-items: center; padding-bottom: 0; padding-top: 0; } @media only screen and (max-width: 576px) { height: $conversations-headerHeightPhone; } .panel__primary { // TODO: revisit when breakpoint fixed // until we have a better breakpoint for desktop // need to put in direct amount for better ux @media only screen and (min-width: 1200px) { margin-bottom: 0; flex: 1; white-space: nowrap; } > * { display: inline-block; white-space: nowrap; } } .panel__secondary { // TODO: revisit when breakpoint fixed // until we have a better breakpoint for desktop // need to put in direct amount for better ux @media only screen and (min-width: 1200px) { white-space: nowrap; } > div { display: inline-block; vertical-align: middle; white-space: nowrap; margin-top: $ic-sp; @media only screen and (min-width: 1200px) { margin-top: 0; } } } .btn.ui-state-active { background-color: #E6E6E6; background-image: none; } .actions { margin-#{direction(right)}: $ic-sp; } } .conversations__filter { margin-top: $ic-sp; @media only screen and (min-width: 577px) { margin-top: 0; display: inline-block; vertical-align: middle; } } #sending-spinner { display: inline-block; height: 8px; width: 10px; vertical-align: bottom; } .filters { margin-#{direction(right)}: $ic-sp; /* TODO: make sure we still need this with the frd filters (may not be selects) */ select { margin-bottom: 0; width: 150px; } } .bootstrap-select abbr { cursor: pointer; border-bottom: none; } .conversations .panel, .message-header { button { &[disabled], &[disabled]:focus, &[disabled]:hover { color: #a6a6a6; } } .btn-group { display: inline-block; } } #help-btn { color: #333; position: relative; #{direction(left)}: 8px; float: direction(right); &:hover, &:focus { color: #0088cc; text-decoration: none; } .icon-mini-arrow-down { position: relative; #{direction(right)}: 5px; } } .search .ac { display: block; .ac-input-box { float: direction(left); min-height: 0; height: 38px; padding: 6px 12px; box-sizing: border-box; width: 205px; .ac-placeholder { top: 0; line-height: 38px; } .ac-clear { top: 8px; } } .ac-input { margin-#{direction(left)}: 0; } input { border-radius: 0; } .btn { float: direction(left); } } .messaging-wrapper { display: flex; position: absolute; bottom: 0; top: 112px; width: 100%; @media only screen and (min-width: 1200px) { top: 62px; } @media only screen and (max-width: 576px) { top: $conversations-headerHeightPhone; flex-direction: column; } @media only screen and (min-width: 577px) { flex-direction: row; } } .message-list-scroller { overflow: auto; min-width: 1px; flex: 0 0 34%; border-bottom: 1px solid #bfbfbf; @media only screen and (min-width: 577px) { border-bottom: none; border-#{direction(right)}: 1px solid #bfbfbf; height: 100%; } @include breakpoint(desktop) { flex: 0 0 400px; } } .message-list { .list-header { color: darken($ic-color-neutral, 50); padding: 3px 12px; background: $lightBackground; border-bottom: 1px solid $ic-border-light; } .current-context-code { color: #f3f3f3; background-color: $ic-color-neutral; padding: 0 10px; } .collectionViewItems { padding-bottom: 60px; } // individual message container .messages > li { background: $ic-color-light; box-sizing: border-box; cursor: pointer; height: 140px; padding: 20px 10px; border-bottom: 1px solid $ic-border-light; display: flex; overflow: hidden; &.active { background: $ic-bg-light-primary; } &:hover { box-shadow: inset -4px 0px 0px var(--ic-brand-primary); } .message-left-column { width: 25px; display: flex; flex-direction: column; align-items: center; } .message-middle-column { flex-grow: 1; padding: 0 10px; max-width: calc(100% - 70px); // 70px comes from the padding of the parent + the width of the siblings } .message-right-column { width: 25px; display: flex; justify-content: space-between; flex-direction: column; align-items: center; } &.active, &:hover { .star-btn { transform: translateX(0); } } } .date { color: var(--ic-brand-primary); @include fontSize(13px); margin-bottom: 10px; } .author { display: inline-block; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @include fontSize(14px); font-weight: bold; margin: 0; color: $ic-color-dark; } .subject { @include fontSize(16px); color: $ic-color-medium-darker; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: normal; margin: 0; &:focus { outline: 0; } } .summary { @include fontSize(16px); color: $ic-color-medium; height: 40px; margin: direction-sides(0 24px 0 0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .message-count { @include fontSize(13px); background-color: $ic-color-dark; padding: 4px 7px; border-radius: 4px; text-shadow: none; } .select-checkbox { position: relative; #{direction(left)}: 5px; margin-bottom: 8px; top: -2px; } .read-state { border: 0; border-width: 0px; -webkit-appearance: none; box-sizing: border-box; display: inline-block; margin: 3px; height: 16px; width: 16px; &:focus { outline: none; box-shadow: 0 0 0 1px var(--ic-link-color); } &:before { content: ''; display: block; height: 16px; width: 16px; border-radius: 50%; box-shadow: none; background: var(--ic-brand-primary); } &.read { &:before { box-shadow: 0 0 0 1px var(--ic-link-color); background: none; } } } .star-btn { color: $ic-color-medium-darker; display: inline-block; font-family: 'Hiragino Kaku Gothic Pro', 'Lucida Sans Unicode', 'Arial Unicode MS'; @include fontSize($ic-font-size--medium); transform: translateX(50px); text-decoration: none; &:focus, &.active { transform: translateX(0); } &:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ic-link-color); } &:before { content: '\2606'; } &.active { color: $ic-color-alert; text-shadow: 0 0 1px $ic-color-alert; &:before { content: '\2605'; } } } p { @include fontSize($ic-font-size--xsmall); line-height: 16px; margin-bottom: 8px; } } .open-message { @include accessibility-prompt; #{direction(left)}: -9999px; position: absolute; &:focus { #{direction(left)}: auto; top: auto; #{direction(right)}: 0; bottom: 0; z-index: 1; width: auto; height: auto; } } .message-detail.span8, .message-detail.conversations__message-detail { overflow: auto; min-width: 1px; flex: 1; .subject { line-height: $ic-label-line-height; } &:focus { outline: none; } .no-messages { color: $ic-color-medium-lighter; display: block; @include fontSize(20px); font-weight: bold; margin-top: 5%; text-align: center; i { display: block; line-height: 120px; margin-bottom: $ic-sp; text-align: center; width: 100%; &:before { @include fontSize(120px); } } } .message-header { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid $ic-border-light; .label { margin-top: 12px; } } .message-detail-actions { display: flex; align-items: center; } .message-content > li { margin: 0 12px; padding: 24px 0; border-bottom: 1px solid $ic-border-light; p:last-child { margin-bottom: 0; } .message-attachments { list-style: none; margin: 0 1em; padding: 0.5em; border-top: 1px solid $ic-border-light; } .message-attachment-thumbnail { max-height: 16px; max-width: 16px; } } .message-info { margin-bottom: $ic-sp; @include breakpoint(desktop) { display: flex; flex-wrap: wrap; } } .user-info { @include breakpoint(desktop) { flex: 1; padding-#{direction(right)}: $ic-sp; } .avatar { float: direction(left); margin-#{direction(right)}: 8px; } .context { color: darken($ic-color-neutral, 50); display: block; } .message-author-and-participants { padding-top: 6px; } } .message-metadata { position: relative; @include breakpoint(desktop) { text-align: direction(right); } } .date { color: darken($ic-color-neutral, 50); } .actions li { border: none; display: inline-block; margin: 0 0 0 math.div($ic-sp, 3); padding: 0; } .message-detail-actions li a, .actions li a { color: darken($ic-color-neutral, 50); &:hover, &:focus { color: #333; outline: none; text-decoration: none; } } } .touch { .message-detail .actions { #{direction(right)}: -7px; top: 24px; } .message-item-view:hover, .touch .message-metadata.hover { .date { #{direction(right)}: 0; } } } .message-metadata.hover { .actions { display: block; #{direction(right)}: -7px; } } .bootstrap-select.btn-group, .bootstrap-select.btn-group[class*="span"] { margin-bottom: 0; } i.icon-ok:before { vertical-align: baseline; } .bootstrap-select .dropdown-submenu > .dropdown-menu { top: -20px; } .bootstrap-select .dropdown-submenu .dropdown-menu.inner { max-height: 200px; overflow: auto; } // This is to override the bootstrap styles that get // imported here. This is a hack and should be fixed better div#course-filter-bs.dropdown-menu.open {overflow: inherit !important; } div#compose-message-course-bs.dropdown-menu.open {overflow: inherit !important; } ul.dropdown-menu.inner {overflow-y: inherit !important; } .bootstrap-select label { margin: 0; display: block; } input.dropdown-search { display: block; margin-#{direction(left)}: auto; margin-#{direction(right)}: auto; width: 90%; } .message-header-row .ac-input-box { max-height: 95px; overflow-y: auto; } .beta-notice { margin: 36px 48px; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 _compose_message_dialog.scss
SCSS
6.4 KB
2023-09-24 03:36
EDIT
📄 _conversations_new.scss
SCSS
12.2 KB
2023-09-24 03:36
EDIT