hubl/src/styles/content.scss

445 lines
6.8 KiB
SCSS
Raw Normal View History

2018-09-29 00:22:00 +00:00
// job offers
2018-11-17 17:01:19 +00:00
// .new-job-offer {
// @extend %button;
// text-transform: uppercase;
// margin-left: 1em;
// margin-bottom: 1em
// //float: right;
// }
2018-09-29 00:22:00 +00:00
#offers-list {
> div {
> sib-display {
display: block;
margin: 1em 0;
2018-10-19 18:36:16 +00:00
@extend %frame;
2018-10-31 09:38:41 +00:00
padding: 2em;
2018-10-19 18:36:16 +00:00
/*&:nth-child(odd) {
background-color: $color-grey-light;
}*/
2018-10-05 09:55:29 +00:00
sib-display-div[name='title'] {
2018-10-05 09:37:48 +00:00
display: block;
2018-10-05 09:55:29 +00:00
@extend h2;
}
2018-10-05 09:55:29 +00:00
label {
display: none;
}
2018-09-29 00:22:00 +00:00
}
}
}
2018-10-31 09:38:41 +00:00
[name='user-thumb'] {
display: flex;
align-items: center;
margin: -0.25em;
2018-10-31 09:38:41 +00:00
> * {
margin: 0.25em;
}
2018-10-31 09:38:41 +00:00
sib-display-img {
width: 2.5em;
height: 2.5em;
overflow: hidden;
border-radius: 100%;
}
}
[name='date'] {
float: right;
display: flex;
align-items: center;
margin: -0.25em;
2018-10-31 09:38:41 +00:00
> * {
margin: 0.25em;
}
2018-10-31 09:38:41 +00:00
strong {
@extend %button;
}
}
2018-10-05 09:55:29 +00:00
// skills
2018-10-31 09:38:41 +00:00
#member-profile sib-display-lookuplist,
#profiles-list sib-display-lookuplist,
sib-display-lookuplist {
&[name$='skills'] {
2018-11-21 13:05:56 +00:00
display: flex;
li,
ul {
2018-10-31 09:38:41 +00:00
margin: 0;
padding: 0;
list-style: none;
}
2018-10-31 09:38:41 +00:00
ul {
display: flex;
flex-wrap: wrap;
margin: 1em -0.25em;
}
2018-10-31 09:38:41 +00:00
li {
padding: 0.5em 1em;
border: 1px solid;
2018-11-21 13:05:56 +00:00
border-radius: 2em;
2018-10-31 09:38:41 +00:00
margin: 0.25em;
2018-11-21 13:05:56 +00:00
background-color: $color-yellow;
color: $color-white;
font-weight: bold;
2018-10-31 09:38:41 +00:00
}
2018-10-05 09:55:29 +00:00
}
2018-10-31 09:38:41 +00:00
}
// group
2018-10-31 09:38:41 +00:00
#group-profile {
sib-display-div[name='name'] div {
@extend h1;
2018-10-05 09:55:29 +00:00
}
2018-10-31 09:38:41 +00:00
sib-display-div[name='label-description'] div {
@extend h2;
2018-10-05 09:55:29 +00:00
}
}
2018-10-05 09:37:48 +00:00
// chat
2018-09-29 00:22:00 +00:00
2018-10-05 09:37:48 +00:00
.chat-view {
padding: 1em;
position: relative;
2018-11-13 10:06:04 +00:00
z-index: 0;
2018-10-19 18:36:16 +00:00
@extend %frame;
height: 400px;
height: calc(100vh - 143px - 3em);
height: calc(100vh - var(--pos-top, 143px) - 3em);
2018-10-05 09:37:48 +00:00
> sib-chat {
@include pos();
2018-09-29 00:22:00 +00:00
}
}
2018-10-31 09:38:41 +00:00
// member-profile && members
2018-10-05 09:37:48 +00:00
.members-list-condensed {
img {
width: 50px;
height: 50px;
border-radius: 100%;
object-fit: cover;
object-position: top;
2018-09-29 00:22:00 +00:00
}
2018-10-05 09:37:48 +00:00
label {
display: none;
2018-09-29 00:22:00 +00:00
}
2018-10-05 09:37:48 +00:00
> div > sib-display > div {
2018-10-31 09:38:41 +00:00
margin: 1em 0;
display: grid;
grid-template-columns: [first] 50px [middle] auto [end];
grid-template-rows: [first] 25px [middle] 25px [end];
align-items: center;
ul{
margin-top: 0px;
margin-bottom: 0px;
list-style-type: none;
}
>[name$="user"]{
color: $color-black;
}
>[name$="avatar"]{
grid-column-start: first;
grid-column-end: middle;
grid-row-start: first;
grid-row-end: end;
}
2018-09-29 00:22:00 +00:00
}
// ul {
// padding-left: 1em;
// }
2018-10-05 09:37:48 +00:00
}
2018-10-31 09:38:41 +00:00
#profiles-list > div > sib-display {
cursor: pointer;
}
#profiles-list > div > sib-display,
sib-display#member-info {
2018-11-21 13:05:56 +00:00
display: flex;
flex-direction: column;
2018-10-05 09:37:48 +00:00
position: relative;
2018-10-19 18:36:16 +00:00
@extend %frame;
2018-10-05 09:37:48 +00:00
padding: 1em;
2018-10-12 17:11:13 +00:00
label {
2018-10-17 21:04:03 +00:00
display: none;
2018-10-12 17:11:13 +00:00
}
2018-10-17 21:04:03 +00:00
div[name='header'] {
border-bottom: 1px solid $color-grey-light;
padding-bottom: 1em;
padding: 0.5em;
margin-bottom: 1em;
2018-11-21 13:05:56 +00:00
display: flex;
flex-direction: column;
>*{
display: flex;
justify-content: center;
flex-basis: content;
}
2018-11-21 13:16:59 +00:00
sib-display-img {
flex-basis:150px;
img {
border-radius: 100%;
width:150px;
}
}
2018-10-17 21:04:03 +00:00
}
2018-10-17 21:04:03 +00:00
hdapp-userinfo {
@extend h1;
}
[name=infos] {
2018-10-31 09:38:41 +00:00
margin: 2em 0;
> * {
2018-11-21 13:05:56 +00:00
// display: block;
2018-10-31 09:38:41 +00:00
margin: 0.5em 0;
}
2018-10-17 21:04:03 +00:00
}
2018-10-31 09:38:41 +00:00
ul[name$='roles'] * {
@include icon('user');
}
2018-10-31 09:38:41 +00:00
ul[name$='cell'] * {
@include icon('location-pin');
}
2018-11-21 13:05:56 +00:00
[name$='user'] {
margin-bottom: 0em;
}
sib-display-div[name$='bio'] {
margin-top: 1em;
flex-basis : 5em;
}
2018-11-21 13:05:56 +00:00
a[href^='mailto'] {
display: flex;
border-radius: 25px;
border-style: solid;
border-color: $color-blue-light;
color: $color-blue-light;
margin: 1em;
padding: 1em;
text-decoration:none;
2018-10-31 09:38:41 +00:00
}
2018-10-31 09:38:41 +00:00
sib-display-tel {
display: block;
@include icon('phone');
}
2018-10-31 09:38:41 +00:00
hdapp-hyperlink {
display: block;
@include icon('link');
2018-11-17 17:01:19 +00:00
}
2018-10-31 09:38:41 +00:00
sib-display-div[name$='foaf:homepage'] * {
@include icon('link');
}
2018-11-25 16:30:11 +00:00
sib-display-div[name$='more']{
display: flex;
flex-direction: row-reverse;
}
2018-10-31 09:38:41 +00:00
}
2018-10-17 21:04:03 +00:00
2018-10-31 09:38:41 +00:00
hdapp-available {
display: block;
text-align: right;
2018-10-31 09:38:41 +00:00
strong {
@extend %button;
}
2018-09-29 00:22:00 +00:00
}
2018-10-05 09:37:48 +00:00
#profiles-list {
@extend .grid-layer;
> sib-form {
grid-column-start: start;
grid-column-end: middle;
grid-row-start: start;
grid-row-end: middle;
}
2018-10-05 09:37:48 +00:00
> div {
grid-column-start: start;
grid-column-end: end;
grid-row-start: middle;
grid-row-end: end;
2018-10-05 09:37:48 +00:00
display: grid;
margin-top: 1em;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 1em;
2018-09-29 00:22:00 +00:00
}
}
#profiles-list > sib-form > form {
2018-11-19 18:45:42 +00:00
display: grid;
grid-template-columns: 50% 50%;
grid-template-rows: 3.5em 3.5em;
label {
flex-basis: 5em;
2018-11-19 18:45:42 +00:00
flex-shrink: 0;
}
input, select {
flex-grow: 1;
min-width: 0;
2018-11-19 18:45:42 +00:00
}
input[type="submit"] {
display: none;
2018-11-19 18:45:42 +00:00
}
}
#offers-list {
@extend .grid-layer;
> sib-form {
grid-column-start: start;
grid-column-end: middle;
grid-row-start: start;
grid-row-end: middle;
}
> div {
grid-column-start: start;
grid-column-end: end;
grid-row-start: middle;
grid-row-end: end;
}
}
2018-11-19 18:45:42 +00:00
2018-10-31 09:38:41 +00:00
#member-profile,
#profiles-list {
ul {
@include list-reset();
}
}
2018-10-31 09:38:41 +00:00
#member-profile {
@include media('width>tablet') {
div[name='header'] {
float: left;
width: 50%;
}
}
2018-10-31 09:38:41 +00:00
div[name='name'] {
@extend h1;
2018-10-31 09:38:41 +00:00
div {
display: inline-block;
margin-right: 0.4em;
}
}
2018-10-31 09:38:41 +00:00
div[name='pseudonym'] {
margin-top: -1em;
margin-bottom: 1em;
}
2018-10-31 09:38:41 +00:00
#member-info {
&:after {
content: '';
display: block;
clear: both;
}
}
}
2018-10-08 08:49:31 +00:00
// projects
#project-profile sib-display {
sib-display-div {
> [name^='label-'] {
@extend h2;
}
2018-10-31 09:38:41 +00:00
}
2018-10-12 17:11:13 +00:00
[name='title'] {
@extend h1;
display: flex;
> * {
padding-left: 0.5em;
2018-10-12 17:11:13 +00:00
padding-right: 0.5em;
}
> [name^='const-'] {
padding-left: 0;
padding-right: 0;
}
> [name='name'] {
2018-10-31 09:38:41 +00:00
font-weight: normal;
}
2018-10-08 08:49:31 +00:00
}
2018-10-12 17:11:13 +00:00
}
2018-11-17 17:01:19 +00:00
#clientBox {
margin-top: 1em;
display: grid;
grid-template-columns: 50% 50%;
border-top-width: 1px;
border-top-style: solid;
border-left-width: 1px;
border-left-style: solid;
2018-11-17 17:01:19 +00:00
> * {
label{
font-weight: bold;
margin-right: 1em;
}
border-right-width: 1px;
border-right-style: solid;
border-bottom-width: 1px;
border-bottom-style: solid;
padding: 1em;
> div{
margin-bottom: 1em;
}
}
}
#project-edit form {
2018-11-20 15:28:00 +00:00
display: flex;
flex-direction: column;
align-items: stretch;
> * {
display: flex;
margin-bottom: 1em;
label {
flex-basis: 8em;
flex-shrink: 0;
}
input,
textarea {
flex-grow: 1;
min-width: 0;
}
2018-11-20 15:28:00 +00:00
}
}
2018-10-19 18:36:16 +00:00
/*
2018-10-12 17:11:13 +00:00
label {
@extend h2;
&:after {
content: ':';
}
}
2018-10-31 09:38:41 +00:00
*/
2018-12-10 11:07:14 +00:00