From dca6b93592022d3f6377041e9f4661253a560726 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 17 Apr 2015 12:17:44 -0400 Subject: [PATCH] Responsive new repo page --- .../directives/ui/dockerfile-build-form.css | 15 ++++ static/css/pages/new-repo.css | 10 ++- static/css/quay.css | 15 ---- static/directives/dockerfile-build-form.html | 76 +++++++++---------- static/partials/new-repo.html | 35 ++++++--- 5 files changed, 83 insertions(+), 68 deletions(-) create mode 100644 static/css/directives/ui/dockerfile-build-form.css diff --git a/static/css/directives/ui/dockerfile-build-form.css b/static/css/directives/ui/dockerfile-build-form.css new file mode 100644 index 000000000..825a6a717 --- /dev/null +++ b/static/css/directives/ui/dockerfile-build-form.css @@ -0,0 +1,15 @@ +.dockerfile-build-form table td { + vertical-align: top; + white-space: nowrap; +} + +.dockerfile-build-form input[type="file"] { + margin: 0px; +} + +.dockerfile-build-form .help-text { + font-size: 13px; + color: #aaa; + margin-bottom: 20px; + padding-left: 22px; +} \ No newline at end of file diff --git a/static/css/pages/new-repo.css b/static/css/pages/new-repo.css index 425e26774..33af66dec 100644 --- a/static/css/pages/new-repo.css +++ b/static/css/pages/new-repo.css @@ -11,7 +11,6 @@ .new-repo .required-plan { margin: 10px; margin-top: 20px; - margin-left: 50px; } .new-repo .required-plan .alert { @@ -66,6 +65,10 @@ text-align: center; } +.new-repo .repo-option-title { + white-space: nowrap; +} + .new-repo .option-description { display: inline-block; vertical-align: top; @@ -88,3 +91,8 @@ .new-repo .initialize-repo .file-drop { margin: 10px; } + +.new-repo .xs-label { + margin-top: 10px; + margin-bottom: 6px; +} \ No newline at end of file diff --git a/static/css/quay.css b/static/css/quay.css index 477b08929..b62e575e0 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -4717,21 +4717,6 @@ i.rocket-icon { margin-bottom: -16px; } -.dockerfile-build-form table td { - vertical-align: top; - white-space: nowrap; -} - -.dockerfile-build-form input[type="file"] { - margin: 0px; -} - -.dockerfile-build-form .help-text { - font-size: 13px; - color: #aaa; - margin-bottom: 20px; - padding-left: 22px; -} .restart-required { position: relative; diff --git a/static/directives/dockerfile-build-form.html b/static/directives/dockerfile-build-form.html index 6278bd940..49b383eb1 100644 --- a/static/directives/dockerfile-build-form.html +++ b/static/directives/dockerfile-build-form.html @@ -1,7 +1,5 @@
-
-
-
+
Uploading file {{ upload_file }}
@@ -11,44 +9,40 @@
- - - - - - - - - - - - -
Dockerfile or .tar.gz or .zip: -
-
If an archive, the Dockerfile must be at the root
-
Base Image Pull Credentials: - -
- - -
+
+
Dockerfile or .tar.gz or .zip:
+
+ +
If an archive, the Dockerfile must be at the root
+
+
- -
- -
-
+
+
Base Image Pull Credentials:
+
+ +
+ + +
+ + +
+ +
+
+
diff --git a/static/partials/new-repo.html b/static/partials/new-repo.html index c8e0b3369..c2a01ce34 100644 --- a/static/partials/new-repo.html +++ b/static/partials/new-repo.html @@ -31,8 +31,13 @@
+ + Namespace: - / + + + + Repository Name: @@ -56,23 +61,28 @@
-
Repository Visibility
+
Repository Visibility
+
- - +
+ + + +
- Anyone can see and pull from this repository. You choose who can push.
- - +
+ + + +
- You choose who can see, pull and push from/to this repository.
@@ -142,11 +152,14 @@
-
Upload Dockerfile or Archive
+
Initialize from Dockerfile
-