Removed flexbox mixins to vanilla CSS

stable
Xavier Julián 2015-01-15 14:35:09 +01:00
parent b1a0ba2345
commit b02032634d
25 changed files with 256 additions and 207 deletions

View File

@ -1,21 +1,3 @@
//Flexbox FTW
%table-flex {
align-content: stretch;
align-items: stretch;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
}
%table-flex-child {
flex-basis: 300px;
flex-grow: 1;
flex-shrink: 0;
width: 300px;
}
// __Font Sizes__ // // __Font Sizes__ //
%xsmall {font-size: .5rem;} %xsmall {font-size: .5rem;}
%small {font-size: .8rem;} %small {font-size: .8rem;}
@ -48,7 +30,10 @@
top: 2rem; top: 2rem;
} }
&.open { &.open {
@include table-flex(center, center, flex, row, wrap, center); align-content: center;
align-items: center;
display: flex;
justify-content: center;
opacity: 1; opacity: 1;
transition: opacity .3s ease; transition: opacity .3s ease;
} }

View File

@ -5,8 +5,10 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
// DEPRECATED MIXIN
// USE FLEXBOX WITHOUT PREFIXES.
// Table Flex - http://devbryce.com/site/flexbox/ // Table Flex - http://devbryce.com/site/flexbox/
@mixin table-flex($align-content: stretch, $align-items: stretch, $display: flex, $flex-direction: row, $flex-wrap: wrap, $justify-content: flex-start) { /* @mixin table-flex($align-content: stretch, $align-items: stretch, $display: flex, $flex-direction: row, $flex-wrap: wrap, $justify-content: flex-start) {
align-content: $align-content; //flex-start | flex-end | center | space-between | space-around | stretch align-content: $align-content; //flex-start | flex-end | center | space-between | space-around | stretch
align-items: $align-items; //flex-start | flex-end | center | baseline | stretch align-items: $align-items; //flex-start | flex-end | center | baseline | stretch
display: $display; display: $display;
@ -24,7 +26,7 @@
width: #{$width}; width: #{$width};
} }
} }
*/
@mixin box-shadow($h-shadow: 1px, $v-shadow: 1px, $blur: 15px, $spread: 6px, $color: rgba(0, 0, 0, .1)) { @mixin box-shadow($h-shadow: 1px, $v-shadow: 1px, $blur: 15px, $spread: 6px, $color: rgba(0, 0, 0, .1)) {
box-shadow: $h-shadow $v-shadow $blur $spread $color; box-shadow: $h-shadow $v-shadow $blur $spread $color;
} }

View File

@ -1,14 +1,18 @@
.invitation-main { .invitation-main {
@extend %background-taiga; @extend %background-taiga;
@include table-flex(center, center, flex, row, wrap, center); align-content: center;
align-items: center;
bottom: 0; bottom: 0;
justify-content: center;
left: 0; left: 0;
position: fixed; position: fixed;
right: 0; right: 0;
top: 0; top: 0;
z-index: 999; z-index: 999;
.invitation-container { .invitation-container {
@include table-flex-child(0, 650px, 0, 650px); flex-basis: 650px;
flex-grow: 1;
width: 650px;
} }
.logo { .logo {
margin: 1rem auto; margin: 1rem auto;
@ -43,7 +47,7 @@
} }
} }
.invitation-form { .invitation-form {
@include table-flex(); display: flex;
fieldset { fieldset {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
@ -90,9 +94,11 @@
} }
.login-form, .login-form,
.register-form { .register-form {
@include table-flex-child(1, 200px, 0, 200px); flex-basis: 200px;
flex-grow: 1;
padding: 1rem; padding: 1rem;
text-align: center; text-align: center;
width: 200px;
.form-header { .form-header {
color: #999; color: #999;
} }

View File

@ -1,6 +1,5 @@
.login-main { .login-main {
@extend %triangled-bg; @extend %triangled-bg;
//@include table-flex(center, center, flex, row, wrap, center);
align-items: center; align-items: center;
bottom: 0; bottom: 0;
display: flex; display: flex;

View File

@ -20,50 +20,55 @@
.us-name, .us-name,
.us-related-task { .us-related-task {
color: $white; color: $white;
}
a { a {
color: $white; color: $white;
transition: color .3s linear; transition: color .3s linear;
&:hover { }
a:hover {
color: $red-light; color: $red-light;
} }
}
}
.unblock { .unblock {
@extend %bold; @extend %bold;
color: $white; color: $white;
float: right; float: right;
&:hover { }
.unblock:hover {
color: $red-light; color: $red-light;
transition: color .3s linear; transition: color .3s linear;
} }
} }
.issue-nav {
a {
color: $white;
}
}
}
p { p {
margin-bottom: 0; margin-bottom: 0;
} }
.us-edit-name-inner { .us-edit-name-inner {
@include table-flex(); display: flex;
}
.edit-subject {
align-content: center;
align-items: center;
display: flex;
} }
input { input {
@include table-flex-child(1, 90%, 0);
background: $white; background: $white;
flex-grow: 9;
}
.save-container {
flex-grow: 1;
} }
.us-title-text { .us-title-text {
align-content: center;
align-items: center;
display: flex; display: flex;
margin-bottom: 0; margin-bottom: 0;
max-width: 94%; max-width: 94%;
&:hover { }
.us-title-text:hover {
.icon-edit { .icon-edit {
opacity: 1; opacity: 1;
transition: opacity .3s linear; transition: opacity .3s linear;
} }
} }
}
.us-number { .us-number {
@extend %xlarge; @extend %xlarge;
@extend %title; @extend %title;
@ -98,14 +103,14 @@
border-left: 1px solid $gray-light; border-left: 1px solid $gray-light;
padding: 0 .2rem; padding: 0 .2rem;
transition: color .3s linear; transition: color .3s linear;
&:hover { }
a:hover {
color: $green-taiga; color: $green-taiga;
} }
&:first-child { a:first-child {
border: 0; border: 0;
} }
} }
}
.block-desc-container { .block-desc-container {
@extend %small; @extend %small;
} }
@ -162,12 +167,12 @@
.editable { .editable {
background: $whitish; background: $whitish;
cursor: pointer; cursor: pointer;
}
.no-description { .no-description {
color: $grayer; color: $grayer;
} }
} }
} }
}
&.wysiwyg { &.wysiwyg {
overflow: visible; overflow: visible;
} }
@ -252,17 +257,19 @@
} }
.points-per-role { .points-per-role {
@include table-flex(); display: flex;
position: relative; position: relative;
> li { > li {
@include table-flex-child(1, 18%, 0);
border-right: 1px solid rgba($grayer, .3); border-right: 1px solid rgba($grayer, .3);
color: rgba($grayer, .3); color: rgba($grayer, .3);
display: inline-block; display: inline-block;
flex-basis: 18%;
flex-grow: 1;
margin: .5rem .1rem; margin: .5rem .1rem;
position: relative; position: relative;
text-align: center; text-align: center;
transition: color .3s linear; transition: color .3s linear;
width: 18%;
&.active { &.active {
color: rgba($green-taiga, 1); color: rgba($green-taiga, 1);
} }

View File

@ -2,37 +2,36 @@
form { form {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
width: 100%;
} }
.functionality { .functionality {
@include table-flex(center, center, flex, column, wrap, center); align-content: center;
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
background-color: $whitish; background-color: $whitish;
display: inline-block;
margin-bottom: .3rem; margin-bottom: .3rem;
margin-right: .3rem; margin-right: .3rem;
min-height: 14px;
opacity: .5; opacity: .5;
padding: 1rem; padding: 1rem;
position: relative; position: relative;
transition: all .2s linear; transition: all .2s linear;
vertical-align: top; vertical-align: top;
width: 32%; width: 32%;
&:nth-child(3n+1) {
margin-right: 0;
}
&.active { &.active {
background-color: #e9f0da; background-color: #e9f0da;
opacity: 1; opacity: 1;
} }
.icon { .icon {
@extend %xxlarge; @extend %xxlarge;
@include table-flex-child(1, 120px, 0, 100%); flex-grow: 1;
flex-basis: 60px;
margin: 0 auto; margin: 0 auto;
min-height: 60px; min-height: 60px;
text-align: center;
} }
.desc { .desc {
@include table-flex-child(1 , 0, 0, 100%); flex-grow: 1;
text-align: center;
} }
.activate-input { .activate-input {
display: none; display: none;
@ -45,10 +44,7 @@
} }
span { span {
font-weight: bold; font-weight: bold;
} display: block;
p {
margin-bottom: 1rem;
min-height: 4.5rem;
} }
select { select {
margin-top: 1rem; margin-top: 1rem;

View File

@ -3,7 +3,9 @@
@extend %bold; @extend %bold;
} }
.avatar { .avatar {
@include table-flex(stretch, center, flex, row, wrap, flex-start); align-items: center;
display: flex;
justify-content: flex-start;
figcaption { figcaption {
margin-left: 1rem; margin-left: 1rem;
width: 75%; width: 75%;
@ -15,7 +17,8 @@
} }
} }
img { img {
@include table-flex-child(1, 35px, 0); flex-basis: 35px;
flex-grow: 1;
max-width: 35px; max-width: 35px;
} }
.name, .name,
@ -38,7 +41,9 @@
padding-right: 1rem; padding-right: 1rem;
} }
.row-status { .row-status {
@include table-flex($justify-content: space-between, $align-items: center); align-items: center;
display: flex;
justify-content: space-between;
} }
.active, .active,
.pending { .pending {
@ -78,17 +83,20 @@
.row-role, .row-role,
.header-member, .header-member,
.header-role { .header-role {
@include table-flex-child(3, 0, 0); flex-basis: 210px;
flex-grow: 3;
min-width: 210px; min-width: 210px;
} }
.row-admin, .row-admin,
.header-admin { .header-admin {
@include table-flex-child(1, 0, 0); flex-basis: 0;
flex-grow: 1;
min-width: 70px; min-width: 70px;
} }
.row-status, .row-status,
.header-status { .header-status {
@include table-flex-child(1, 50px, 0); flex-basis: 50px;
flex-grow: 1;
} }
.check { .check {
background-color: darken($whitish, 10%); background-color: darken($whitish, 10%);
@ -98,7 +106,7 @@
overflow: hidden; overflow: hidden;
position: relative; position: relative;
width: 65px; width: 65px;
input[type=checkbox] { input {
cursor: pointer; cursor: pointer;
height: 500px; height: 500px;
left: -10px; left: -10px;
@ -129,7 +137,7 @@
opacity: .6; opacity: .6;
} }
} }
input[type=checkbox]:checked { input:checked {
+ div { + div {
background-color: #74a218; background-color: #74a218;
margin-left: 50%; margin-left: 50%;

View File

@ -3,7 +3,7 @@
max-width: 700px; max-width: 700px;
width: 100%; width: 100%;
} }
input[type="text"], input,
textarea { textarea {
@extend %title; @extend %title;
} }
@ -19,10 +19,11 @@
height: 10rem; height: 10rem;
} }
.privacy-settings { .privacy-settings {
@include table-flex(); display: flex;
margin-bottom: 2rem; margin-bottom: 2rem;
div { div {
@include table-flex-child(1, 0, 0, 40%); flex-basis: 0;
flex-grow: 1;
&:first-child { &:first-child {
margin-right: .5rem; margin-right: .5rem;
} }
@ -36,14 +37,12 @@
text-align: center; text-align: center;
} }
input { input {
&:checked { &:checked+label {
+label {
background: $fresh-taiga; background: $fresh-taiga;
color: $white; color: $white;
} }
} }
} }
}
.button-green { .button-green {
color: $white; color: $white;
display: block; display: block;

View File

@ -13,7 +13,7 @@
transition: opacity .3s linear; transition: opacity .3s linear;
} }
.edit-role { .edit-role {
@include table-flex(stretch, left, center, row, wrap); align-items: left;
background-color: $whitish; background-color: $whitish;
display: none; display: none;
margin-bottom: 1rem; margin-bottom: 1rem;
@ -55,7 +55,7 @@
overflow: hidden; overflow: hidden;
position: relative; position: relative;
width: 65px; width: 65px;
input[type=checkbox] { input {
cursor: pointer; cursor: pointer;
height: 500px; height: 500px;
left: -10px; left: -10px;
@ -86,7 +86,7 @@
opacity: .6; opacity: .6;
} }
} }
input[type=checkbox]:checked { input:checked {
+ div { + div {
background-color: #74a218; background-color: #74a218;
margin-left: 50%; margin-left: 50%;

View File

@ -1,6 +1,8 @@
.project-values-row { .project-values-row {
@include table-flex(stretch, center, flex, row, wrap, center); align-items: center;
border-bottom: 1px solid $whitish; border-bottom: 1px solid $whitish;
display: flex;
justify-content: center;
padding: 1rem; padding: 1rem;
div { div {
margin-left: 1rem; margin-left: 1rem;
@ -36,10 +38,12 @@
} }
.project-values-name { .project-values-name {
@include table-flex-child(3, 0, 0); flex-basis: 0;
flex-grow: 3;
} }
.project-values-value { .project-values-value {
@include table-flex-child(1, 0, 0); flex-basis: 0;
flex-grow: 1;
.checksley-error-list { .checksley-error-list {
left: 0; left: 0;
right: auto; right: auto;
@ -50,7 +54,8 @@
.project-values-isclosed, .project-values-isclosed,
.project-values-settings { .project-values-settings {
@include table-flex-child(1, 0, 0); flex-basis: 0;
flex-grow: 1;
text-align: right; text-align: right;
} }

View File

@ -1,6 +1,7 @@
.backlog-table-header, .backlog-table-header,
.backlog-table-body { .backlog-table-body {
@include table-flex(); display: flex;
flex-direction: column;
width: 100%; width: 100%;
&.show-tags { &.show-tags {
.tags-block { .tags-block {
@ -9,8 +10,8 @@
} }
.row { .row {
@extend %small; @extend %small;
@include table-flex();
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
display: flex;
padding: .5rem 0 .5rem .5rem; padding: .5rem 0 .5rem .5rem;
text-align: left; text-align: left;
width: 100%; width: 100%;
@ -26,10 +27,12 @@
} }
.status { .status {
@include table-flex-child(0, 150px, 0); flex-basis: 150px;
flex-grow: 0;
} }
.points { .points {
@include table-flex-child(0, 125px, 0); flex-basis: 125px;
flex-grow: 0;
} }
} }
@ -136,31 +139,28 @@
transition: background .2s ease-in; transition: background .2s ease-in;
} }
.points { .points {
.not-clickable { .not-clickable:hover {
&:hover {
color: $black; color: $black;
cursor: text; cursor: text;
} }
} }
} }
}
.row-selected { .row-selected {
background: lighten($green-taiga, 60%); background: lighten($green-taiga, 60%);
transition: background .2s ease-in; transition: background .2s ease-in;
} }
.user-story-name { .user-story-name {
@include table-flex($flex-wrap: nowrap); display: flex;
flex-wrap: nowrap;
input { input {
flex-shrink: 0; flex-shrink: 0;
margin-right: 1rem; margin-right: 1rem;
vertical-align: super; vertical-align: super;
&:checked { &:checked+a {
+a {
color: $fresh-taiga; color: $fresh-taiga;
transition: color .2s ease-in; transition: color .2s ease-in;
} }
} }
}
a { a {
display: inline-block; display: inline-block;
flex-grow: 20; flex-grow: 20;

View File

@ -90,16 +90,16 @@
margin-top: 5px; margin-top: 5px;
} }
.sprint-summary { .sprint-summary {
@include table-flex(); display: flex;
} }
.sprint-date { .sprint-date {
@extend %large; @extend %large;
@extend %title; @extend %title;
@include table-flex-child(1, 0, 0);
color: $gray-light; color: $gray-light;
flex-flow: 1;
} }
.sprint-points { .sprint-points {
@include table-flex-child(1, 0, 0); flex-grow: 1;
} }
ul { ul {
float: right; float: right;
@ -132,8 +132,8 @@
} }
.sprint-table { .sprint-table {
.row { .row {
@include table-flex();
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
display: flex;
padding: .5em 0; padding: .5em 0;
text-align: left; text-align: left;
width: 100%; width: 100%;
@ -158,7 +158,7 @@
} }
.column-us { .column-us {
@extend %small; @extend %small;
@include table-flex-child(3, 0, 0); flex-flow: 3;
padding: 0 4px; padding: 0 4px;
} }
.us-name { .us-name {
@ -172,7 +172,7 @@
} }
} }
.column-points { .column-points {
@include table-flex-child(1, 0, 0); flex-grow: 1;
padding: 0 4px; padding: 0 4px;
text-align: right; text-align: right;
&.closed { &.closed {

View File

@ -31,8 +31,9 @@ $column-margin: 0 10px 0 0;
} }
&.task-column, &.task-column,
.task-column { .task-column {
@include table-flex(flex-start); align-content: flex-start;
flex-direction: row; display: flex;
flex-direction: column;
} }
.avatar-task-link { .avatar-task-link {
display: block; display: block;
@ -52,16 +53,25 @@ $column-margin: 0 10px 0 0;
position: relative; position: relative;
width: 100%; width: 100%;
.taskboard-table-inner { .taskboard-table-inner {
@include table-flex(); display: flex;
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
} }
.task-colum-name { .task-colum-name {
@extend %large; @extend %large;
<<<<<<< HEAD
@include table-flex(); @include table-flex();
background: $whitish; background: $whitish;
border-top: 3px solid $gray-light; border-top: 3px solid $gray-light;
flex: auto 0 auto; flex: auto 0 auto;
=======
background: $whitish;
border-top: 3px solid $gray-light;
display: flex;
flex-basis: $column-width;
flex-grow: $column-flex;
flex-shrink: $column-shrink;
>>>>>>> Removed flexbox mixins to vanilla CSS
justify-content: space-between; justify-content: space-between;
margin: $column-margin; margin: $column-margin;
max-width: $column-width; max-width: $column-width;
@ -93,14 +103,12 @@ $column-margin: 0 10px 0 0;
span { span {
display: none; display: none;
} }
.icon { .hfold,
&.hfold, .hunfold {
&.hunfold {
margin: 0; margin: 0;
} }
} }
} }
}
} }
.taskboard-table-body { .taskboard-table-body {
@ -109,7 +117,9 @@ $column-margin: 0 10px 0 0;
overflow-y: scroll; overflow-y: scroll;
width: 100%; width: 100%;
.task-column { .task-column {
@include table-flex-child($column-flex, $column-width, $column-shrink, $column-width); flex-basis: $column-width;
flex-grow: $column-flex;
flex-shrink: $column-shrink;
margin: $column-margin; margin: $column-margin;
max-width: $column-width; max-width: $column-width;
width: $column-width; width: $column-width;
@ -128,7 +138,7 @@ $column-margin: 0 10px 0 0;
} }
} }
.task-row { .task-row {
@include table-flex(); display: flex;
margin-bottom: .5rem; margin-bottom: .5rem;
min-height: 10rem; min-height: 10rem;
width: 100%; width: 100%;
@ -142,23 +152,23 @@ $column-margin: 0 10px 0 0;
.taskboard-userstory-box { .taskboard-userstory-box {
background: rgba($red, .6); background: rgba($red, .6);
border-radius: 3px; border-radius: 3px;
}
a, a,
.points-value { .points-value {
color: rgba($white, .9); color: rgba($white, .9);
transition: color .3s linear; transition: color .3s linear;
&:hover { }
a:hover,
.points-value:hover {
color: rgba($white, 1); color: rgba($white, 1);
transition: color .3s linear; transition: color .3s linear;
} }
}
}
.taskboard-tasks-box { .taskboard-tasks-box {
background: rgba($red, .1); background: rgba($red, .1);
} }
} }
&.row-fold { &.row-fold {
min-height: 0; min-height: 0;
.taskboard-userstory-box {
.us-title { .us-title {
@include ellipsis(100%); @include ellipsis(100%);
} }
@ -169,7 +179,6 @@ $column-margin: 0 10px 0 0;
} }
} }
} }
}
.taskboard-tasks-box { .taskboard-tasks-box {
background: $whitish; background: $whitish;
} }

View File

@ -1,5 +1,5 @@
.duty-assigned-to { .duty-assigned-to {
@include table-flex(); display: flex;
margin-top: 1rem; margin-top: 1rem;
position: relative; position: relative;
&:hover { &:hover {
@ -22,14 +22,14 @@
} }
} }
.user-avatar { .user-avatar {
@include table-flex-child(1, 0); flex-grow: 1;
img { img {
border-radius: 8%; border-radius: 8%;
width: 100%; width: 100%;
} }
} }
.assigned-to { .assigned-to {
@include table-flex-child(3, 0); flex-grow: 3;
margin-left: 1rem; margin-left: 1rem;
margin-top: 15px; margin-top: 15px;
.assigned-title { .assigned-title {

View File

@ -19,15 +19,16 @@
} }
} }
.change-entry { .change-entry {
@include table-flex;
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
display: flex;
padding: .5rem; padding: .5rem;
&:last-child { &:last-child {
border-bottom: 0; border-bottom: 0;
} }
.activity-changed, .activity-changed,
.activity-fromto { .activity-fromto {
@include table-flex-child(1, 50px, 0); flex-basis: 50px;
flex-grow: 1;
} }
.activity-changed { .activity-changed {
@extend %bold; @extend %bold;
@ -108,7 +109,7 @@
opacity: 0; opacity: 0;
} }
} }
a.show-more-comments { .show-more-comments {
@extend %small; @extend %small;
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
border-top: 1px solid $gray-light; border-top: 1px solid $gray-light;
@ -148,8 +149,8 @@ a.show-more-comments {
} }
} }
.activity-single { .activity-single {
@include table-flex;
border-bottom: 1px solid $gray-light; border-bottom: 1px solid $gray-light;
display: flex;
padding: 2rem 0; padding: 2rem 0;
position: relative; position: relative;
&:hover { &:hover {
@ -212,7 +213,8 @@ a.show-more-comments {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
.activity-user { .activity-user {
@include table-flex-child(1, 50px, 0); flex-basis: 50px;
flex-grow: 1;
img { img {
max-width: 70px; max-width: 70px;
width: 100%; width: 100%;
@ -224,7 +226,8 @@ a.show-more-comments {
} }
.activity-content { .activity-content {
@include table-flex-child(20, 150px, 0); flex-basis: 150px;
flex-grow: 20;
} }
.changes { .changes {
background: $whitish; background: $whitish;

View File

@ -1,7 +1,9 @@
.create-project { .create-project {
@extend %triangled-bg; @extend %triangled-bg;
@include table-flex(center, center, flex, row, wrap, center); align-content: center;
align-items: center;
bottom: 0; bottom: 0;
justify-content: center;
left: 0; left: 0;
position: fixed; position: fixed;
right: 0; right: 0;
@ -11,7 +13,8 @@
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.create-project-container { .create-project-container {
@include table-flex-child(0, 400px, 0, 400px); flex-basis: 400px;
flex-grow: 0;
} }
h1 { h1 {
color: $white; color: $white;

View File

@ -1,5 +1,6 @@
.lightbox-generic-notion { .lightbox-generic-notion {
section { section {
@include table-flex-child(0, 600px, 0); display: flex;
flex-basis: 600px;
} }
} }

View File

@ -1,7 +1,8 @@
.home-project-info-list { .home-project-info-list {
@include table-flex(); display: flex;
li { li {
@include table-flex-child(1, 0, 0, auto); flex-basis: 0;
flex-grow: 1;
margin-right: 1rem; margin-right: 1rem;
} }
.info-num { .info-num {
@ -20,12 +21,12 @@
} }
.project-data-container { .project-data-container {
@include table-flex(); display: flex;
p { p {
@include table-flex-child(3, 0, 0); flex-grow: 3;
} }
ul { ul {
@include table-flex-child(1, 0, 0); flex-grow: 1;
} }
li { li {
display: inline-block; display: inline-block;

View File

@ -1,30 +1,31 @@
.home-projects-list, .home-projects-list,
.home-project { .home-project {
@extend %background-taiga; @extend %background-taiga;
@include table-flex(center, center, flex, row, wrap, center); align-content: center;
align-items: center;
background-color: $black; background-color: $black;
background-position: center center; background-position: center center;
background-size: cover; background-size: cover;
display: flex;
height: 100%; height: 100%;
justify-content: center;
left: 0; left: 0;
padding: 0; padding: 0;
position: fixed; position: fixed;
top: 0; top: 0;
width: 100%; width: 100%;
.welcome-user { .welcome-user {
@include table-flex(); display: flex;
position: absolute; position: absolute;
right: 1rem; right: 1rem;
top: 1rem; top: 1rem;
p { p {
color: $whitish; color: $whitish;
margin-bottom: 0; margin-bottom: 0;
span { span:before {
&:before {
content: ' '; content: ' ';
} }
} }
}
.logout { .logout {
@extend %small; @extend %small;
float: right; float: right;
@ -41,17 +42,20 @@
} }
} }
.home-projects-wrapper { .home-projects-wrapper {
@include table-flex-child(0, 1200px, 0, 1200px); flex-grow: 1;
max-width: 1200px;
} }
.home-projects-list-inner { .home-projects-list-inner {
@include table-flex(); display: flex;
} }
.recent-projects { .recent-projects {
@include table-flex-child(8, 0, 0, 800px); flex-grow: 8;
max-width: 800px;
ul { ul {
@include table-flex(); display: flex;
flex-wrap: wrap;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -64,15 +68,18 @@
width: 100%; width: 100%;
} }
li { li {
@include table-flex-child(1, 230px, 0, 23.5%);
background-color: rgba($white, .5); background-color: rgba($white, .5);
color: $whitish; color: $whitish;
flex-basis: 230px;
flex-grow: 1;
flex-shrink: 0;
height: 130px; height: 130px;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-right: 1rem; margin-right: 1rem;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
transition: background-color .3s linear; transition: background-color .3s linear;
width: 23.5%;
&:hover { &:hover {
background-color: rgba($fresh-taiga, .5); background-color: rgba($fresh-taiga, .5);
cursor: pointer; cursor: pointer;
@ -104,13 +111,14 @@
} }
.all-projects { .all-projects {
@include table-flex-child(1, 285px, 0, 285px);
background-color: rgba(0, 0, 0, .5); background-color: rgba(0, 0, 0, .5);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1;
margin-left: 1rem; margin-left: 1rem;
max-height: 422px; max-height: 422px;
padding: 1rem; padding: 1rem;
width: 285px;
h1 { h1 {
color: $whitish; color: $whitish;
flex-shrink: 0; flex-shrink: 0;
@ -140,10 +148,6 @@
&:hover { &:hover {
background-color: $gray; background-color: $gray;
transition: background-color .3s linear; transition: background-color .3s linear;
.icon {
opacity: 1;
transition: opacity .3s linear;
}
} }
} }
} }

View File

@ -1,5 +1,5 @@
.issues-table { .issues-table {
@include table-flex(); display: flex;
margin-bottom: 2rem; margin-bottom: 2rem;
&.empty { &.empty {
display: none; display: none;
@ -7,7 +7,7 @@
.row { .row {
&:hover { &:hover {
background: lighten($green-taiga, 60%); background: lighten($green-taiga, 60%);
transition : background .2s ease-in; transition: background .2s ease-in;
} }
.icon { .icon {
display: inline; display: inline;
@ -15,7 +15,7 @@
} }
.row-selected { .row-selected {
background: lighten($green-taiga, 60%); background: lighten($green-taiga, 60%);
transition : background .2s ease-in; transition: background .2s ease-in;
} }
.title { .title {
@extend %medium; @extend %medium;
@ -33,21 +33,25 @@
border-bottom: 1px solid darken($whitish, 4%); border-bottom: 1px solid darken($whitish, 4%);
} }
.avatar { .avatar {
@include table-flex(stretch, center, flex, row, wrap, flex-start); align-items: center;
display: flex;
img { img {
width: 35px; width: 35px;
} }
figcaption { figcaption {
@include table-flex-child(1, 60%, 0); flex-basis: 60%;
flex-grow: 1;
margin-left: .5rem; margin-left: .5rem;
} }
} }
.level-field { .level-field {
@include table-flex-child(1, 70px, 0); flex-basis: 70px;
flex-grow: 1;
text-align: center; text-align: center;
} }
.subject { .subject {
@include table-flex-child(7, 300px, 0); flex-basis: 300px;
flex-grow: 7;
padding-right: 1rem; padding-right: 1rem;
span { span {
&:first-child { &:first-child {
@ -58,13 +62,15 @@
.issue-field, .issue-field,
.assigned-field, .assigned-field,
.created-field { .created-field {
@include table-flex-child(1, 100px, 0); flex-basis: 100px;
flex-grow: 1;
padding: 0 1rem; padding: 0 1rem;
position: relative; position: relative;
text-align: left; text-align: left;
} }
.assigned-field { .assigned-field {
@include table-flex-child(2, 100px, 0); flex-basis: 100px;
flex-grow: 2;
} }
.issue-assignedto { .issue-assignedto {
cursor: pointer; cursor: pointer;

View File

@ -11,9 +11,9 @@ $column-margin: 0 10px 0 0;
width: 100%; width: 100%;
.vfold { .vfold {
&.task-colum-name { &.task-colum-name {
@include table-flex();
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
display: flex;
justify-content: center; justify-content: center;
opacity: .8; opacity: .8;
padding: .5rem 0; padding: .5rem 0;
@ -33,7 +33,7 @@ $column-margin: 0 10px 0 0;
} }
&.task-colum-name, &.task-colum-name,
&.task-column { &.task-column {
@include table-flex-child(1, 0, 0); flex-flow: 1;
max-width: $column-folded-width; max-width: $column-folded-width;
min-height: 2.5rem; min-height: 2.5rem;
min-width: $column-folded-width; min-width: $column-folded-width;
@ -50,16 +50,18 @@ $column-margin: 0 10px 0 0;
position: relative; position: relative;
width: 100%; width: 100%;
.kanban-table-inner { .kanban-table-inner {
@include table-flex(); display: flex;
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
} }
.task-colum-name { .task-colum-name {
@extend %large; @extend %large;
@include table-flex();
background: $whitish; background: $whitish;
border-top: 3px solid $gray-light; border-top: 3px solid $gray-light;
flex: auto 0 auto; display: flex;
flex-basis: $column-width;
flex-grow: $column-flex;
flex-shrink: $column-shrink;
justify-content: space-between; justify-content: space-between;
margin: $column-margin; margin: $column-margin;
max-width: $column-width; max-width: $column-width;
@ -89,14 +91,17 @@ $column-margin: 0 10px 0 0;
.kanban-table-body { .kanban-table-body {
@extend %medium; @extend %medium;
@include table-flex(); display: flex;
overflow: hidden; overflow: hidden;
overflow-x: auto; overflow-x: auto;
width: 100%; width: 100%;
.task-column { .task-column {
@include table-flex-child($column-flex, $column-width, $column-shrink, $column-width); flex-basis: $column-width;
flex-grow: $column-flex;
flex-shrink: $column-shrink;
margin: $column-margin; margin: $column-margin;
overflow-y: auto; overflow-y: auto;
widows: $column-width;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
@ -123,5 +128,6 @@ $column-margin: 0 10px 0 0;
} }
.kanban-table-inner { .kanban-table-inner {
@include table-flex($flex-wrap: nowrap); display: flex;
flex-wrap: nowrap;
} }

View File

@ -17,7 +17,8 @@
} }
.user-stories { .user-stories {
flex-basis: 0; flex-basis: 0;
flex-grow: 10; flex-grow: 5;
flex-shrink: 1;
} }
.status, .status,
.points { .points {
@ -27,9 +28,9 @@
text-align: center; text-align: center;
} }
.assigned-to { .assigned-to {
flex-basis: 150px;
flex-grow: 1;
padding: 0 1rem; padding: 0 1rem;
flex-basis: 250px;
flex-grow: 1;
} }
} }
.row-selected { .row-selected {

View File

@ -49,7 +49,7 @@
&:hover { &:hover {
.icon { .icon {
color: $red; color: $red;
transition : color .3s linear; transition: color .3s linear;
} }
} }
} }
@ -67,9 +67,11 @@
} }
} }
.avatar { .avatar {
@include table-flex(stretch, center, flex, row, wrap, flex-start); align-items: center;
display: flex;
img { img {
@include table-flex-child(1, 66px, 0); flex-basis: 66px;
flex-grow: 1;
max-width: 66px; max-width: 66px;
} }
figcaption { figcaption {

View File

@ -1,7 +1,9 @@
.policy-table { .policy-table {
.policy-table-row { .policy-table-row {
@include table-flex(stretch, center, flex, row, wrap, center); align-items: center;
border-bottom: 1px solid $whitish; border-bottom: 1px solid $whitish;
display: flex;
justify-content: center;
} }
.policy-table-header { .policy-table-header {
@ -17,13 +19,15 @@
} }
.policy-table-project { .policy-table-project {
@include table-flex-child(3, 0, 0); flex-basis: 0;
flex-grow: 3;
} }
.policy-table-all, .policy-table-all,
.policy-table-involved, .policy-table-involved,
.policy-table-none { .policy-table-none {
@include table-flex-child(1, 0, 0); flex-basis: 0;
flex-grow: 1;
} }
input { input {
display: none; display: none;

View File

@ -3,10 +3,11 @@
max-width: 700px; max-width: 700px;
width: 100%; width: 100%;
.container { .container {
@include table-flex(); display: flex;
} }
.avatar-container { .avatar-container {
@include table-flex-child(1, 0, 0); flex-basis: 0;
flex-grow: 1;
margin-right: 1rem; margin-right: 1rem;
.image-container { .image-container {
position: relative; position: relative;
@ -51,7 +52,8 @@
} }
} }
.data { .data {
@include table-flex-child(3, 0, 0); flex-basis: 0;
flex-grow: 3;
} }
} }
fieldset { fieldset {