Sengi-Windows-MacOS-Linux/src/app/components/stream/user-profile/user-profile.component.scss

451 lines
10 KiB
SCSS
Raw Normal View History

@import "variables";
@import "mixins";
2018-11-01 05:44:58 +01:00
@import "commons";
2019-02-24 01:47:39 +01:00
$validated-font-color: #4fde23;
$validated-background: #164109;
$header-height: 140px;
2019-08-07 02:13:40 +02:00
$full-alias-color: rgb(201, 201, 201);
$full-alias-color-hover: white;
2019-08-10 19:40:08 +02:00
$floating-header-height: 60px;
2019-08-06 00:50:59 +02:00
2019-08-06 02:11:29 +02:00
.outer-profile {
height: calc(100%);
2019-08-07 01:53:39 +02:00
// width: $stream-column-width;
2019-08-06 02:11:29 +02:00
overflow: hidden;
position: relative;
}
.profile {
2018-11-03 04:36:35 +01:00
// overflow: auto;
2019-02-21 05:44:37 +01:00
height: calc(100%);
2019-08-07 01:53:39 +02:00
// width: $stream-column-width;
overflow: auto;
2019-08-06 00:42:06 +02:00
2020-03-12 01:54:32 +01:00
&__not-found {
padding-top: 15px;
text-align: center;
}
2019-08-06 02:11:29 +02:00
&__floating-header {
transition: all .2s;
transition-timing-function: ease-in;
2019-08-10 19:40:08 +02:00
height: $floating-header-height;
2019-08-10 20:03:06 +02:00
width: calc(100% - #{$scroll-bar-width});
2019-08-06 02:11:29 +02:00
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
2019-08-07 01:53:39 +02:00
background-color: #0f111a;
2019-08-06 02:11:29 +02:00
position: absolute;
2019-08-07 01:53:39 +02:00
top: -66px;
2019-08-06 02:11:29 +02:00
z-index: 100;
2019-08-07 01:53:39 +02:00
// border-bottom: 1px solid #222736;
2019-08-09 05:30:51 +02:00
box-shadow: 0 6px 4px -4px rgba(0, 0, 0, .25);
2019-08-06 02:11:29 +02:00
// opacity: 0;
&__inner {
overflow: hidden;
2019-08-10 19:40:08 +02:00
height: $floating-header-height;
2019-08-06 02:11:29 +02:00
background-color: rgba(0, 0, 0, .45);
}
&__activated {
// opacity: 1;
transition: all .25s;
transition-timing-function: ease-out;
top: 0px;
}
&__avatar {
position: absolute;
top: 6px;
2019-08-07 01:53:39 +02:00
left: 6px;
2019-08-10 19:40:08 +02:00
width: calc(#{$floating-header-height} - 14px);
height: calc(#{$floating-header-height} - 14px);
border-radius: 2px;
}
2019-08-07 02:13:40 +02:00
&__names {
position: absolute;
top: 6px;
left: 56px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
2019-08-10 19:40:08 +02:00
height: calc(#{$floating-header-height} - 14px);
2019-08-07 02:13:40 +02:00
width: calc(100% - 44px - 65px);
padding: 3px 5px 0px 3px;
&__display-name {
font-size: 15px;
color: white;
margin: 0 0 2px 0;
}
2019-08-09 06:13:52 +02:00
&__fullhandle {
2019-08-07 02:13:40 +02:00
transition: all .2s;
font-size: 15px;
color: $full-alias-color;
&:hover {
color: $full-alias-color-hover;
}
}
}
&__follow {
// transition: all .4s;
position: absolute;
top: 6px;
right: 10px;
font-size: 28px;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
2019-08-06 02:11:29 +02:00
}
2019-08-06 00:42:06 +02:00
&__moved {
padding: 5px;
2019-08-06 00:50:59 +02:00
text-align: center;
2019-08-06 00:42:06 +02:00
&--link {
transition: .2s;
color: white;
display: inline-block;
max-width: calc(100%);
text-overflow: ellipsis;
overflow: hidden;
&:hover {
color: rgb(255, 190, 71);
}
}
}
&__disabled {
2019-08-06 00:50:59 +02:00
filter: gray;
2019-08-06 00:42:06 +02:00
-webkit-filter: grayscale(100%);
2019-08-06 00:50:59 +02:00
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
2019-08-06 00:42:06 +02:00
}
&-header {
2019-08-06 00:50:59 +02:00
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
2019-08-07 01:53:39 +02:00
position: relative;
overflow: hidden; // background-color: black;
//border-bottom: 1px solid black;
2019-08-06 00:50:59 +02:00
& h2 {
font-size: $default-font-size;
}
2019-08-06 00:50:59 +02:00
&__inner {
overflow: auto;
2018-11-03 04:36:35 +01:00
height: $header-height;
2019-02-24 01:47:39 +01:00
background-color: rgba(0, 0, 0, .45);
}
2019-08-06 00:50:59 +02:00
&__avatar {
position: absolute;
bottom: 12px;
2019-05-16 05:58:03 +02:00
left: 12px;
width: 80px;
2019-05-16 05:58:03 +02:00
border-radius: 3px;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&__follow {
// transition: all .4s;
position: absolute;
top: 10px;
right: 15px;
font-size: 28px;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--button {
2019-09-28 21:23:30 +02:00
display: inline-block;
transition: all .2s;
color: white;
&:hover {
2019-09-28 21:23:30 +02:00
color: rgb(216, 216, 216);
}
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--unfollowed {}
2019-08-06 00:50:59 +02:00
&--followed {
2019-09-28 21:23:30 +02:00
transition: all .2s;
color: #38abff;
color: #5fbcff;
color: #85ccff;
2019-09-28 21:23:30 +02:00
&:hover {
2019-09-28 21:23:30 +02:00
color: #85ccff;
color: #38abff;
}
}
&--waiting {
position: relative;
top: -5px;
left: 6px;
}
}
2019-08-06 00:50:59 +02:00
&__state {
position: absolute;
top: 14px;
left: 14px;
top: 11px;
left: 11px;
font-size: 12px;
// max-width: 150px;
width: 265px;
//outline: 1px solid greenyellow;
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--data {
2019-08-09 07:03:53 +02:00
display: inline-block;
background-color: rgba(0, 0, 0, .60);
padding: 4px 10px;
border-radius: 4px;
text-align: center;
margin: 0 2px 2px 0;
}
}
2019-08-10 06:36:18 +02:00
&__more {
position: absolute;
bottom: 5px;
right: 16px;
}
}
2019-08-06 00:50:59 +02:00
2018-11-03 04:36:35 +01:00
&-sub-header {
// overflow: auto;
// height: calc(100% - #{$header-height});
// height: calc(100%);
2018-11-03 04:36:35 +01:00
// height: calc(20% - 190px);
// height: 150px;
// border: 1px solid greenyellow;
}
2019-08-06 00:50:59 +02:00
&-name {
padding: 9px 10px 10px 10px;
width: calc(100%);
&__link {
width: calc(100%);
font-size: 15px;
text-overflow: ellipsis;
overflow: hidden;
margin: 0;
&:not(:last-child) {
margin-bottom: 3px;
}
}
&__display-name {
color: white;
}
&__fullhandle a {
transition: all .2s;
color: $full-alias-color;
&:hover {
color: $full-alias-color-hover;
}
}
}
&-follows {
width: calc(100%);
2020-06-15 02:41:45 +02:00
font-size: 13px;
2024-03-07 06:24:27 +01:00
border-bottom: 1px solid #0f111a;
display: flex;
&__link {
color: white;
2024-03-07 06:24:27 +01:00
flex-grow: 1;
padding: 5px;
text-align: center;
background-color: #1a1f2e;
2020-06-15 02:41:45 +02:00
transition: all .2s;
&:hover {
text-decoration: none;
background-color: #131722;
}
}
}
&-description {
2019-08-10 20:27:38 +02:00
padding: 9px 10px 15px 10px;
font-size: 13px;
// border-bottom: 1px solid black;
2019-08-06 00:50:59 +02:00
2019-02-24 00:23:02 +01:00
&__content {
width: calc(100%);
word-break: break-word;
}
}
2019-08-06 00:50:59 +02:00
2019-08-09 06:13:52 +02:00
&__extra-info {
2019-08-09 04:11:12 +02:00
background-color: #20273a;
background-color: #141824;
background-color: #1a1f2e;
font-size: 13px;
2019-08-09 05:30:51 +02:00
transition: all .4s;
2024-03-07 06:24:27 +01:00
display: flex;
2019-08-09 04:11:12 +02:00
&__section {
2024-03-07 06:24:27 +01:00
// outline: 1px dotted orange;
flex-grow: 1;
2019-08-09 04:11:12 +02:00
text-align: center;
padding: 5px 0 7px 0;
}
2019-08-09 05:30:51 +02:00
&__preparefloating {
2019-08-10 20:03:06 +02:00
width: calc(100% - #{$scroll-bar-width});
2019-08-09 05:30:51 +02:00
position: absolute;
top: -66px;
z-index: 99;
}
&__floating {
top: 60px;
box-shadow: 0 6px 4px -4px rgba(0, 0, 0, .45);
}
2019-08-09 04:11:12 +02:00
&__links {
color: white;
&--selected {
text-decoration: underline;
}
}
}
2019-02-24 01:47:39 +01:00
&-fields {
font-size: 13px;
border-bottom: 1px solid black;
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&__field {
&:not(:last-child) {
border-bottom: 1px solid black;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--name {
padding: 10px;
border-right: 1px solid black;
text-align: center;
width: calc(33%);
background-color: #0b0d13;
white-space: nowrap;
2019-08-07 01:53:39 +02:00
text-overflow: ellipsis;
2019-02-24 01:47:39 +01:00
overflow: hidden;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--value {
padding: 10px;
width: calc(66%);
float: right;
white-space: nowrap;
2019-08-07 01:53:39 +02:00
text-overflow: ellipsis;
overflow: hidden;
2019-02-24 01:47:39 +01:00
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
&--validated {
background-color: $validated-background;
// border: 1px solid $validated-font-color;
}
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
@include clearfix;
}
2019-08-06 00:50:59 +02:00
2019-08-10 19:40:08 +02:00
&__status-switching-section {
height: calc(100vh - 35px - #{$floating-header-height} - #{$stream-header-height} - #{$stream-selector-height});
2019-08-10 19:40:08 +02:00
}
&-no-toots {
text-align: center;
margin: 15px;
2019-08-07 02:21:47 +02:00
// border: 2px solid whitesmoke;
}
2019-02-24 01:47:39 +01:00
}
2019-08-09 05:00:49 +02:00
.status-media {
&__image {
2019-08-09 06:13:52 +02:00
width: calc(50% - 2px);
2019-08-09 05:00:49 +02:00
height: 150px;
object-fit: cover;
2019-08-09 06:13:52 +02:00
margin: 1px;
2019-08-09 05:00:49 +02:00
float: left;
}
}
2020-10-03 21:52:55 +02:00
.fa-lock {
margin-left: 5px;
color: gray;
font-size: 14px;
}
2019-02-24 01:47:39 +01:00
//Mastodon styling
:host ::ng-deep .profile-fields__field--value {
// font-size: 14px;
color: $status-primary-color;
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& a,
.mention,
.ellipsis {
color: $status-links-color;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& .invisible {
display: none;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& p {
margin: 0px; //font-size: .9em;
// font-size: 14px;
}
}
:host ::ng-deep .profile-fields__field--validated {
// font-size: 14px;
color: $validated-font-color;
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& a,
.mention,
.ellipsis {
color: $validated-font-color;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& .invisible {
display: none;
}
2019-08-06 00:50:59 +02:00
2019-02-24 01:47:39 +01:00
& p {
margin: 0px; //font-size: .9em;
// font-size: 14px;
}
}