hubl/src/styles/content.scss

483 lines
7.2 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-10-05 09:55:29 +00:00
display: block;
li,
ul {
2018-10-31 09:38:41 +00:00
display: block;
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;
border-radius: 0.25em;
margin: 0.25em;
}
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-10-05 09:37:48 +00:00
display: block;
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-09-29 00:22:00 +00:00
sib-display-img {
2018-10-05 09:37:48 +00:00
$width: 55%;
2018-09-29 00:22:00 +00:00
display: block;
position: relative;
2018-10-05 09:37:48 +00:00
width: $width;
padding-bottom: $width;
2018-09-29 00:22:00 +00:00
height: 0;
2018-10-05 09:37:48 +00:00
margin: 2em auto;
2018-09-29 00:22:00 +00:00
img {
display: block;
position: absolute;
width: 100%;
height: 100%;
border-radius: 100%;
object-fit: cover;
object-position: center;
}
}
2018-10-17 21:04:03 +00:00
div[name='header'] {
2018-10-31 09:38:41 +00:00
// border-top: 2em solid $color-grey-light;
2018-10-17 21:04:03 +00:00
border-bottom: 1px solid $color-grey-light;
padding-bottom: 1em;
margin: -0.5em;
padding: 0.5em;
margin-bottom: 1em;
text-align: center;
}
2018-10-17 21:04:03 +00:00
hdapp-userinfo {
@extend h1;
}
2018-10-17 21:04:03 +00:00
div[name='pseudonym'] {
div {
display: inline;
}
}
[name=infos] {
2018-10-31 09:38:41 +00:00
margin: 2em 0;
> * {
2018-10-31 09:38:41 +00:00
display: block;
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-10-31 09:38:41 +00:00
sib-display-mailto {
display: block;
@include icon('envelope');
}
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-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 {
display: block;
2018-10-05 09:37:48 +00:00
> div {
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%;
label {
flex-basis: 5em;
2018-11-19 18:45:42 +00:00
flex-shrink: 0;
}
input {
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 > sib-form > form {
2018-11-19 18:45:42 +00:00
display: grid;
grid-template-columns: 50% 50%;
label {
flex-basis: 5em;
2018-11-19 18:45:42 +00:00
flex-shrink: 0;
}
input {
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
}
}
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
}
}
.right-link {
2018-11-17 17:01:19 +00:00
padding: 0.5em;
margin-bottom: 1em;
margin-left: 1em;
flex-basis: content;
border-radius: 2em;
div[class*="icon-"] {
margin-right: 1em;
2018-11-17 17:01:19 +00:00
}
}
.how-link {
2018-11-17 17:01:19 +00:00
@extend .right-link;
background-color: $color-white;
color: $color-black;
.icon-idea {
2018-11-17 17:01:19 +00:00
background-color: $color-yellow-light;
border-radius: 100%;
2018-11-17 17:01:19 +00:00
flex-shrink: 0;
flex-grow: 0;
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
width: 1.8em;
height: 1.8em;
2018-11-20 15:28:00 +00:00
//margin-right: 1em;
2018-11-17 17:01:19 +00:00
}
}
.action-link {
2018-11-17 17:01:19 +00:00
@extend .right-link;
background-color: $color-yellow;
color: $color-white;
font-weight: bold;
text-transform: uppercase;
.icon-plus {
2018-11-17 17:01:19 +00:00
flex-shrink: 0;
flex-grow: 0;
justify-content: center;
align-items: center;
display: flex;
2018-11-17 17:01:19 +00:00
&:before {
2018-11-20 15:28:00 +00:00
//font-size: 1.3em;
2018-11-17 17:01:19 +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
*/