Skip to content

Commit

Permalink
Merge branch 'develop' into gsouquet/fix-18132
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg committed Jul 29, 2021
2 parents e2688cd + b8781b7 commit e140dd6
Show file tree
Hide file tree
Showing 98 changed files with 2,568 additions and 738 deletions.
3 changes: 1 addition & 2 deletions res/css/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ a:visited {
input[type=text],
input[type=search],
input[type=password] {
font-family: inherit;
padding: 9px;
font-family: $font-family;
font-size: $font-14px;
font-weight: 600;
min-width: 0;
Expand Down Expand Up @@ -146,7 +146,6 @@ input[type=text], input[type=password], textarea {

/* Required by Firefox */
textarea {
font-family: $font-family;
color: $primary-fg-color;
}

Expand Down
1 change: 1 addition & 0 deletions res/css/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
@import "./views/voip/_CallPreview.scss";
@import "./views/voip/_CallView.scss";
@import "./views/voip/_CallViewForRoom.scss";
@import "./views/voip/_CallViewSidebar.scss";
@import "./views/voip/_DialPad.scss";
@import "./views/voip/_DialPadContextMenu.scss";
@import "./views/voip/_DialPadModal.scss";
Expand Down
1 change: 0 additions & 1 deletion res/css/structures/_SpaceRoomDirectory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ limitations under the License.
position: relative;
padding: 8px 16px;
border-radius: 8px;
min-height: 56px;
box-sizing: border-box;

display: grid;
Expand Down
1 change: 0 additions & 1 deletion res/css/views/dialogs/_AddressPickerDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ limitations under the License.
.mx_AddressPickerDialog_input:focus {
height: 26px;
font-size: $font-14px;
font-family: $font-family;
padding-left: 12px;
padding-right: 12px;
margin: 0 !important;
Expand Down
1 change: 0 additions & 1 deletion res/css/views/dialogs/_ConfirmUserActionDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ limitations under the License.
}

.mx_ConfirmUserActionDialog_reasonField {
font-family: $font-family;
font-size: $font-14px;
color: $primary-fg-color;
background-color: $primary-bg-color;
Expand Down
17 changes: 0 additions & 17 deletions res/css/views/dialogs/_DevtoolsDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,6 @@ limitations under the License.
padding-right: 24px;
}

.mx_DevTools_inputCell {
display: table-cell;
width: 240px;
}

.mx_DevTools_inputCell input {
display: inline-block;
border: 0;
border-bottom: 1px solid $input-underline-color;
padding: 0;
width: 240px;
color: $input-fg-color;
font-family: $font-family;
font-size: $font-16px;
}

.mx_DevTools_textarea {
font-size: $font-12px;
max-width: 684px;
Expand Down Expand Up @@ -139,7 +123,6 @@ limitations under the License.
+ .mx_DevTools_tgl-btn {
padding: 2px;
transition: all .2s ease;
font-family: sans-serif;
perspective: 100px;
&::after,
&::before {
Expand Down
90 changes: 38 additions & 52 deletions res/css/views/elements/_DesktopCapturerSourcePicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,57 +16,43 @@ limitations under the License.

.mx_desktopCapturerSourcePicker {
overflow: hidden;
}

.mx_desktopCapturerSourcePicker_tabLabels {
display: flex;
padding: 0 0 8px 0;
}

.mx_desktopCapturerSourcePicker_tabLabel,
.mx_desktopCapturerSourcePicker_tabLabel_selected {
width: 100%;
text-align: center;
border-radius: 8px;
padding: 8px 0;
font-size: $font-13px;
}

.mx_desktopCapturerSourcePicker_tabLabel_selected {
background-color: $tab-label-active-bg-color;
color: $tab-label-active-fg-color;
}

.mx_desktopCapturerSourcePicker_panel {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
height: 500px;
overflow: overlay;
}

.mx_desktopCapturerSourcePicker_stream_button {
display: flex;
flex-direction: column;
margin: 8px;
border-radius: 4px;
}

.mx_desktopCapturerSourcePicker_stream_button:hover,
.mx_desktopCapturerSourcePicker_stream_button:focus {
background: $roomtile-selected-bg-color;
}

.mx_desktopCapturerSourcePicker_stream_thumbnail {
margin: 4px;
width: 312px;
}

.mx_desktopCapturerSourcePicker_stream_name {
margin: 0 4px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
width: 312px;
.mx_desktopCapturerSourcePicker_tab {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
height: 500px;
overflow: overlay;
}

.mx_desktopCapturerSourcePicker_source {
display: flex;
flex-direction: column;
margin: 8px;
}

.mx_desktopCapturerSourcePicker_source_thumbnail {
margin: 4px;
padding: 4px;
width: 312px;
border-width: 2px;
border-radius: 8px;
border-style: solid;
border-color: transparent;

&.mx_desktopCapturerSourcePicker_source_thumbnail_selected,
&:hover,
&:focus {
border-color: $accent-color;
}
}

.mx_desktopCapturerSourcePicker_source_name {
margin: 0 4px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
width: 312px;
}
}
1 change: 0 additions & 1 deletion res/css/views/elements/_Field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ limitations under the License.
.mx_Field select,
.mx_Field textarea {
font-weight: normal;
font-family: $font-family;
font-size: $font-14px;
border: none;
// Even without a border here, we still need this avoid overlapping the rounded
Expand Down
8 changes: 8 additions & 0 deletions res/css/views/messages/_CallEvent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ limitations under the License.
}
}

&.mx_CallEvent_voice.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
mask-image: url('$(res)/img/voip/missed-voice.svg');
}

&.mx_CallEvent_video.mx_CallEvent_missed .mx_CallEvent_type_icon::before {
mask-image: url('$(res)/img/voip/missed-video.svg');
}

.mx_CallEvent_info {
display: flex;
flex-direction: row;
Expand Down
181 changes: 86 additions & 95 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

.mx_EventTile[data-layout=bubble],
.mx_EventTile[data-layout=bubble] ~ .mx_EventListSummary {
.mx_EventListSummary[data-layout=bubble] {
--avatarSize: 32px;
--gutterSize: 11px;
--cornerRadius: 12px;
Expand Down Expand Up @@ -224,100 +224,6 @@ limitations under the License.
border-left-color: $eventbubble-reply-color;
}

&.mx_EventTile_bubbleContainer,
&.mx_EventTile_info,
& ~ .mx_EventListSummary[data-expanded=false] {
--backgroundColor: transparent;
--gutterSize: 0;

display: flex;
align-items: center;
justify-content: start;
padding: 5px 0;

.mx_EventTile_avatar {
position: static;
order: -1;
margin-right: 5px;
}

.mx_EventTile_e2eIcon {
margin-left: 9px;
}

.mx_EventTile_line > a {
right: auto;
top: -15px;
left: -68px;
}
}

& ~ .mx_EventListSummary {
--maxWidth: 80%;
margin-left: calc(var(--avatarSize) + var(--gutterSize));
margin-right: calc(var(--gutterSize) + var(--avatarSize));
.mx_EventListSummary_toggle {
float: none;
margin: 0;
order: 9;
margin-left: 5px;
}
.mx_EventListSummary_avatars {
padding-top: 0;
}

&::after {
content: "";
clear: both;
}

.mx_EventTile {
margin: 0 6px;
}

.mx_EventTile_line {
margin: 0 5px;
> a {
left: auto;
right: 0;
transform: translateX(calc(100% + 5px));
}
}

.mx_MessageActionBar {
transform: translate3d(90%, 0, 0);
}
}

& ~ .mx_EventListSummary[data-expanded=false] {
padding: 0 34px;
}

/* events that do not require bubble layout */
& ~ .mx_EventListSummary,
&.mx_EventTile_bad {
.mx_EventTile_line {
background: transparent;
}

&:hover {
&::before {
background: transparent;
}
}
}

& + .mx_EventListSummary {
.mx_EventTile {
margin-top: 0;
padding: 2px 0;
}
}

.mx_EventListSummary_toggle {
margin-right: 55px;
}

/* Special layout scenario for "Unable To Decrypt (UTD)" events */
&.mx_EventTile_bad > .mx_EventTile_line {
display: grid;
Expand Down Expand Up @@ -352,3 +258,88 @@ limitations under the License.
max-width: 100%;
}
}

.mx_EventTile.mx_EventTile_bubbleContainer[data-layout=bubble],
.mx_EventTile.mx_EventTile_info[data-layout=bubble],
.mx_EventListSummary[data-layout=bubble][data-expanded=false] {
--backgroundColor: transparent;
--gutterSize: 0;

display: flex;
align-items: center;
justify-content: start;
padding: 5px 0;

.mx_EventTile_avatar {
position: static;
order: -1;
margin-right: 5px;
}

.mx_EventTile_e2eIcon {
margin-left: 9px;
}

.mx_EventTile_line > a {
right: auto;
top: -15px;
left: -68px;
}
}

.mx_EventListSummary[data-layout=bubble] {
--maxWidth: 80%;
margin-left: calc(var(--avatarSize) + var(--gutterSize));
margin-right: calc(var(--gutterSize) + var(--avatarSize));
.mx_EventListSummary_toggle {
float: none;
margin: 0;
order: 9;
margin-left: 5px;
margin-right: 55px;
}
.mx_EventListSummary_avatars {
padding-top: 0;
}

&::after {
content: "";
clear: both;
}

.mx_EventTile {
margin: 0 6px;
padding: 2px 0;
}

.mx_EventTile_line {
margin: 0 5px;
> a {
left: auto;
right: 0;
transform: translateX(calc(100% + 5px));
}
}

.mx_MessageActionBar {
transform: translate3d(90%, 0, 0);
}
}

.mx_EventListSummary[data-expanded=false][data-layout=bubble] {
padding: 0 34px;
}

/* events that do not require bubble layout */
.mx_EventListSummary[data-layout=bubble],
.mx_EventTile.mx_EventTile_bad[data-layout=bubble] {
.mx_EventTile_line {
background: transparent;
}

&:hover {
&::before {
background: transparent;
}
}
}
Loading

0 comments on commit e140dd6

Please sign in to comment.