From 3795a786c9482ba58d9c4eb556dad8e0dec2b710 Mon Sep 17 00:00:00 2001 From: Daniel Harte Date: Thu, 2 Jun 2016 23:21:19 +0000 Subject: [PATCH] gui: CSS tweaks for mobile views GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3257 --- gui/default/assets/css/overrides.css | 25 ++++++----- gui/default/index.html | 41 +++++++++++++++---- gui/default/modal.html | 4 +- .../syncthing/core/majorUpgradeModalView.html | 5 ++- .../syncthing/device/editDeviceModalView.html | 14 ++++++- .../syncthing/folder/editFolderModalView.html | 14 ++++++- .../settings/advancedSettingsModalView.html | 7 +++- .../syncthing/settings/settingsModalView.html | 7 +++- 8 files changed, 90 insertions(+), 27 deletions(-) diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index ed828952..13f8e8b5 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -50,10 +50,6 @@ ul+h5 { word-wrap:break-word; } -.modal-header .fa { - margin-right: 15px; -} - .text-monospace { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } @@ -171,12 +167,20 @@ table.table-condensed td.no-overflow-ellipse { } /** - * Accordion Title bars + * Panel, Model and Accordion Title bars */ -.panel-icon{ +.panel-icon { float: left; margin-right: 15px; + margin-top: 0.125em; + margin-bottom: 0.125em; + line-height: 1; +} + +.modal-title .panel-icon { + margin-top: 0.25em; + margin-bottom: 0.25em; } .panel-heading { @@ -201,11 +205,6 @@ identicon { line-height: 1; } -h3 identicon, h4 identicon{ - margin-top: 0.125em; - margin-bottom: 0.125em; -} - .identicon { width: 1em; height: 1em; @@ -272,6 +271,10 @@ ul.three-columns li, ul.two-columns li { padding-bottom: 0px; } + .navbar-brand { + margin: 3.25px -15px; + } + .navbar-fixed-bottom { position: relative; } diff --git a/gui/default/index.html b/gui/default/index.html index 2d9c3dbd..8c8d450f 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -91,7 +91,14 @@
-

Danger!

+
+

+
+ +
+ Danger! +

+

The Syncthing admin interface is configured to allow remote access without a password. @@ -114,7 +121,14 @@

-

Restart Needed

+
+

+
+ +
+ Restart Needed +

+

The configuration has been saved but not activated. Syncthing must restart to activate the new configuration.

@@ -170,7 +184,10 @@
-

+

+
+ +
New Folder Share Folder {{ event.time | date:"yyyy-MM-dd HH:mm:ss" }} @@ -210,7 +227,14 @@
-

Notice

+
+

+
+ +
+ Notice +

+

{{err.when | date:"yyyy-MM-dd HH:mm:ss"}}: {{friendlyDevices(err.message)}}

@@ -238,8 +262,8 @@

-
- +
@@ -495,7 +519,8 @@

- {{deviceName(deviceCfg)}} + + {{deviceName(deviceCfg)}} @@ -528,7 +553,7 @@ -  Connection Type +  Connection Type {{connections[deviceCfg.deviceID].type}} diff --git a/gui/default/modal.html b/gui/default/modal.html index f1f29dcb..0ae7030b 100644 --- a/gui/default/modal.html +++ b/gui/default/modal.html @@ -10,7 +10,9 @@