Improve mobile support for the toolbar and the drive
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
|
||||
> * {
|
||||
width: 30%;
|
||||
min-width: 500px;
|
||||
width: 500px;
|
||||
max-width: 95%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
|
||||
button {
|
||||
&#shareButton {
|
||||
// Bootstrap 4 colors
|
||||
color: #fff;
|
||||
background: #5cb85c;
|
||||
border-color: #5cb85c;
|
||||
@@ -51,6 +52,9 @@
|
||||
span {
|
||||
color: #fff;
|
||||
}
|
||||
.large {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,24 +101,6 @@
|
||||
background-image:linear-gradient(to bottom,#f2f2f2,#ccc);
|
||||
}
|
||||
}
|
||||
|
||||
.large {
|
||||
@media screen and (max-width: 800px) {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: 801px) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.small {
|
||||
@media screen and (max-width: 800px) {
|
||||
display: inline-block;
|
||||
}
|
||||
@media screen and (min-width: 801px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.cryptpad-state {
|
||||
line-height: 32px; /* equivalent to 26px + 2*2px margin used for buttons */
|
||||
}
|
||||
@@ -150,6 +136,74 @@
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.big {
|
||||
@media screen and (max-width: @media-not-big) {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: @media-not-small) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.small {
|
||||
@media screen and (max-width: @media-not-big) {
|
||||
display: inline-block;
|
||||
}
|
||||
@media screen and (min-width: @media-not-small) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.med-big {
|
||||
@media screen and (max-width: @media-medium-screen) {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: (@media-medium-screen + 1px)) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.med-small {
|
||||
@media screen and (max-width: @media-medium-screen) {
|
||||
display: inline-block;
|
||||
}
|
||||
@media screen and (min-width: (@media-medium-screen + 1px)) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.large {
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: (@media-narrow-screen + 1px)) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.narrow {
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
display: inline-block;
|
||||
}
|
||||
@media screen and (min-width: (@media-narrow-screen + 1px)) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cryptpad-toolbar:not(.notitle) {
|
||||
.cryptpad-toolbar-top {
|
||||
@media screen and (max-width: @media-medium-screen) {
|
||||
height: 67px;
|
||||
}
|
||||
.cryptpad-link, .cryptpad-user {
|
||||
@media screen and (max-width: @media-medium-screen) {
|
||||
top: 35px;
|
||||
}
|
||||
@media screen and (min-width: (@media-medium-screen + 1px)) {
|
||||
top: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cryptpad-toolbar-top {
|
||||
@@ -157,9 +211,6 @@
|
||||
text-align: center;
|
||||
height: 32px;
|
||||
position: relative;
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
height: 67px;
|
||||
}
|
||||
.cryptpad-title {
|
||||
.title, .pencilIcon {
|
||||
font-size: 1.5em;
|
||||
@@ -212,12 +263,6 @@
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
height: 32px;
|
||||
@media screen and (max-width: (@media-short-screen - 1px)) {
|
||||
top: 35px;
|
||||
}
|
||||
@media screen and (min-width: @media-short-screen) {
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
a.cryptpad-logo {
|
||||
cursor: pointer;
|
||||
@@ -242,41 +287,19 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.big {
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: (@media-narrow-screen + 1px)) {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.small {
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
display: inline-block;
|
||||
}
|
||||
@media screen and (min-width: (@media-narrow-screen + 1px)) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cryptpad-user {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
span:not(.cryptpad-lag) {
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
//display: inline-block;
|
||||
}
|
||||
button {
|
||||
span.fa {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: @media-narrow-screen) {
|
||||
top: 3em;
|
||||
}
|
||||
@media screen and (min-width: (@media-narrow-screen + 1px)) {
|
||||
top: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.cryptpad-toolbar-leftside {
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
|
||||
@media-short-screen: 450px;
|
||||
@media-narrow-screen: 400px;
|
||||
@media-medium-screen: 600px;
|
||||
|
||||
@toolbar-gradient-start: #f5f5f5;
|
||||
@toolbar-gradient-end: #DDDDDD;
|
||||
|
||||
Reference in New Issue
Block a user