Skip to content

Commit

Permalink
Merge pull request #181 from GSA/workspace-dashboard-updates
Browse files Browse the repository at this point in the history
UI updates to  workspace dashboard components
  • Loading branch information
carlosvalle authored Dec 7, 2018
2 parents 4ebde60 + d618111 commit 70f8b87
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 11 deletions.
9 changes: 6 additions & 3 deletions sam-styles/card/_card.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
// CARD
// --------------------------------
.sam.card-next{
border: 1px solid #979797;
background-color: white;
border-radius: 4px;
padding: 10px 15px;
margin-bottom: 20px;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);

.header{
display: flex;
h4{
.sam.heading{
flex-grow: 1;
align-self: center;
padding: 0;
Expand All @@ -27,3 +26,7 @@
}
}
}
.sam.card-next.raised{
border: 1px solid #979797;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
}
2 changes: 2 additions & 0 deletions sam-styles/core/theming/_all-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
@import '../../headers/headers';
@import '../../utilities/link';
@import '../../utilities/type';
@import '../../utilities/color';
@import '../../utilities/visible';

// Create a theme.
@mixin sam-gov-theme($theme) {
Expand Down
1 change: 1 addition & 0 deletions sam-styles/feed/_feed.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// FEED
// --------------------------------
.sam.feed{
margin-top:5px;
margin-bottom: 15px;
}
.sam.feed > .event{
Expand Down
6 changes: 1 addition & 5 deletions sam-styles/headers/_headers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
.sam.heading{
display: flex;
}
.sam.heading.mobile.center{
flex-direction: column;
.sam.heading.middle.aligned{
align-items: center;
@media screen and (min-width: $medium-screen){
flex-direction: row;
}
}
19 changes: 19 additions & 0 deletions sam-styles/label/_label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,23 @@
.sam.status.label.red::before{
border: 1px solid #981B1E;
background-color: #E59393;
}

// CIRCULAR
.sam.circular.label{
display: block;
font-size: 24px;
font-weight: 700;
width: 40px;
height: 40px;
border-radius: 50%;
line-height: 40px;
text-align: center;
padding: 0;
}


.sam.circular.label.red{
color: white;
background: #E31C3D;
}
22 changes: 22 additions & 0 deletions sam-styles/layout/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
// BASIC LAYOUT
// --------------------------------

.sam.padded.vertically{
padding: 0 20px;
}
.sam.layout.basic{
display: flex;
flex-direction: column;
}
@media (min-width: $medium-screen){
.sam.layout.basic{
flex-direction: row;
}
.sam.flex-order-1{
order: 1;
}
}
.sam.layout.basic.equal.width > *{
flex-grow: 1;
}

/**********************************************
<sam-main>
***********************************************/
Expand Down
2 changes: 1 addition & 1 deletion sam-styles/segment/_segement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
padding: 10px 15px;
margin-bottom: 10px;
.sam.heading{
padding-top: 0;
padding-top: 5px;
}
}
5 changes: 5 additions & 0 deletions sam-styles/utilities/_color.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// COLOR UTILITIES
// --------------------------------
.sam.ink.black{
color: #0F0F0F;
}
12 changes: 12 additions & 0 deletions sam-styles/utilities/_visible.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// VISIBILITY
// --------------------------------
.sam.visible.mobile.only{
@media (min-width: $medium-screen){
display: none;
}
}
.sam.visible.tablet.up{
@media (max-width: $medium-screen){
display: none;
}
}
2 changes: 1 addition & 1 deletion src/ui-kit/experimental/card/card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import {Component, Input} from '@angular/core';
templateUrl: './card.template.html'
})
export class SamCardComponent{
@Input() link: boolean;
@Input() raised: boolean;
}
2 changes: 1 addition & 1 deletion src/ui-kit/experimental/card/card.template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="sam card-next">
<div class="sam card-next" [ngClass]="{ 'raised': raised }">
<div class="header">
<ng-content select=".header"></ng-content>
</div>
Expand Down

0 comments on commit 70f8b87

Please sign in to comment.