mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
gui: CSS tweaks for mobile views
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3257
This commit is contained in:
parent
855a1bef89
commit
3795a786c9
@ -50,10 +50,6 @@ ul+h5 {
|
|||||||
word-wrap:break-word;
|
word-wrap:break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header .fa {
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-monospace {
|
.text-monospace {
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", 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;
|
float: left;
|
||||||
margin-right: 15px;
|
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 {
|
.panel-heading {
|
||||||
@ -201,11 +205,6 @@ identicon {
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 identicon, h4 identicon{
|
|
||||||
margin-top: 0.125em;
|
|
||||||
margin-bottom: 0.125em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.identicon {
|
.identicon {
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
@ -272,6 +271,10 @@ ul.three-columns li, ul.two-columns li {
|
|||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
margin: 3.25px -15px;
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-fixed-bottom {
|
.navbar-fixed-bottom {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,14 @@
|
|||||||
<div ng-if="openNoAuth" class="row">
|
<div ng-if="openNoAuth" class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-danger">
|
<div class="panel panel-danger">
|
||||||
<div class="panel-heading"><h3 class="panel-title"><span class="fa fa-exclamation-circle"></span><span translate>Danger!</span></h3></div>
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-exclamation-circle"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Danger!</span>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>
|
<p>
|
||||||
<span translate>The Syncthing admin interface is configured to allow remote access without a password.</span>
|
<span translate>The Syncthing admin interface is configured to allow remote access without a password.</span>
|
||||||
@ -114,7 +121,14 @@
|
|||||||
<div ng-if="!configInSync" class="row">
|
<div ng-if="!configInSync" class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-warning">
|
<div class="panel panel-warning">
|
||||||
<div class="panel-heading"><h3 class="panel-title"><span class="fa fa-exclamation-circle"></span><span translate>Restart Needed</span></h3></div>
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-exclamation-circle"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Restart Needed</span>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p translate>The configuration has been saved but not activated. Syncthing must restart to activate the new configuration.</p>
|
<p translate>The configuration has been saved but not activated. Syncthing must restart to activate the new configuration.</p>
|
||||||
</div>
|
</div>
|
||||||
@ -170,7 +184,10 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-warning">
|
<div class="panel panel-warning">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><span class="fa fa-folder"></span>
|
<h3 class="panel-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-folder"></span>
|
||||||
|
</div>
|
||||||
<span translate ng-if="!folders[event.data.folder]">New Folder</span>
|
<span translate ng-if="!folders[event.data.folder]">New Folder</span>
|
||||||
<span translate ng-if="folders[event.data.folder]">Share Folder</span>
|
<span translate ng-if="folders[event.data.folder]">Share Folder</span>
|
||||||
<span class="pull-right">{{ event.time | date:"yyyy-MM-dd HH:mm:ss" }}</span>
|
<span class="pull-right">{{ event.time | date:"yyyy-MM-dd HH:mm:ss" }}</span>
|
||||||
@ -210,7 +227,14 @@
|
|||||||
<div ng-if="errorList().length > 0" class="row">
|
<div ng-if="errorList().length > 0" class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-warning">
|
<div class="panel panel-warning">
|
||||||
<div class="panel-heading"><h3 class="panel-title"><span class="fa fa-exclamation-circle"></span><span translate>Notice</span></h3></div>
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-exclamation-circle"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Notice</span>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p ng-repeat="err in errorList()"><small>{{err.when | date:"yyyy-MM-dd HH:mm:ss"}}:</small> {{friendlyDevices(err.message)}}</p>
|
<p ng-repeat="err in errorList()"><small>{{err.when | date:"yyyy-MM-dd HH:mm:ss"}}:</small> {{friendlyDevices(err.message)}}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -238,8 +262,8 @@
|
|||||||
<div class="panel-progress" ng-show="folderStatus(folder) == 'syncing'" ng-attr-style="width: {{syncPercentage(folder.id)}}%"></div>
|
<div class="panel-progress" ng-show="folderStatus(folder) == 'syncing'" ng-attr-style="width: {{syncPercentage(folder.id)}}%"></div>
|
||||||
<div class="panel-progress" ng-show="folderStatus(folder) == 'scanning' && scanProgress[folder.id] != undefined" ng-attr-style="width: {{scanPercentage(folder.id)}}%"></div>
|
<div class="panel-progress" ng-show="folderStatus(folder) == 'scanning' && scanProgress[folder.id] != undefined" ng-attr-style="width: {{scanPercentage(folder.id)}}%"></div>
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
<div class="panel-icon">
|
<div class="panel-icon hidden-xs">
|
||||||
<span class="fa hidden-xs fa-fw" ng-class="[folder.type == 'readonly' ? 'fa-lock' : 'fa-folder']"></span>
|
<span class="fa fa-fw" ng-class="[folder.type == 'readonly' ? 'fa-lock' : 'fa-folder']"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-status pull-right text-{{folderClass(folder)}}" ng-switch="folderStatus(folder)">
|
<div class="panel-status pull-right text-{{folderClass(folder)}}" ng-switch="folderStatus(folder)">
|
||||||
<span ng-switch-when="unknown"><span class="hidden-xs" translate>Unknown</span><span class="visible-xs">◼</span></span>
|
<span ng-switch-when="unknown"><span class="hidden-xs" translate>Unknown</span><span class="visible-xs">◼</span></span>
|
||||||
@ -495,7 +519,8 @@
|
|||||||
<a class="panel-heading" data-toggle="collapse" data-parent="#devices" href="#device-{{$index}}">
|
<a class="panel-heading" data-toggle="collapse" data-parent="#devices" href="#device-{{$index}}">
|
||||||
<div class="panel-progress" ng-show="deviceStatus(deviceCfg) == 'syncing'" ng-attr-style="width: {{completion[deviceCfg.deviceID]._total | number:0}}%"></div>
|
<div class="panel-progress" ng-show="deviceStatus(deviceCfg) == 'syncing'" ng-attr-style="width: {{completion[deviceCfg.deviceID]._total | number:0}}%"></div>
|
||||||
<h4 class="panel-title">
|
<h4 class="panel-title">
|
||||||
<identicon class="panel-icon" data-value="deviceCfg.deviceID"></identicon>{{deviceName(deviceCfg)}}
|
<identicon class="panel-icon" data-value="deviceCfg.deviceID"></identicon>
|
||||||
|
<span>{{deviceName(deviceCfg)}}</span>
|
||||||
<span ng-switch="deviceStatus(deviceCfg)" class="pull-right text-{{deviceClass(deviceCfg)}}">
|
<span ng-switch="deviceStatus(deviceCfg)" class="pull-right text-{{deviceClass(deviceCfg)}}">
|
||||||
<span ng-switch-when="insync"><span class="hidden-xs" translate>Up to Date</span><span class="visible-xs">◼</span></span>
|
<span ng-switch-when="insync"><span class="hidden-xs" translate>Up to Date</span><span class="visible-xs">◼</span></span>
|
||||||
<span ng-switch-when="syncing">
|
<span ng-switch-when="syncing">
|
||||||
@ -528,7 +553,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="connections[deviceCfg.deviceID].connected && connections[deviceCfg.deviceID].type.indexOf('Relay') > -1" tooltip data-original-title="Connections via relays might be rate limited by the relay">
|
<tr ng-if="connections[deviceCfg.deviceID].connected && connections[deviceCfg.deviceID].type.indexOf('Relay') > -1" tooltip data-original-title="Connections via relays might be rate limited by the relay">
|
||||||
<th><span class="fa fa-fw fa-warning text-danger"></span> <span translate>Connection Type</span></th>
|
<th><span class="fa fa-fw fa-warning text-danger"></span> <span translate>Connection Type</span></th>
|
||||||
<td class="text-right">{{connections[deviceCfg.deviceID].type}}</td>
|
<td class="text-right">{{connections[deviceCfg.deviceID].type}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="deviceCfg.compression != 'metadata'">
|
<tr ng-if="deviceCfg.compression != 'metadata'">
|
||||||
|
@ -10,7 +10,9 @@
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header alert alert-{{status}}">
|
<div class="modal-header alert alert-{{status}}">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<span ng-if="icon" class="fa fa-{{icon}}"></span>
|
<div class="panel-icon">
|
||||||
|
<span ng-if="icon" class="fa fa-{{icon}}"></span>
|
||||||
|
</div>
|
||||||
{{title}}
|
{{title}}
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header alert alert-danger">
|
<div class="modal-header alert alert-danger">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<span class="fa fa-arrow-circle-up"></span><span translate>Major Upgrade</span>
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-arrow-circle-up"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Major Upgrade</span>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
@ -3,8 +3,18 @@
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<span ng-show="!editingExisting"><span class="fa fa-desktop"></span><span translate>Add Device</span></span>
|
<span ng-show="!editingExisting">
|
||||||
<span ng-show="editingExisting"><span class="fa fa-pencil"></span><span translate>Edit Device</span></span>
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-desktop"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Add Device</span>
|
||||||
|
</span>
|
||||||
|
<span ng-show="editingExisting">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-pencil"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Edit Device</span>
|
||||||
|
</span>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
@ -3,8 +3,18 @@
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<span ng-show="!editingExisting"><span class="fa fa-folder"></span><span translate>Add Folder</span></span>
|
<span ng-show="!editingExisting">
|
||||||
<span ng-show="editingExisting"><span class="fa fa-pencil"></span><span translate>Edit Folder</span></span>
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-folder"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Add Folder</span>
|
||||||
|
</span>
|
||||||
|
<span ng-show="editingExisting">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-pencil"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Edit Folder</span>
|
||||||
|
</span>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header alert alert-danger">
|
<div class="modal-header alert alert-danger">
|
||||||
<h4 class="modal-title"><span class="fa fa-cogs"></span><span translate>Advanced Configuration</span></h4>
|
<h4 class="modal-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-cog"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Advanced Configuration</span>
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
<div class="modal-dialog modal-lg">
|
<div class="modal-dialog modal-lg">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title"><span class="fa fa-cog"></span><span translate>Settings</span></h4>
|
<h4 class="modal-title">
|
||||||
|
<div class="panel-icon">
|
||||||
|
<span class="fa fa-cog"></span>
|
||||||
|
</div>
|
||||||
|
<span translate>Settings</span>
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form role="form" name="settingsEditor">
|
<form role="form" name="settingsEditor">
|
||||||
|
Loading…
Reference in New Issue
Block a user