ui(general): MR!20 - Multiple changes for alpha

This commit is contained in:
Gaëlle Morin
2019-04-15 23:11:56 +02:00
parent f6cd936b66
commit 5bee6f4fd7
22 changed files with 284 additions and 116 deletions

View File

@ -12,6 +12,7 @@
appearance: none;
border-style: none;
box-shadow: 0 0 5px 0 rgba(133, 140, 148, 0.09);
color: $color-taupe-gray;
font-size: 1.36rem;
line-height: 1.80;
margin-top: 1.36rem;
@ -32,9 +33,7 @@
background-repeat: no-repeat;
background-size: 14px 9px;
box-sizing: border-box;
color: $color-taupe-gray;
display: inline-block;
padding: 0.68rem;
width: 100%;
> option:not(:first-child) {

View File

@ -18,7 +18,7 @@
#project-create,
#project-edit {
flex: 1;
font-size: 1.7rem;
font-size: 1.5rem;
h1 {
color: $color-purple-dark;
@ -39,11 +39,12 @@
div[name^='block-'] {
display: flex;
> * {
margin-right: 4rem;
}
flex-direction: column;
}
@include styleTemplateFieldset('fee');
@include styleTemplateFieldset('customer');
@include styleTemplateFieldset('team');
sib-form-auto-completion,
sib-form-checkbox,
@ -64,7 +65,7 @@
border: none;
color: $color-purple-dark;
line-height: 1.5;
width: 95%;
width: 100%;
}
input,
@ -86,6 +87,7 @@
label {
color: $color-dark-lava;
font-weight: 600;
text-transform: initial;
}
}

View File

@ -9,10 +9,6 @@
padding: 1.6rem 0.64rem;
position: relative;
z-index: 1;
//position: relative;
//@include border-shadow(bottom);
//flex-grow: 0;
//flex-basis : 150px;
> * {
padding: 0 2.5rem;

View File

@ -20,6 +20,7 @@
@import 'member-profile';
@import 'members';
@import 'project-profile';
@import 'member-chat';
// @import 'members';
@import 'header';

View File

@ -10,14 +10,23 @@
--sib-notifications-theme: #{$color-46-100-50};
body {
/*Will help to make .content fit your height screen size. Part.1*/
background-color: $color-anti-flash-white;
color: $color-text-base;
display: flex;
flex-direction: column;
font-size: 1.6rem;
margin: 0 auto;
height: 100vh;
margin: 0;
overflow: hidden;
overflow-wrap: break-word;
}
}
img {
max-width: 100%;
}
h1,
h2,
h3,
@ -100,10 +109,12 @@ li {
overflow-x: hidden;
}
/*
#content {
display: flex;
overflow: hidden;
}
*/
#mainContainer {
flex-grow: 1;
@ -222,3 +233,99 @@ member-info-groups {
@extend %group;
}
/* NEW RESPONSIVE */
.right-sidebar {
overflow: hidden;
transition: width 0.3s;
}
.right-sidebar.js-right-sidebar-expanded {
width: 130px;
}
.right-sidebar.js-right-sidebar-collapsed {
width: 62px;
}
/*Define the basic row-column properties that construct the foundation*/
.row {
display: flex;
max-width: 100%;
}
.content {
/*Will help to make .content fit your height screen size. Part 2*/
flex-direction: row;
height: 100%;
overflow: hidden;
}
.col {
min-width: 0;
}
.block-grid {
display: flex;
flex-wrap: nowrap;
height: 100%;
}
/* Dividing into columns */
@mixin respond-to($breakpoint) {
@if map-has-key($breakpoints, $breakpoint) {
@media (min-width: map-get($breakpoints, $breakpoint)) {
@content;
}
}
@else {
@warn "Sorry, no value could be retrieved from `#{$breakpoint}`."
+ "Available breakpoints are: #{map-keys($breakpoints)}.";
}
}
.small-2 {
@include respond-to('phone'){
display: block;
flex: 0 1 calc(100% / 12 * 2);
}
}
.small-shrink {
@include respond-to('phone') {
display: block;
flex: 0 1 auto;
}
}
.medium-auto {
@include respond-to('tablet') {
display: block;
flex: 1;
overflow: auto;
}
}
.small-12 {
@include respond-to('phone') {
display: block;
flex: 0 1 calc(100% / 12 * 12);
}
}
.small-auto {
@include respond-to ('phone') {
display: block;
flex: 1;
overflow: auto;
}
}

View File

@ -0,0 +1,3 @@
#member-chat {
width: 100%;
}

View File

@ -3,7 +3,6 @@
> div {
nav {
transition: all 0.5s;
> sib-router {

View File

@ -147,3 +147,14 @@
}
}
}
@mixin styleTemplateFieldset($name) {
template-legend-#{$name} {
border-bottom: 1px solid $color-link-water;
color: $color-purple-dark;
font-size: 1.8rem;
font-weight: 600;
padding-bottom: 1rem;
}
}

View File

@ -58,6 +58,7 @@
[name='infos'] {
display: flex;
justify-content: space-between;
[name='description'] {
width: 90%;
@ -68,25 +69,27 @@
display: block;
height: 8.5vh;
position: relative;
text-align: center;
text-align: end;
width: 15vw;
}
}
[name='businessProvider'] {
ul {
list-style: none;
padding-left: 0;
[name^='details-'] {
display: flex;
font-size: 1.5rem;
margin-bottom: 0.85rem;
[name='cell-name'],
[name='business-contribution'] {
font-weight: bold;
margin-right: 0.5rem;
}
[name='comma'] {
margin-right: 0.2em;
li {
&:first-child {
margin-bottom: 0.5em;
}
span {
font-weight: bold;
}
}
}
}
}
@ -153,30 +156,10 @@
&::before {
color: $color-selective-yellow;
font-size: 2rem;
font-size: 2.2rem;
padding: 0 1rem 0 0;
}
}
[name$='name'] {
@include mdi('account-outline');
&::before {
padding-left: 0.2em;
}
}
[name$='email'] {
@include icon('envelope');
}
[name$='phone'] {
@include mdi('cellphone-iphone');
&::before{
padding-left: 0.2em;
}
}
}
}
}
@ -227,13 +210,13 @@
}
span ~ sib-display {
div {
> div {
display: flex;
margin-left: 1rem;
div[name='name'] {
@extend %group;
margin-left: 1rem;
}
}
}

View File

@ -85,10 +85,6 @@ $color-majorelle-blue: hsl(244, 73%, 62%);
@include mdi('atom');
}
sib-multiple[name='user.groups'] {
@include mdi('account-outline');
}
[name$='email'] * {
@include mdi('email-outline');
}
@ -106,6 +102,11 @@ $color-majorelle-blue: hsl(244, 73%, 62%);
color: $color-spun-pearl;
font-weight: 600;
margin: 2em 0 0.5em;
text-transform: uppercase;
> div {
padding-bottom: 1rem;
}
}
%notification {
@ -145,5 +146,5 @@ $color-majorelle-blue: hsl(244, 73%, 62%);
$breakpoints: (
phone: 480px,
tablet: 768px,
desktop: 1024px,
);
desktop: 1024px
) !default;