Files
mostlymatter/webapp/sass/responsive/_mobile.scss
Asaad Mahmood db29413000 Minor UI improvements (#3095)
Updating config.json

Updating config.json

Updating config.json

Updating config.json
2016-05-25 08:39:14 -04:00

1036 строки
22 KiB
SCSS

@charset 'UTF-8';
@media screen and (max-width: 768px) {
.post-code__language {
@include opacity(.6);
@include transition(none);
display: block;
}
.backstage-filters {
display: block;
.backstage-filter__search {
border-bottom: 1px solid $light-gray;
margin: 10px 0;
width: 100%;
}
}
.compliance-panel,
.audit-panel {
.row {
> .form-group {
padding-left: 15px;
}
}
}
.user-popover {
pointer-events: none;
}
.signup-team__container {
font-size: 1em;
}
.sidebar--left .team__header .user__picture,
.sidebar--menu .team__header .user__picture {
display: none;
}
.date-separator.hovered--before:after,
.date-separator.hovered--after:before,
.new-separator.hovered--after:before,
.new-separator.hovered--before:after {
background: none !important;
}
.channel-intro {
margin: 0 0 35px;
}
.post {
&.post--compact {
}
.post__dropdown {
display: inline-block;
height: 20px;
line-height: 9px;
text-align: center;
text-decoration: none;
width: 20px;
&:after {
content: '...';
font-size: 20px;
top: -3px;
}
}
.post__content {
padding: 0 10px 0 0;
}
.post__header {
margin-bottom: 0;
.col__reply {
top: 0;
width: 65px;
}
.col__name {
pointer-events: none;
.user-popover {
max-width: 130px;
}
}
}
.comment-icon__container {
display: none;
visibility: visible;
&.icon--show {
display: inline-block;
}
}
.post-list__content & {
&:hover {
background: transparent;
}
.comment-icon__container {
visibility: visible;
}
}
.dropdown,
.post__reply {
visibility: visible;
}
.post__body {
width: 100%;
}
.post__reply {
float: right;
margin-right: 20px;
svg {
top: 1px;
}
}
&.other--root {
&.post--comment {
.post__header {
.col__reply {
top: 0;
}
}
}
.post__reply {
&.post__reply--hide {
visibility: hidden;
}
}
}
&.same--root {
&.same--user {
.post__header {
height: auto;
margin-top: 5px;
.col__name {
display: inline-block;
}
}
}
}
.post__img {
width: 40px;
img {
height: 32px;
width: 32px;
}
}
}
.post-image__column {
height: 95px;
width: 200px;
}
.textarea-wrapper {
.textbox-preview-link,
.textbox-help-link {
display: none;
}
}
.form-control {
&.min-height {
min-height: 100px;
}
}
.img-div {
max-width: 100%;
}
.tip-div {
left: 15px;
right: auto;
}
.tip-overlay {
&.tip-overlay--chat {
margin-left: 10px;
.arrow {
left: 32px;
}
}
}
.file-details__container {
display: block;
.file-details__preview {
border-bottom: 1px solid #dddddd;
border-right: none;
display: block;
height: 150px;
width: 100%;
img {
height: 64px;
width: 64px;
}
}
.file-details {
height: auto;
width: 100%;
}
}
.search-help-popover.visible {
visibility: hidden;
}
.modal-direct-channels {
.member-count {
display: block;
float: none;
margin-top: 10px;
}
}
.file-overlay {
font-size: em(18px);
&.center-file-overlay {
.overlay__indent {
margin-left: 0;
}
}
.overlay__circle {
height: 300px;
margin: -150px 0 0 -150px;
width: 300px;
}
.overlay__files {
margin: 60px auto 15px;
width: 150px;
}
}
.date-separator,
.new-separator {
&.hovered--after {
&:before {
background: none;
}
}
&.hovered--before {
&:after {
background: none;
}
}
}
.post-list__timestamp {
display: block;
}
.signup-team__container {
font-size: .9em;
margin-bottom: 30px;
padding: 60px 10px 0;
.signup-team__name {
font-size: 2em;
}
.btn.btn-full {
padding-left: 10px;
}
.btn {
.icon,
.fa {
margin-right: 6px;
}
}
}
.row--invite {
.col-sm-6 {
padding: 0;
}
}
.app__body {
.modal {
.info__label {
padding-bottom: 5px;
text-align: left;
}
.modal-image {
.modal-button-bar {
line-height: 30px;
padding: 5px;
}
.image-wrapper {
> div {
font-size: 12px;
min-width: 250px;
}
.modal-close {
@include opacity(1);
}
}
.modal-button-bar {
@include opacity(1);
}
}
.modal-header {
.modal-action {
margin-top: 10px;
}
button.close {
font-size: 27px;
font-weight: normal;
}
.modal-title {
float: none;
max-width: 90%;
}
.btn {
&.btn-primary {
display: block;
float: none;
margin: 10px 0 6px;
width: 100%;
}
}
}
.settings-modal {
&.display--content {
.modal-header {
display: none;
}
.settings-table {
display: block;
.settings-content {
&.minimize-settings {
display: block;
}
.section-min:hover {
background: none;
}
.no-padding--left {
padding-left: 15px;
}
}
.settings-links {
display: none;
}
.modal-header {
display: block;
position: absolute;
top: 0;
width: 100%;
z-index: 5;
.modal-title {
text-align: center;
width: 100%;
}
}
.user-settings {
.tab-header {
display: none;
}
.divider-dark.first {
display: none;
}
}
}
}
.settings-table {
padding: 0;
.nav {
position: relative;
top: auto;
width: 100%;
&.position--top {
top: auto;
}
}
.settings-content {
.section-edit {
position: absolute;
top: 14px;
right: 0;
padding-right: 0;
.fa {
display: inline-block;
}
}
&.minimize-settings {
padding: 0;
display: none;
.user-settings {
padding: 70px 20px 30px;
}
}
.section-min:hover {
background: none !important;
}
}
.nav {
> li {
> a {
border-top: 1px solid #dddddd;
font-size: 1.1em;
line-height: 2.7;
color: #555555;
.glyphicon {
margin-left: 7px;
}
}
}
}
}
}
}
}
.post-create__container {
.post-right__container & {
padding: 0 1em;
.msg-typing {
display: none;
}
}
form {
padding: .5em 0;
}
.post-create-footer {
padding: 0 1em;
.msg-typing {
display: none;
}
.control-label {
top: 0;
}
}
.post-create-body {
display: table;
width: 100%;
.post-body__cell {
display: table-cell;
padding-left: 45px;
.sidebar--right & {
padding-left: 0;
}
}
.app__content & {
.btn-file {
width: 45px;
padding: 0;
line-height: 36px;
bottom: -2px;
left: 0;
top: auto;
}
}
.send-button {
display: table-cell;
}
}
}
.file-preview__container {
margin: 5px 0 0;
}
.file-preview {
margin-top: 0;
}
.file-preview__remove {
@include alpha-property(background, $black, .5);
height: 28px;
left: auto;
right: 0;
text-align: center;
top: 0;
width: 28px;
&:after {
display: none;
}
i {
font-size: 16px;
line-height: 29px;
position: relative;
right: auto;
top: auto;
}
}
#navbar {
.navbar-default {
.navbar-header {
float: none;
margin: 0 -15px;
.dropdown__icon {
@include background-size(100% 100%);
display: inline-block;
height: 16px;
width: 4px;
}
}
.navbar-toggle {
display: block;
}
.navbar-brand {
white-space: nowrap;
}
}
}
body {
&.white {
.inner-wrap {
> .row.content {
margin-bottom: -185px;
}
}
}
}
.footer,
.footer-pane,
.footer-push {
height: 187px;
}
.footer-pane {
.footer-link {
line-height: 1.7;
padding: 0;
text-align: right;
width: 100%;
&.copyright {
width: 100%;
}
}
}
.search__clear {
display: block;
}
.search-bar__container {
@include flex(0 0 44px);
background: $primary-color;
color: $white;
padding: 0;
&.focused {
.sidebar__collapse {
@include translateX(-45px);
}
.search__form {
@include translateX(-45px);
padding-left: 55px;
padding-right: 24px;
}
.search__clear {
@include translateX(0);
}
}
.search__form {
@include single-transition(all, .2s, linear);
@include translateX(0);
border: none;
height: 45px;
padding: 7px 20px 0 49px;
position: relative;
.glyphicon-refresh-animate {
color: $black;
right: 33px;
top: 15px;
}
.form-control {
@include border-radius(3px);
background: $white;
border: none;
color: $dark-gray;
padding: 0 10px 0 31px;
}
}
}
.sidebar--menu {
@include single-transition(transform, .5s, ease);
@include translate3d(290px, 0, 0);
border: none;
display: block;
width: 290px;
&.move--left {
@include translate3d(0, 0, 0);
}
}
.sidebar--left {
@include single-transition(transform, .5s, ease);
@include translate3d(-290px, 0, 0);
width: 290px;
border: none;
&.sidebar--padded {
padding-top: 0;
}
&.move--right {
@include translate3d(0, 0, 0);
}
> div {
padding-bottom: 70px;
}
.nav-pills__unread-indicator-bottom {
bottom: 10px;
}
.badge {
top: 13px;
}
.team__header {
@include clearfix;
pointer-events: none;
.user__name {
display: none;
}
.team__name {
margin: 10px 0;
}
.navbar-right {
display: none;
}
}
.search__form {
display: block;
}
.nav {
li {
&.dropdown.open {
padding-bottom: 25px;
ul {
clear: both;
background: #ffffff;
border-radius: 3px;
top: 5px;
position: relative;
li {
a {
line-height: 30px;
}
}
}
}
h4 {
margin: 16px 0 8px;
}
> a {
font-size: 15px;
margin: 0;
line-height: 2.5;
&:hover,
&:focus {
background: transparent;
}
&.has-close {
.btn-close {
width: 40px;
text-align: center;
right: 0;
display: block;
@include opacity(.5);
}
}
}
}
}
}
.sidebar--right {
@include translate3d(100%, 0, 0);
right: 0;
width: 100%;
z-index: 5;
.sidebar__collapse,
.sidebar__search-icon {
display: block;
}
.sidebar--right__close {
display: none;
}
.sidebar-right__body {
height: calc(100% - 44px);
}
}
.search-items-container {
height: calc(100% - 44px);
}
.inner-wrap {
@include single-transition(all, .5s, ease);
.app__body & {
&:before {
//Some trickery in order for the z-index transition to happen immediately on move-in and delayed on move-out.
background-color: transparent;
content: '';
height: 100%;
left: -15px;
position: absolute;
top: 0;
transition: background-color 0.5s ease, z-index 0s ease 0.5s;
width: calc(100% + 30px);
z-index: 0;
}
}
&.move--right {
@include translate3d(290px, 0, 0);
&:before {
background-color: rgba(0, 0, 0, .4);
transition: background-color .5s ease;
z-index: 9999;
}
}
&.move--left-small {
@include translate3d(-290px, 0, 0);
&:before {
background-color: rgba(0, 0, 0, 0.4);
transition: background-color 0.5s ease;
z-index: 9999;
}
}
&.move--left {
margin: 0;
@include translate3d(-100%, 0, 0);
}
}
.integration-option {
height: auto;
margin-left: 0;
width: 100%;
}
.app__content {
padding-top: 45px;
margin: 0;
.channel__wrap & {
padding-top: 45px;
}
#channel-header {
display: none;
}
}
.channel__wrap {
.row {
&.header {
display: block;
}
}
}
.post-comments {
padding: 9px 21px 10px 10px !important;
}
}
@media screen and (max-width: 640px) {
.app__body {
.modal {
.about-modal {
.about-modal__content {
display: block;
}
.about-modal__hash {
p {
word-break: break-all;
&:first-child {
float: none;
}
}
}
.about-modal__logo {
float: none;
padding: 0;
text-align: center;
width: 100%;
svg {
height: 100px;
width: 100px;
}
}
.about-modal__logo + div {
padding: 2em 0 0;
}
}
}
}
.access-history__table {
> div {
display: block;
}
.access__report {
margin: 0 0 15px 15px;
}
.access__date {
div {
margin-bottom: 15px;
}
}
}
.activity-log__table {
> div {
display: block;
}
.activity-log__report {
width: 100%;
}
.activity-log__action {
margin-top: 10px;
text-align: left;
}
}
}
@media screen and (max-width: 480px) {
.backstage-header {
h1 {
float: none;
margin-bottom: 15px;
}
.add-integrations-link {
float: none;
}
}
.backstage-list__item {
display: block;
.item-actions,
.actions {
margin-top: 15px;
padding: 0;
}
}
.app__body {
.modal {
.settings-modal {
&.display--content {
.modal-body {
max-height: 90%;
}
}
.modal-body {
max-height: 70%;
}
.settings-table {
.security-links {
display: block;
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
}
}
}
}
}
.tip-overlay.tip-overlay--sidebar {
min-height: 350px;
}
.member-div {
padding: 8px 0;
.member-drop,
.member-role {
margin: 0 0 0 44px;
padding: 5px 0;
position: relative;
right: 0;
top: 0;
}
.open > .dropdown-menu {
left: 0;
right: auto;
}
}
.sidebar--left {
@include translate3d(-260px, 0, 0);
width: 260px;
}
.inner-wrap {
&.move--right {
@include translate3d(260px, 0, 0);
}
}
}
@media screen and (max-height: 640px) {
.signup-team__container {
font-size: .9em;
margin-bottom: 30px;
.signup-team__name {
font-size: 2em;
}
}
}
@media screen and (max-width: 320px) {
.tip-overlay {
&.tip-overlay--sidebar {
min-height: 440px;
}
}
}