From bf6c9c8b3b2e99f5d2d089e6673ba858354431e6 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 27 Oct 2016 21:33:39 +1300 Subject: [PATCH] refactor(style): refactor multiple similar css classes --- app/components/container/container.html | 22 +++++++++---------- app/components/containers/containers.html | 14 ++++++------ .../createContainer/createcontainer.html | 14 ++++++------ .../createNetwork/createnetwork.html | 2 +- .../createService/createservice.html | 14 ++++++------ app/components/createVolume/createvolume.html | 2 +- app/components/dashboard/dashboard.html | 8 +++---- app/components/image/image.html | 8 +++---- app/components/images/images.html | 2 +- app/components/network/network.html | 2 +- app/components/networks/networks.html | 2 +- app/components/service/service.html | 2 +- app/components/services/services.html | 2 +- app/components/templates/templates.html | 6 ++--- app/components/volumes/volumes.html | 2 +- assets/css/app.css | 19 ++-------------- 16 files changed, 53 insertions(+), 68 deletions(-) diff --git a/app/components/container/container.html b/app/components/container/container.html index a454ed04f..095007402 100644 --- a/app/components/container/container.html +++ b/app/components/container/container.html @@ -13,13 +13,13 @@
- - - - - - - + + + + + + +
@@ -52,7 +52,7 @@ Status - + {{ container.State|getstatetext }} since {{ activityTime }} with exit code {{ container.State.ExitCode }} @@ -67,9 +67,9 @@
- Stats - Logs - Console + Stats + Logs + Console
diff --git a/app/components/containers/containers.html b/app/components/containers/containers.html index 6369dcc37..a0b0f7629 100644 --- a/app/components/containers/containers.html +++ b/app/components/containers/containers.html @@ -17,13 +17,13 @@
- - - - - - - + + + + + + +
Add container
diff --git a/app/components/createContainer/createcontainer.html b/app/components/createContainer/createcontainer.html index d4e641d42..2e387ffee 100644 --- a/app/components/createContainer/createcontainer.html +++ b/app/components/createContainer/createcontainer.html @@ -64,7 +64,7 @@
- + map port
@@ -106,10 +106,10 @@
@@ -181,7 +181,7 @@
- + environment variable
@@ -216,7 +216,7 @@
- + volume
diff --git a/app/components/createNetwork/createnetwork.html b/app/components/createNetwork/createnetwork.html index 3b3eecdd4..0ba7b5f74 100644 --- a/app/components/createNetwork/createnetwork.html +++ b/app/components/createNetwork/createnetwork.html @@ -42,7 +42,7 @@
- + driver option
diff --git a/app/components/createService/createservice.html b/app/components/createService/createservice.html index 6357d667a..3d6dc08c0 100644 --- a/app/components/createService/createservice.html +++ b/app/components/createService/createservice.html @@ -56,7 +56,7 @@
- + map port
@@ -98,9 +98,9 @@
@@ -131,7 +131,7 @@
- + environment variable
@@ -166,7 +166,7 @@
- + volume
@@ -224,7 +224,7 @@
- + network
diff --git a/app/components/createVolume/createvolume.html b/app/components/createVolume/createvolume.html index b60bc1a27..b55ea9ea5 100644 --- a/app/components/createVolume/createvolume.html +++ b/app/components/createVolume/createvolume.html @@ -30,7 +30,7 @@
- + driver option
diff --git a/app/components/dashboard/dashboard.html b/app/components/dashboard/dashboard.html index 0ae284cc3..9e4366633 100644 --- a/app/components/dashboard/dashboard.html +++ b/app/components/dashboard/dashboard.html @@ -93,8 +93,8 @@
-
{{ containerData.running }} running
-
{{ containerData.stopped }} stopped
+
{{ containerData.running }} running
+
{{ containerData.stopped }} stopped
{{ containerData.total }}
Containers
@@ -110,7 +110,7 @@
-
{{ imageData.size|humansize }}
+
{{ imageData.size|humansize }}
{{ imageData.total }}
Images
@@ -126,7 +126,7 @@
-
{{ infoData.Driver }} driver
+
{{ infoData.Driver }} driver
{{ volumeData.total }}
Volumes
diff --git a/app/components/image/image.html b/app/components/image/image.html index b94f40a16..132372a81 100644 --- a/app/components/image/image.html +++ b/app/components/image/image.html @@ -13,7 +13,7 @@
- + @@ -82,7 +82,7 @@ ID {{ image.Id }} - + @@ -130,7 +130,7 @@ EXPOSE - + {{ port }} @@ -138,7 +138,7 @@ VOLUME - + {{ volume }} diff --git a/app/components/images/images.html b/app/components/images/images.html index cad9b590b..d112a98d4 100644 --- a/app/components/images/images.html +++ b/app/components/images/images.html @@ -55,7 +55,7 @@
- +
diff --git a/app/components/network/network.html b/app/components/network/network.html index 678113b2f..082514c49 100644 --- a/app/components/network/network.html +++ b/app/components/network/network.html @@ -22,7 +22,7 @@ ID {{ network.Id }} - + diff --git a/app/components/networks/networks.html b/app/components/networks/networks.html index 6d75df9c5..cfdd446a5 100644 --- a/app/components/networks/networks.html +++ b/app/components/networks/networks.html @@ -57,7 +57,7 @@
- +
diff --git a/app/components/service/service.html b/app/components/service/service.html index ad674e4e5..1f0a6dfc2 100644 --- a/app/components/service/service.html +++ b/app/components/service/service.html @@ -33,7 +33,7 @@ ID {{ service.Id }} - + diff --git a/app/components/services/services.html b/app/components/services/services.html index ede13aabd..5dd47f3ba 100644 --- a/app/components/services/services.html +++ b/app/components/services/services.html @@ -17,7 +17,7 @@
- + Add service
diff --git a/app/components/templates/templates.html b/app/components/templates/templates.html index 29716599c..b4557d364 100644 --- a/app/components/templates/templates.html +++ b/app/components/templates/templates.html @@ -54,17 +54,17 @@
- + map additional port
diff --git a/app/components/volumes/volumes.html b/app/components/volumes/volumes.html index 88791d2ac..609b00ccb 100644 --- a/app/components/volumes/volumes.html +++ b/app/components/volumes/volumes.html @@ -16,7 +16,7 @@
- + Add volume
diff --git a/assets/css/app.css b/assets/css/app.css index 9801cb578..d659f6de3 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -63,11 +63,7 @@ input[type="radio"] { vertical-align: middle; } -.clickable { - cursor: pointer; -} - -.text-icon { +.space-right { margin-right: 5px; } @@ -83,16 +79,9 @@ input[type="radio"] { color: white; } -.image-tag { - margin-right: 5px; -} - -.label.tag { - margin-right: 5px; -} - .widget .widget-body table tbody .image-tag { font-size: 90% !important; + margin-right: 5px; } .terminal-container { @@ -104,10 +93,6 @@ input[type="radio"] { cursor: pointer; } -.btn-ico { - margin-right: 5px; -} - .template-list { display: flex; flex-wrap: wrap;