chore: Add click interaction for conversation list (#1460)
This commit is contained in:
committed by
GitHub
parent
bb31b21060
commit
d51c5d5768
@@ -236,7 +236,7 @@ $breadcrumbs-item-slash: true;
|
|||||||
// 11. Button
|
// 11. Button
|
||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
$button-padding: $space-one $space-two;
|
$button-padding: $space-one $space-normal;
|
||||||
$button-margin: 0 0 $global-margin 0;
|
$button-margin: 0 0 $global-margin 0;
|
||||||
$button-fill: solid;
|
$button-fill: solid;
|
||||||
$button-background: $primary-color;
|
$button-background: $primary-color;
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ $woot-snackbar-bg: #323232;
|
|||||||
$woot-snackbar-button: #ffeb3b;
|
$woot-snackbar-button: #ffeb3b;
|
||||||
|
|
||||||
$swift-ease-out-duration: .4s !default;
|
$swift-ease-out-duration: .4s !default;
|
||||||
$swift-ease-out-timing-function: cubic-bezier(.25, .8, .25, 1) !default;
|
$swift-ease-out-function: cubic-bezier(0.37, 0, 0.63, 1) !default;
|
||||||
$swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
|
$swift-ease-out: all $swift-ease-out-duration $swift-ease-out-function !default;
|
||||||
|
|
||||||
// Ionicons
|
// Ionicons
|
||||||
$ionicons-font-path: '~ionicons/fonts';
|
$ionicons-font-path: '~ionicons/fonts';
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
$resolve-button-width: 13.2rem;
|
||||||
|
|
||||||
// Conversation header - Light BG
|
// Conversation header - Light BG
|
||||||
.conv-header {
|
.conv-header {
|
||||||
@include padding($space-small $space-normal);
|
@include padding($space-small $space-normal);
|
||||||
@@ -71,7 +73,7 @@
|
|||||||
.button.resolve--button {
|
.button.resolve--button {
|
||||||
@include flex-align($x: center, $y: middle);
|
@include flex-align($x: center, $y: middle);
|
||||||
|
|
||||||
width: 13.2rem;
|
width: $resolve-button-width;
|
||||||
|
|
||||||
>.icon {
|
>.icon {
|
||||||
font-size: $font-size-default;
|
font-size: $font-size-default;
|
||||||
|
|||||||
@@ -1,3 +1,15 @@
|
|||||||
|
@keyframes left-shift-animation {
|
||||||
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
transform: translateX(1px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.conversation {
|
.conversation {
|
||||||
@include flex;
|
@include flex;
|
||||||
@include flex-shrink;
|
@include flex-shrink;
|
||||||
@@ -10,6 +22,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
|
animation: left-shift-animation .25s $swift-ease-out-function;
|
||||||
background: $color-background;
|
background: $color-background;
|
||||||
border-bottom-color: $color-border-light;
|
border-bottom-color: $color-border-light;
|
||||||
border-left-color: $color-woot;
|
border-left-color: $color-woot;
|
||||||
@@ -30,7 +43,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:nth-last-child(2) {
|
&:last-child {
|
||||||
.conversation--details {
|
.conversation--details {
|
||||||
border-bottom-color: $color-border-light;
|
border-bottom-color: $color-border-light;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
.chat-list__top {
|
.chat-list__top {
|
||||||
@include flex;
|
@include flex;
|
||||||
@include padding($zero $zero $space-small $zero);
|
@include padding($zero $zero $space-micro $zero);
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
margin: $space-normal;
|
margin: $space-normal;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
max-height: $space-mega * 3;
|
max-height: $space-mega * 3;
|
||||||
transition: box-shadow .35s $ease-in-out-cubic, height 2s $ease-in-out-cubic;
|
transition: box-shadow .35s $swift-ease-out-function,
|
||||||
|
height 2s $swift-ease-out-function;
|
||||||
|
|
||||||
|
|
||||||
&.is-focused {
|
&.is-focused {
|
||||||
@include normal-shadow;
|
@include shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-box__top {
|
.reply-box__top {
|
||||||
@@ -47,7 +49,7 @@
|
|||||||
&.is-private {
|
&.is-private {
|
||||||
background: lighten($warning-color, 38%);
|
background: lighten($warning-color, 38%);
|
||||||
|
|
||||||
> input {
|
>input {
|
||||||
background: lighten($warning-color, 38%);
|
background: lighten($warning-color, 38%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,7 +65,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-uploads > label {
|
.file-uploads>label {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,7 +75,7 @@
|
|||||||
padding: 0 $space-small;
|
padding: 0 $space-small;
|
||||||
}
|
}
|
||||||
|
|
||||||
> textarea {
|
>textarea {
|
||||||
@include ghost-input();
|
@include ghost-input();
|
||||||
@include margin(0);
|
@include margin(0);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -100,7 +102,7 @@
|
|||||||
|
|
||||||
.tabs-title {
|
.tabs-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
transition: all .2s $ease-in-out-cubic;
|
transition: all .2s $swift-ease-out-function;
|
||||||
transition-property: color, background;
|
transition-property: color, background;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -124,10 +126,10 @@
|
|||||||
&.is-active {
|
&.is-active {
|
||||||
@include border-light-right;
|
@include border-light-right;
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border-bottom-left-radius: $space-small;
|
border-bottom-left-radius: $space-small;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
transition: all .15s $ease-in-out-cubic;
|
transition: border-color .15s $swift-ease-out-function;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ table {
|
|||||||
tr {
|
tr {
|
||||||
.show-if-hover {
|
.show-if-hover {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: all 0.2s $ease-in-out-cubic;
|
transition: opacity 0.2s $swift-ease-out-function;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -106,6 +106,10 @@ export default {
|
|||||||
&.clear.more--button {
|
&.clear.more--button {
|
||||||
color: var(--color-body);
|
color: var(--color-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: var(--w-800);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions--container {
|
.actions--container {
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: var(--space-normal);
|
padding: var(--space-normal) var(--space-normal) var(--space-slab);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: var(--font-size-large);
|
line-height: var(--font-size-large);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ $shadow-color-2: rgba(0, 0, 0, 0.07);
|
|||||||
$shadow-color-3: rgba(50, 50, 93, .08);
|
$shadow-color-3: rgba(50, 50, 93, .08);
|
||||||
$shadow-color-4: rgba(0, 0, 0, .05);
|
$shadow-color-4: rgba(0, 0, 0, .05);
|
||||||
|
|
||||||
$color-shadow-medium: rgba(0, 0, 0, 0.1);
|
$color-shadow-medium: rgba(50, 50, 93, 0.08);
|
||||||
$color-shadow-light: rgba(0, 0, 0, 0.06);
|
$color-shadow-light: rgba(50, 50, 93, 0.04);
|
||||||
$color-shadow-large: rgba(0, 0, 0, 0.25);
|
$color-shadow-large: rgba(50, 50, 93, 0.25);
|
||||||
$color-shadow-outline: rgba(66, 153, 225, 0.5);
|
$color-shadow-outline: rgba(66, 153, 225, 0.5);
|
||||||
|
|
||||||
@mixin normal-shadow {
|
@mixin normal-shadow {
|
||||||
@@ -36,14 +36,14 @@ $color-shadow-outline: rgba(66, 153, 225, 0.5);
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin shadow {
|
@mixin shadow {
|
||||||
box-shadow: 0 1px 10px 4px $color-shadow-medium,
|
box-shadow: 0 1px 10px 2px $color-shadow-medium,
|
||||||
0 1px 5px 2px $color-shadow-light;
|
0 1px 5px 1px $color-shadow-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@mixin shadow-medium {
|
@mixin shadow-medium {
|
||||||
box-shadow: 0 4px 24px 8px $color-shadow-medium,
|
box-shadow: 0 4px 24px 4px $color-shadow-medium,
|
||||||
0 2px 16px 4px $color-shadow-light;
|
0 2px 16px 2px $color-shadow-light;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user