Skip to content

Commit

Permalink
Revert "Fixed Issues 87, 88 (livechat on mobile devices)" (RocketChat…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimpson authored and ruKurz committed Dec 7, 2017
1 parent 8f9ed47 commit 4693955
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 168 deletions.
174 changes: 9 additions & 165 deletions packages/rocketchat-livechat/app/client/stylesheets/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
@import "utils/_keyframes.import.less";
@import "utils/_loading.import.less";

@smartphones: ~"only screen and (max-width: 480px)";
@footer-min-height-media: 65px;

* {
box-sizing: border-box;
-moz-box-sizing: border-box;
Expand Down Expand Up @@ -80,10 +77,6 @@ input:focus {
color: rgba(255, 255, 255, 0.85);
background-color: lighten(desaturate(@primary-background-color, 15%), 12.5%);

@media @smartphones{
font-size: 15px;
}

span {
position: relative;
z-index: 2;
Expand Down Expand Up @@ -165,54 +158,27 @@ input:focus {
cursor: pointer;
padding: 0 10px;

@media @smartphones{
border-top-right-radius: 0px;
border-top-left-radius: 0px;
flex: 1 0 50px;
line-height: 50px;
}

h1 {
margin: 0;
font-size: 10pt;
display: inline-block;

@media @smartphones{
font-size: 13pt;
}

}

.toolbar {
display: inline-block;
float: right;

svg {
cursor: pointer;
fill: currentColor;
width: 14px;
margin: 0 5px;
vertical-align: middle;

@media @smartphones {
width: 20px;
}

&:last-of-type {
margin-right: 0;
}
}
svg.maximize {
@media @smartphones{
display: none;
cursor: pointer;
fill: currentColor;
width: 14px;
margin: 0 5px;
vertical-align: middle;

&:last-of-type {
margin-right: 0;
}
}
svg.popout {
@media @smartphones{
display: none;
}
}

}
}
}

Expand All @@ -239,36 +205,14 @@ input:focus {
.info {
flex: 1;
padding: 5px 0;
}

ul{

@media @smartphones{
width: 95%;
margin-right: -10px;

}

h2 {
color: @primary-font-color;
font-size: 14px;

@media @smartphones{
font-size: 16px;
margin-bottom: 7px;
margin-top: 5px;
}
}

li {
font-size: 11px;

@media @smartphones{
font-size: 14px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
}
}
Expand All @@ -280,17 +224,9 @@ input:focus {
border-right: 1px solid @window-border-color;
overflow-y: auto;

@media @smartphones{
margin-bottom: 64px;
}

.wrapper {
padding-bottom: 6px;

@media @smartphones{
padding-bottom: 13px;
}

ul {
list-style-type: none;
padding: 0;
Expand All @@ -307,10 +243,6 @@ input:focus {
line-height: 18px;
min-height: 36px;

@media @smartphones{
line-height: 18px;
}

&::after {
content: '';
display: block;
Expand Down Expand Up @@ -367,10 +299,6 @@ input:focus {
padding: 0 10px;
background-color: #ffffff;
min-width: 120px;

@media @smartphones{
font-size:12px;
}
}

.content {
Expand Down Expand Up @@ -426,11 +354,6 @@ input:focus {
margin-right: 5px;
outline: none;

@media @smartphones{
font-size: 15px;
margin-bottom: 5px;
}

&:hover {
color: #333333;
}
Expand All @@ -455,10 +378,6 @@ input:focus {
left: -10px;
width: 55px;

@media @smartphones{
font-size: 10px;
}

.edited {
display: inline-block;
}
Expand Down Expand Up @@ -514,10 +433,6 @@ input:focus {
.body {
opacity: 1;
transition: opacity 1s linear;

@media @smartphones{
font-size: 15px;
}
}

&.temp .body {
Expand Down Expand Up @@ -561,19 +476,9 @@ input:focus {
z-index: 5;
transition: transform 0.3s ease-out;
transform: translateY(-40px);
visibility: visible;

@media @smartphones{
width: 145px;
height: 34px;
font-size: 14px;
line-height: 33px;
bottom: 30px;
}

&.not {
transform: translateY(100%);
visibility: hidden;
}
}

Expand All @@ -586,15 +491,9 @@ input:focus {
z-index: 8;
transition: transform 0.2s ease-out;
transform: translateY(100%);
visibility: hidden;

@media @smartphones{
bottom: @footer-min-height-media;
}

&.show {
transform: translateY(0);
visibility: visible;
}
}
}
Expand All @@ -607,13 +506,6 @@ input:focus {
border-left: 1px solid @window-border-color;
border-right: 1px solid @window-border-color;

@media @smartphones{
flex: 1 0 @footer-min-height-media;
position: fixed;
bottom: 0;
width: 100%;
}

.message-bar {
display: flex;
flex-direction: row;
Expand All @@ -638,12 +530,6 @@ input:focus {
line-height: normal;
background-color: #ffffff;
position: relative;

@media @smartphones{
padding-top:7px;
font-size: 15px;
height: 35px!important;
}
}
}

Expand All @@ -661,11 +547,6 @@ input:focus {
cursor: pointer;
transition: fill 0.15s ease-out;

@media @smartphones{
width: 23px;
height: 23px;
}

&:hover {
fill: @primary-font-color;
}
Expand All @@ -680,11 +561,6 @@ input:focus {
outline: none;
margin-top: 5px;
font-size: 0.65rem;

@media @smartphones{
margin-top: 5px;
margin-bottom: 6px;
}
}

.typing {
Expand All @@ -694,11 +570,6 @@ input:focus {
outline: none;
margin-top: 2px;
font-size: 0.65rem;

@media @smartphones{
margin-top: 4px;
margin-bottom: 4px;
}
}

.options-menu {
Expand Down Expand Up @@ -738,10 +609,6 @@ input:focus {
display: block;
padding: 4px 2px;
outline: none;

@media @smartphones{
font-size: 14px;
}
}
}
}
Expand All @@ -755,10 +622,6 @@ input:focus {
border-left: 1px solid @window-border-color;
border-right: 1px solid @window-border-color;

@media @smartphones{
font-size: 15px;
}

.offline-message {
padding: 1em 0;
}
Expand All @@ -772,18 +635,10 @@ input:focus {
textarea {
display: block;
width: 100%;

@media @smartphones {
width: 85%;
margin: 15px auto;
}
}

.buttons {
text-align: center;
@media @smartphones{
font-size: 15px!important;
}
}

.error {
Expand Down Expand Up @@ -830,15 +685,6 @@ input:focus {
input,
select {
width: 100%;

@media @smartphones{
font-size: 15px;
}

@media @smartphones {
margin: 15px auto;
width: 85%;
}
}
}
}
Expand Down Expand Up @@ -928,8 +774,6 @@ input:focus {
opacity: 0.5;
align-self: flex-end;
transition: opacity 0.15s ease-out;
bottom: 0;
position: fixed;

&:hover {
opacity: 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ <h1>{{title}}</h1>
{{> offlineForm (offlineData)}}
</div>
{{/if}}
{{> poweredBy }}
</div>
{{/if}}
{{/if}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,5 @@
{{> options show=showOptions}}
<button class="toggle-options secondary-font-color">{{optionsLink}}</button>
{{/if}}
{{> poweredBy }}
</div>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<button class="button send">{{_ "Send"}}</button>
</div>
</form>
{{> poweredBy }}
{{/if}}
{{else}}
<p class="offline-message">{{{offlineUnavailableMessage}}}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
<button type="submit" class="button request-video"> {{_ "Request_video_chat"}} </button>
{{/if}}
</form>
{{> poweredBy }}
</div>
</template>

0 comments on commit 4693955

Please sign in to comment.