signal-desktop/stylesheets/_ios.scss

226 lines
4.2 KiB
SCSS
Raw Normal View History

$ios-header-border-color: rgba(0,0,0,0.05);
$ios-border-color: rgba(0,0,0,0.1);
.ios {
#header {
height: $header-height;
border-bottom: 1px solid $ios-header-border-color;
border-width: 0 1px 1px 0;
background-color: $grey_l;
color: $grey_d;
h1 { display: none; }
}
.gutter {
border-right: 1px solid $ios-border-color;
.content {
height: calc(100% - #{$header-height});
background: $ios-border-color;
}
.contact {
background: $grey_l;
margin-right: 0;
&.selected {
background: $blue;
color: white;
.last-timestamp {
color: white;
}
}
}
}
.banner {
top: 15px;
}
.tool-bar {
float: left;
padding: 15px;
}
input[type=text]:active,
input[type=text]:focus,
input[type=search]:active,
input[type=search]:focus,
input[type=search].active,
form.active {
outline-offset: 0;
outline: -webkit-focus-ring-color auto 5px;
}
input.search {
border-radius: 5px;
width: 220px;
height: 34px;
padding-left: $search-padding-left-ios;
line-height: 34px;
background-color: #dddddd;
&.active.rtl {
background-position : left $search-padding-left-ios center;
}
}
.conversation-header {
background-color: $grey_l;
color: $grey_d;
border-color: $ios-header-border-color;
text-align: left;
.conversation-title {
line-height: $header-height;
}
.avatar { display: none; }
}
.settings h3,
.menu-list li {
text-transform: capitalize;
}
.bottom-bar {
padding: 15px;
min-height: 30px;
border-top: 1px solid $ios-border-color;
form.send {
border-radius: 5px;
border: 1px solid $ios-border-color;
}
}
.error-message.content,
.control .content {
padding: 10px;
}
.attachments .bubbled {
border-radius: 15px;
margin-bottom: 0.25em;
padding: 10px;
position: relative;
&:before, &:after {
content: '';
display: block;
border-radius: 20px;
position: absolute;
width: 10px;
}
&:before {
right: -1px;
bottom: -3px;
height: 10px;
border-radius: 20px;
background: $blue;
}
&:after {
height: 11px;
right: -6px;
bottom: -3px;
background: #eee;
}
}
2016-08-29 08:11:13 +00:00
.bubble {
2016-08-31 23:15:08 +00:00
.content {
margin-bottom: 5px;
.body {
display: inline-block;
padding: 10px;
position: relative;
word-break: break-word;
2016-08-31 23:15:08 +00:00
&:before, &:after {
content: '';
display: block;
border-radius: 20px;
position: absolute;
width: 10px;
}
&:before {
right: -1px;
bottom: -3px;
height: 10px;
border-radius: 20px;
background: $blue;
}
&:after {
height: 11px;
right: -6px;
bottom: -3px;
background: #eee;
2016-08-31 23:15:08 +00:00
}
}
2016-08-29 08:11:13 +00:00
}
.content, .attachments img {
border-radius: 15px;
}
.attachments img {
background-color: white;
}
2016-08-29 08:11:13 +00:00
.meta {
clear: both;
}
}
.incoming .bubbled {
background-color: white;
color: black;
float: left;
&:before {
left: -1px;
background-color: white;
}
&:after {
left: -6px;
}
}
2016-08-29 08:11:13 +00:00
.incoming .content {
background-color: white;
2016-08-29 08:11:13 +00:00
color: black;
float: left;
2016-08-31 23:15:08 +00:00
.body {
&:before {
left: -1px;
background-color: white;
2016-08-31 23:15:08 +00:00
}
&:after {
left: -6px;
}
}
2016-08-29 08:11:13 +00:00
}
.outgoing {
.content, .attachments .bubbled {
2016-08-29 08:11:13 +00:00
background-color: $blue;
&, .body, a {
@include invert-text-color;
}
2016-08-29 08:11:13 +00:00
float: right;
}
}
.outgoing .attachments .fileView .icon {
&::before {
@include color-svg('/images/file.svg', white);
}
&.audio:before {
@include color-svg('/images/audio.svg', white);
}
&.video:before {
@include color-svg('/images/video.svg', white);
}
&.voice:before {
@include color-svg('/images/voice.svg', white);
}
}
2016-08-29 08:11:13 +00:00
.attachment {
a {
border-radius: 15px;
}
margin-bottom: 1px;
}
.hourglass {
@include hourglass(#999);
}
}