diff --git a/app/ContainerDetails.react.js b/app/ContainerDetails.react.js index 26747d4bd7..7ce48a168f 100644 --- a/app/ContainerDetails.react.js +++ b/app/ContainerDetails.react.js @@ -136,9 +136,11 @@ var ContainerDetails = React.createClass({ var state; if (this.state.container.State.Running) { - state =

running

; + state =

running

; } else if (this.state.container.State.Restarting) { - state =

restarting

; + state =

restarting

; + } else if (this.state.container.State.Paused) { + state =

paused

; } var progress; @@ -165,7 +167,26 @@ var ContainerDetails = React.createClass({ return (
-

{name}

{state} {image}View +

{name}

{state}

Image

{image}

+
+
+
+ View + +
+
+ Volume +
+
+ Restart +
+
+ Terminal +
+
+ + +
{progress}
diff --git a/app/Containers.react.js b/app/Containers.react.js index 7b118559fc..6a31dfdf8d 100644 --- a/app/Containers.react.js +++ b/app/Containers.react.js @@ -43,7 +43,7 @@ var Containers = React.createClass({
-

containers

+

My Containers

}>
diff --git a/app/styles/containers.less b/app/styles/containers.less index ae3c8b6cad..4061044fbf 100644 --- a/app/styles/containers.less +++ b/app/styles/containers.less @@ -30,12 +30,11 @@ h3 { align-self: flex-start; - color: #CCD3D5; - font-size: 18px; + color: @gray-normal; + font-size: 13px; font-weight: 400; padding: 0 24px; margin: 10px 0 0; - font-variant: small-caps; display: inline-block; position: relative; } @@ -222,6 +221,17 @@ display: flex; flex-direction: column; + .details-actions { + flex: 0 auto; + display: flex; + flex-direction: row; + padding: 20px 40px 10px 40px; + position: relative; + .action { + margin-right: 24px; + } + } + .details-header { flex: 0 auto; display: flex; @@ -237,19 +247,27 @@ margin: 0; font-size: 20px; margin: 0; + color: @gray-darkest; } h2 { - margin: 6px 0px 0px 16px; - font-size: 10px; - text-transform: uppercase; - &.status { + margin: 8px 0px 0px 16px; + text-transform: uppercase; font-weight: bold; - color: @brand-positive; + font-size: 10px; + &.running { + color: @brand-positive; + } + } + &.image-label { + margin: 8px 0px 0px 30px; + font-size: 10px; + color: @gray-lighter; } - &.image { - + margin: 5px 0px 0px 16px; + font-size: 14px; + color: @gray-normal; } } } diff --git a/app/styles/theme.less b/app/styles/theme.less index 41d5e83de2..528ee6c7b8 100644 --- a/app/styles/theme.less +++ b/app/styles/theme.less @@ -21,28 +21,80 @@ } // Mixin for generating new styles -.btn-styles(@btn-color: #555) { +.btn-styles(@btn-color: @gray-normal) { + transition: all 0.3s ease 0s; .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners - background-repeat: repeat-x; - // border-color: darken(@btn-color, 14%); + border-color: @btn-color; + color: @btn-color; &:hover, - &:focus { - background-color: darken(@btn-color, 12%); + &:focus { + border-color: darken(@btn-color, 10%); + color: darken(@btn-color, 10%); + } + + &:active { + background-color: lighten(@btn-color, 30%); + border-color: darken(@btn-color, 10%); + color: darken(@btn-color, 10%); + } + + &.active { + background-color: @btn-color; + color: white; + box-shadow: none; } &:disabled, &[disabled] { - background-color: darken(@btn-color, 12%); + opacity: 0.5; + } +} + +.btn-group { + .btn { + .icon-dropdown { + &.icon:before { + top: 7px; + margin-left: 0px; + margin-right: 4px; + } + } } } // Common styles .btn { + font-size: 12px; + background-color: transparent; + color: @gray-normal; + border: 1px solid @gray-normal; border-radius: 25px; box-shadow: none; font-weight: 400; text-shadow: none; + padding: 0px 12px 0px 12px; + height: 32px; + .icon:before { + position: relative; + top: 5px; + font-size: 20px; + margin-right: 4px; + } + &.only-icon { + .icon:before { + margin-right: 0px; + } + } + .icon-dropdown { + &.icon:before { + font-size: 10px; + position: relative; + top: 1px; + margin-left: 4px; + margin-right: 0px; + } + } // Remove the gradient for the pressed/active state &:active, &.active { @@ -57,6 +109,9 @@ } // Apply the mixin to the buttons +.btn-action { + .btn-styles(@brand-action); +} .btn-default { .btn-styles(@btn-default-bg); } .btn-primary { .btn-styles(@btn-primary-bg); } .btn-success { .btn-styles(@btn-success-bg); } diff --git a/app/styles/variables.less b/app/styles/variables.less index 1aa67787dd..cff01eb030 100644 --- a/app/styles/variables.less +++ b/app/styles/variables.less @@ -2,3 +2,9 @@ @brand-action: #24B8EB; @brand-positive: #65E100; @brand-negative: #F47A45; + +@gray-darkest: #253237; +@gray-darker: #394C51; +@gray-normal: #546C70; +@gray-lighter: #7A9999; +@gray-lightest: #C7D7D7;