compass tables tables common styles of tables [Sass and compass study notes]_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:02:53
Original
996 people have browsed it

Demo source code address https://github.com/qqqzhch/webfans

compass’s table provides centralized common styles

Table borders

outer-table-borders ($width, $color) Control the size and color of the outer borders

inner-table-borders($width, $color) Control the size and color of the inner borders

For example

.table1{ table {    @include inner-table-borders(1px, #7a98c6);    @include outer-table-borders(2px);  }}
Copy after login

Outer row and column (top left) font

table-scaffolding

For example

.table2{ table {  @include table-scaffolding;  }}
Copy after login

Table row and column color

alternating-rows-and-columns($even-row-color, $odd-row-color, $dark-intersection, $header-color, $footer-color)

The parameters are even numbers respectively Row color, odd row color, cross row color, header color, bottom color

for example

.table3{ table { $table-color: #7a98c6;  @include alternating-rows-and-columns($table-color, adjust-hue($table-color, -120deg), #222222);  }}
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template