1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-07 19:09:15 +00:00
This commit is contained in:
Andrew Dolgov
2018-12-04 16:53:01 +03:00
parent f679ec2e6e
commit 563a46f55a
105 changed files with 16731 additions and 4 deletions

8
lib/flat/dgrid/README.md Normal file
View File

@@ -0,0 +1,8 @@
The dgrid flat theme builds on the Stylus-based CSS refactor found in dgrid 1.0.
This portion of the theme requires the [dgrid](http://dgrid.io/) package.
To build your own flat dgrid theme, you may want to adjust the path to dgrid. By
default, we assume that dgrid is a sibling directory to themes. If this is not
the case within your application directory structure, simply specify a different
value for `$flat_path_to_dgrid` in your stylus file for your theme, before
importing themes/flat/dgrid/flat.styl.

12
lib/flat/dgrid/flat.css Normal file
View File

@@ -0,0 +1,12 @@
.flat {
import: '../../dgrid/css/skins/skin';
}
.flat .dgrid-cell-padding {
padding: 5px 10px;
}
.flat .dgrid-header .dgrid-cell {
border-bottom-width: 2px;
}
.flat .dgrid-selected {
border: 1px solid #007ac2;
}

48
lib/flat/dgrid/flat.styl Normal file
View File

@@ -0,0 +1,48 @@
@require 'nib/gradients';
@require 'nib/vendor';
$flat_path_to_dgrid ?= '../../dgrid';
$dgrid-background ?= #fff;
$dgrid-border-color ?= #d0d0d0;
$dgrid-cell-padding ?= 5px 10px;
$dgrid-cell-has-vertical-border ?= false;
$dgrid-header-background ?= #fff;
$dgrid-header-cell-border-color ?= #d0d0d0;
$dgrid-header-cell-border-bottom-width ?= 2px;
$dgrid-header-cell-font-weight ?= bold;
$dgrid-header-cell-hover-background ?= #f2f2f2;
$dgrid-header-text-transform ?= uppercase;
$dgrid-body-cell-border-color ?= #d0d0d0;
$dgrid-body-row-transition-duration ?= 0.1s;
$dgrid-body-row-transition-property ?= unquote('background-color');
$dgrid-body-row-background ?= transparent;
$dgrid-body-row-hover-background-color ?= #f2f2f2;
$dgrid-selected-background-color ?= #fff;
$dgrid-selected-border ?= 1px solid #007ac2;
$dgrid-selected-hover-background-color ?= #f2f2f2;
.flat {
import $flat_path_to_dgrid + '/css/skins/skin';
.dgrid-cell-padding {
padding: $dgrid-cell-padding;
}
.dgrid-header .dgrid-cell {
border-bottom-width: $dgrid-header-cell-border-bottom-width;
}
$dgrid-header-cell-border-bottom-width .dgrid-cell {
if (!$dgrid-cell-has-vertical-border) {
border-left: 0;
border-right: 0;
}
}
.dgrid-selected {
border: $dgrid-selected-border;
}
}