box size refactor

This commit is contained in:
Juan de la Cruz 2016-02-20 22:26:07 +01:00
parent 1c168234b8
commit 8f17ee1fc5
15 changed files with 12 additions and 29 deletions

View file

@ -10,6 +10,7 @@ body {
} }
* { * {
box-sizing: border-box;
transition: all .4s ease; transition: all .4s ease;
} }

View file

@ -5,8 +5,8 @@
} }
.dashboard-content { .dashboard-content {
box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100vh - 60px);
width: 100%; width: 100%;
} }

View file

@ -23,7 +23,6 @@
.date-ribbon { .date-ribbon {
background-color: lighten($color-gray-light, 12%); background-color: lighten($color-gray-light, 12%);
box-sizing: border-box;
color: $color-white; color: $color-white;
font-size: $fs12; font-size: $fs12;
font-weight: bold; font-weight: bold;
@ -34,7 +33,6 @@
.activity-input { .activity-input {
border-bottom: 1px solid $color-gray-lighter; border-bottom: 1px solid $color-gray-lighter;
box-sizing: border-box;
display: flex; display: flex;
font-size: $fs13; font-size: $fs13;
padding: $small; padding: $small;

View file

@ -4,7 +4,6 @@
background-color: $color-white; background-color: $color-white;
border-top: 1px solid $color-gray-lighter; border-top: 1px solid $color-gray-lighter;
bottom: 0; bottom: 0;
box-sizing: border-box;
display: flex; display: flex;
left: 0; left: 0;
padding: 1rem; padding: 1rem;

View file

@ -3,9 +3,13 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: $fs14; font-size: $fs14;
padding: $medium 250px $medium $medium; height: 100%;
padding: $medium;
// ACTIVITY BAR PADDING
//padding: $medium 250px $medium $medium;
.dashboard-title { .dashboard-title {
margin: $medium 0;
position: relative; position: relative;
width: 100%; width: 100%;
@ -47,16 +51,12 @@
.dashboard-grid-content { .dashboard-grid-content {
align-items: center; align-items: center;
box-sizing: border-box;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
height: 100%; height: 100%;
justify-content: center; justify-content: center;
margin: $big;
max-height: 77vh;
min-height: 60vh; min-height: 60vh;
overflow: scroll; overflow: scroll;
padding-bottom: 30px;
width: 100%; width: 100%;
.grid-item { .grid-item {
@ -72,11 +72,11 @@
padding: $medium; padding: $medium;
position: relative; position: relative;
text-align: center; text-align: center;
width: 20%; width: 18%;
&.small-item { &.small-item {
max-width: 12%; max-width: 12%;
min-width: 150px; min-width: 190px;
} }
&.add-project { &.add-project {
@ -128,7 +128,6 @@
.project-th-actions { .project-th-actions {
align-items: center; align-items: center;
box-sizing: border-box;
bottom: 0; bottom: 0;
display: flex; display: flex;
left: 0; left: 0;

View file

@ -54,6 +54,7 @@
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-shrink: 0;
padding: 10px; padding: 10px;
.element-title { .element-title {

View file

@ -14,7 +14,6 @@
align-items: center; align-items: center;
background-color: $color-white; background-color: $color-white;
border-radius: $br-medium; border-radius: $br-medium;
box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: $medium $x-big; padding: $medium $x-big;

View file

@ -2,7 +2,7 @@
align-items: center; align-items: center;
background-color: $primary-ui-bg; background-color: $primary-ui-bg;
display: flex; display: flex;
height: 50px; height: 60px;
padding: $x-small $medium; padding: $x-small $medium;
position: relative; position: relative;
z-index: 10; z-index: 10;
@ -71,7 +71,6 @@
background-color: $color-white; background-color: $color-white;
border-radius: $br-small; border-radius: $br-small;
border: 1px solid $soft-ui-border; border: 1px solid $soft-ui-border;
box-sizing: border-box;
min-width: 150px; min-width: 150px;
padding: 0 $small; padding: 0 $small;
position: absolute; position: absolute;

View file

@ -21,7 +21,6 @@
.project-name { .project-name {
border-bottom: 1px solid $color-gray-lighter; border-bottom: 1px solid $color-gray-lighter;
box-sizing: border-box;
font-size: $fs14; font-size: $fs14;
font-weight: bold; font-weight: bold;
padding: 0 $small; padding: 0 $small;
@ -45,7 +44,6 @@
li { li {
align-items: center; align-items: center;
box-sizing: border-box;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
padding: $x-small $small; padding: $x-small $small;

View file

@ -55,7 +55,6 @@
margin-left: $x-small; margin-left: $x-small;
.element-set-title { .element-set-title {
box-sizing: border-box;
border-bottom: 1px dashed $soft-ui-border; border-bottom: 1px dashed $soft-ui-border;
color: $medium-ui-text; color: $medium-ui-text;
font-weight: bold; font-weight: bold;
@ -75,7 +74,6 @@
.input-text { .input-text {
background-color: transparent; background-color: transparent;
border-color: $soft-ui-border; border-color: $soft-ui-border;
box-sizing: border-box;
color: $intense-ui-text; color: $intense-ui-text;
font-size: $fs13; font-size: $fs13;
margin: $x-small; margin: $x-small;

View file

@ -55,7 +55,6 @@
} }
li { li {
box-sizing: border-box;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -80,7 +79,6 @@
.element-list-body { .element-list-body {
align-items: center; align-items: center;
border-bottom: 1px solid $soft-ui-border; border-bottom: 1px solid $soft-ui-border;
box-sizing: border-box;
display: flex; display: flex;
padding: $small; padding: $small;
width: 100%; width: 100%;

View file

@ -3,7 +3,6 @@
.project-title { .project-title {
align-items: center; align-items: center;
border-bottom: 1px solid $soft-ui-border; border-bottom: 1px solid $soft-ui-border;
box-sizing: border-box;
display: flex; display: flex;
padding: $x-small; padding: $x-small;
width: 100%; width: 100%;
@ -49,7 +48,6 @@
li { li {
align-items: center; align-items: center;
border-bottom: 1px solid $soft-ui-border; border-bottom: 1px solid $soft-ui-border;
box-sizing: border-box;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding: $x-small; padding: $x-small;

View file

@ -1,7 +1,6 @@
.settings-bar { .settings-bar {
background-color: $primary-ui-bg; background-color: $primary-ui-bg;
bottom: 0; bottom: 0;
box-sizing: border-box;
height: 100%; height: 100%;
position: fixed; position: fixed;
right: 0; right: 0;
@ -14,7 +13,6 @@
.settings-bar-inside { .settings-bar-inside {
align-items: center; align-items: center;
box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y: auto; overflow-y: auto;

View file

@ -3,7 +3,7 @@
background-color: $primary-ui-bg; background-color: $primary-ui-bg;
border-bottom: 1px solid $soft-ui-border; border-bottom: 1px solid $soft-ui-border;
display: flex; display: flex;
height: 40px; height: 50px;
padding: $x-small $medium $x-small 65px; padding: $x-small $medium $x-small 65px;
position: relative; position: relative;
z-index: 11; z-index: 11;
@ -46,7 +46,6 @@
align-items: center; align-items: center;
background-color: $secondary-ui-bg; background-color: $secondary-ui-bg;
border-radius: $br-small; border-radius: $br-small;
box-sizing: border-box;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
min-width: 164px; min-width: 164px;

View file

@ -1,6 +1,5 @@
.workspace-content { .workspace-content {
background-color: $canvas-bg; background-color: $canvas-bg;
box-sizing: border-box;
display: flex; display: flex;
height: 100%; height: 100%;
width: 100%; width: 100%;
@ -20,7 +19,6 @@
} }
.workspace-canvas { .workspace-canvas {
box-sizing: border-box;
height: calc(100vh - 50px); height: calc(100vh - 50px);
overflow: scroll; overflow: scroll;
transition: none; transition: none;