modify style

This commit is contained in:
MaysWind 2016-06-18 22:32:23 +08:00
parent ac3e51094c
commit a80546cc00
6 changed files with 26 additions and 21 deletions

View file

@ -12,6 +12,10 @@
fractionSize = defaultFractionSize; fractionSize = defaultFractionSize;
} }
if (!value) {
value = 0;
}
if (!angular.isNumber(value)) { if (!angular.isNumber(value)) {
value = parseInt(value); value = parseInt(value);
} }

View file

@ -136,6 +136,7 @@ td {
.skin-aria-ng .main-header .navbar { .skin-aria-ng .main-header .navbar {
background-color: #f6f6f6; background-color: #f6f6f6;
border-bottom: 1px solid #ddd;
} }
.skin-aria-ng .main-header .navbar .navbar-nav { .skin-aria-ng .main-header .navbar .navbar-nav {
@ -701,8 +702,8 @@ td {
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
.task-table-firstrow-noborder > .task-table-body > div.row { .task-table > div.row:first-child {
border-top: 0; border-top: inherit;
} }
.skin-aria-ng .task-table > .task-table-body > div.row:nth-of-type(odd) { .skin-aria-ng .task-table > .task-table-body > div.row:nth-of-type(odd) {
@ -789,24 +790,28 @@ td {
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
.settings-table-firstrow-noborder > div.row { .settings-table > div.row:first-child {
border-top: 0; border-top: inherit;
} }
.skin-aria-ng .settings-table > div.row:nth-of-type(odd) { .skin-aria-ng .settings-table.striped > div.row:nth-of-type(odd) {
background-color: #f9f9f9; background-color: #f9f9f9;
} }
.skin-aria-ng .settings-table > div.row:hover { .skin-aria-ng .settings-table.striped > div.row.no-background {
background-color: inherit;
}
.skin-aria-ng .settings-table.hoverable > div.row:hover {
background-color: #f5f5f5; background-color: #f5f5f5;
} }
.skin-aria-ng .settings-table > div.row.no-background { .skin-aria-ng .settings-table.hoverable > div.row.no-hover:hover {
background-color: inherit; background-color: inherit;
} }
.skin-aria-ng .settings-table > div.row.no-hover:hover { .skin-aria-ng .settings-table.hoverable > div.row:nth-of-type(odd).no-hover:hover {
background-color: inherit; background-color: #f9f9f9;
} }
.settings-table .input-group-addon { .settings-table .input-group-addon {
@ -851,13 +856,9 @@ td {
} }
.settings-table .tip { .settings-table .tip {
background-color: #fff !important;
font-size: 12px; font-size: 12px;
padding: 4px 8px 4px 8px; padding: 4px 8px 4px 8px;
} }
.settings-table .tip:hover {
background-color: #fff !important;
}
@media (max-width: 767px) { @media (max-width: 767px) {
.settings-table .setting-key { .settings-table .setting-key {

View file

@ -1,5 +1,5 @@
<section class="content no-padding"> <section class="content no-padding">
<div class="settings-table"> <div class="settings-table striped hoverable">
<ng-setting ng-repeat="option in availableOptions" option="option" ng-model="globalOptions[option.key]" <ng-setting ng-repeat="option in availableOptions" option="option" ng-model="globalOptions[option.key]"
on-change-value="setGlobalOption(key, value, optionStatus)"></ng-setting> on-change-value="setGlobalOption(key, value, optionStatus)"></ng-setting>
</div> </div>

View file

@ -1,5 +1,5 @@
<section class="content no-padding"> <section class="content no-padding">
<div class="settings-table"> <div class="settings-table striped hoverable">
<div class="row"> <div class="row">
<div class="setting-key setting-key-without-desc col-sm-4"> <div class="setting-key setting-key-without-desc col-sm-4">
<span translate>Language</span> <span translate>Language</span>
@ -81,7 +81,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row tip"> <div class="row tip no-background no-hover">
<span class="asterisk">*</span> <span class="asterisk">*</span>
<span translate>Changes to the settings take effect after refreshing page.</span> <span translate>Changes to the settings take effect after refreshing page.</span>
</div> </div>

View file

@ -1,5 +1,5 @@
<section class="content no-padding"> <section class="content no-padding">
<div class="settings-table"> <div class="settings-table striped hoverable">
<div class="row"> <div class="row">
<div class="setting-key col-sm-4"> <div class="setting-key col-sm-4">
<span translate>Aria2 Version</span> <span translate>Aria2 Version</span>

View file

@ -22,7 +22,7 @@
<div class="tab-content no-padding"> <div class="tab-content no-padding">
<div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}"> <div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
<div class="settings-table settings-table-firstrow-noborder"> <div class="settings-table striped hoverable">
<div class="row"> <div class="row">
<div class="setting-key col-sm-4"> <div class="setting-key col-sm-4">
<span translate>File Name</span> <span translate>File Name</span>
@ -143,7 +143,7 @@
<ng-piece-map bit-field="task.bitfield" piece-count="task.numPieces"></ng-piece-map> <ng-piece-map bit-field="task.bitfield" piece-count="task.numPieces"></ng-piece-map>
</div> </div>
<div class="tab-pane" ng-class="{'active': context.currentTab == 'filelist'}"> <div class="tab-pane" ng-class="{'active': context.currentTab == 'filelist'}">
<div class="task-table task-table-firstrow-noborder"> <div class="task-table">
<div class="task-table-title hidden-xs"> <div class="task-table-title hidden-xs">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
@ -187,7 +187,7 @@
</div> </div>
</div> </div>
<div class="tab-pane" ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent"> <div class="tab-pane" ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent">
<div class="task-table task-table-firstrow-noborder"> <div class="task-table">
<div class="task-table-title hidden-xs"> <div class="task-table-title hidden-xs">
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-3">
@ -242,7 +242,7 @@
</div> </div>
</div> </div>
<div class="tab-pane" ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')"> <div class="tab-pane" ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')">
<div class="settings-table settings-table-firstrow-noborder"> <div class="settings-table striped hoverable">
<ng-setting ng-repeat="option in context.availableOptions" option="option" <ng-setting ng-repeat="option in context.availableOptions" option="option"
ng-model="options[option.key]" on-change-value="setOption(key, value, optionStatus)"></ng-setting> ng-model="options[option.key]" on-change-value="setOption(key, value, optionStatus)"></ng-setting>
</div> </div>