zulip/static/styles/media.css
Brock Whittaker 4d5aa3ddc9 Restyle and refactor .message_controls for better UX.
This refactors the .message_controls to stop relying on absolute
positioning and strange CSS, and throws them inline.

This also restyles so they hang to the right of the time which is now
always present.

Fixes: #3761.
2017-03-06 22:24:21 -08:00

325 lines
5.8 KiB
CSS

.screen-medium-show,
.screen-narrow-show {
display: none !important;
}
/* This max-width must be synced with viewport.is_narrow */
@media (max-width: 975px) {
.screen-full-show {
display: none !important;
}
.screen-medium-show {
display: block !important;
}
.app-main,
.header-main {
min-width: 750px;
}
.column-right {
display: none;
}
.column-right.expanded {
display: block;
position: absolute;
float: none;
right: 15px;
top: 0px;
}
.column-right.expanded .right-sidebar {
background: rgba(255,255,255,0.9);
box-shadow: 0px -2px 3px 0px rgba(0,0,0,0.1);
border-left: 1px solid #dddddd;
margin-top: 40px;
padding-top: 10px;
height: 100%;
}
.header-main .column-right {
display: inline-block;
width: 30px;
}
#top_navbar.rightside-userlist .navbar-search {
margin-right: 100px;
}
#top_navbar.rightside-userlist #navbar-buttons {
margin-right: 41px;
}
.navbar-search {
margin-right: 60px;
}
#userlist-toggle {
display: block;
}
.compose-content {
margin-right: 7px;
}
.nav .dropdown-menu {
min-width: 180px;
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
.nav .dropdown-menu:after {
right: 10px;
}
.column-middle {
margin-right: 7px;
}
#subscriptions-status {
left: 300px;
right: 50px;
}
}
@media (max-width: 775px) {
body {
padding: 0px;
}
.screen-narrow-show {
display: inline-block !important;
}
.column-left {
display: none;
}
.column-left.expanded {
display: block;
position: absolute;
float: none;
left: 0px;
top: 0px;
}
.column-left.expanded .left-sidebar {
background: rgba(255,255,255,0.9);
box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.1);
border-right: 1px solid #dddddd;
margin-top: 40px;
padding-top: 10px;
height: 100%;
padding-left: 10px;
width: 250px;
}
body, html,
.app-main,
.header-main {
min-width: 350px;
}
.column-middle,
.app-main .column-middle {
margin-left: 7px;
margin-right: 7px;
}
.header-main .column-middle {
margin-left: 0px;
}
.column-middle-inner {
margin-left: 0px;
margin-right: 15px;
}
.app-main .column-middle .column-middle-inner {
margin-right: 0px;
}
.skinny-user-gravatar {
position: absolute;
top: 0px;
}
#streamlist-toggle {
display: block;
}
.compose-content {
margin-right: 7px;
margin-left: 7px;
}
#searchbox {
margin-left: 42px;
}
#top_navbar.rightside-userlist .navbar-search {
margin-right: 127px;
}
.navbar-search {
margin-right: 81px;
}
#subscriptions-status {
left: 35px;
}
}
@media (max-width: 500px) {
.compose_stream_button_label,
.compose_private_button_label {
display: none;
}
.stream-name {
max-width: 120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
@media (max-width: 350px) {
html {
overflow-x: hidden;
}
.stream_row .description {
display: none;
}
}
@media (max-width: 500px) {
.compose_stream_button,
.compose_private_button {
padding: 5px 10px 5px 10px;
}
#streamlist-toggle,
#userlist-toggle,
#navbar-buttons,
.navbar-search,
#tab_bar,
#searchbox,
#search_query,
#tab_list li,
#tab_list,
.header {
height: 30px;
line-height: 30px;
}
#streamlist-toggle-button,
#userlist-toggle-button {
height: 30px;
padding-top: 0px;
padding-bottom: 0px;
}
#navbar-buttons ul.nav .dropdown-toggle,
#navbar-buttons ul.nav li.active .dropdown-toggle {
top: -5px;
}
#top_navbar.rightside-userlist .navbar-search {
margin-right: 115px;
}
#searchbox .input-append .icon-vector-search {
top: 5px;
}
#searchbox .search_button, #searchbox .search_button[disabled]:hover {
top: 2px;
}
#tab_bar_underpadding {
top: 30px;
}
.messagebox-content {
padding-right: 15px;
}
.message_time {
right: auto;
left: -3px;
}
.message_controls {
width: 56px;
right: -10px;
top: 0px;
}
.message_hovered .message_controls {
z-index: 10;
}
.selected_message .message_controls {
right: -10px;
}
.include-sender .message_controls {
background: none !important;
padding: none !important;
border: none !important;
top: -3px;
}
.include-sender .message_time {
left: auto;
right: -5px;
}
.include-sender .message_controls {
right: 40px;
}
.sender_name {
max-width: 250px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
textarea.new_message_textarea {
height: 30px !important;
min-height: 30px !important;
}
#tab_bar_underpadding {
height: 10px;
}
#floating_recipient_bar {
top: 40px;
}
.message_content {
padding-right: 50px;
}
}
@media only screen and (min-device-width: 300px) and (max-device-width: 700px) {
#unmute_muted_topic_notification {
width: calc(90% - 30px);
left: 5%;
top: 5%;
}
}