mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Table styling
This commit is contained in:
36
app/assets/stylesheets/darkswarm/account.css.sass
Normal file
36
app/assets/stylesheets/darkswarm/account.css.sass
Normal file
@@ -0,0 +1,36 @@
|
||||
@import branding
|
||||
@import mixins
|
||||
|
||||
.orders
|
||||
@include sidepaddingSm
|
||||
@include panepadding
|
||||
a
|
||||
color: $clr-brick
|
||||
&:hover, &:active, &:focus
|
||||
color: $clr-brick-med-bright
|
||||
a.button.primary
|
||||
&:hover, &:active, &:focus
|
||||
color: white
|
||||
.strong
|
||||
color: $clr-brick
|
||||
|
||||
table
|
||||
tr:nth-of-type(even)
|
||||
background: transparent // clear previous
|
||||
tbody.odd
|
||||
tr
|
||||
background-color: #f9f9f9
|
||||
border: none
|
||||
// Column widths for order table
|
||||
.order1
|
||||
width: 25%
|
||||
.order2
|
||||
width: 20%
|
||||
.order3
|
||||
width: 25%
|
||||
.order4
|
||||
width: 10%
|
||||
.order5
|
||||
width: 10%
|
||||
.order6
|
||||
width: 10%
|
||||
@@ -15,4 +15,4 @@
|
||||
color: $clr-turquoise-bright
|
||||
a.button.primary
|
||||
&:hover, &:active, &:focus
|
||||
color: white
|
||||
color: white
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.row.active_table_row{"ng-if" => "open()","ng-class" => "{'open' : !ofn-i_032-closed-sign()}"}
|
||||
.columns.small-12.medium-12.large-12.fat
|
||||
.columns.small-12.large-10.large-offset-2.fat
|
||||
%table
|
||||
%tr
|
||||
%th.order1{"bo-text" => "'transaction' | t"}
|
||||
@@ -8,7 +8,7 @@
|
||||
%th.order4{"bo-text" => "'shipping_state' | t"}
|
||||
%th.order5{"bo-text" => "'value' | t"}
|
||||
%th.order6{"bo-text" => "'balance' | t"}
|
||||
%tbody.transaction-group{"ng-repeat" => "order in distributor.distributed_orders"}
|
||||
%tbody.transaction-group{"ng-repeat" => "order in distributor.distributed_orders", "ng-class-odd"=>"'odd'", "ng-class-even"=>"'even'"}
|
||||
%tr.order-row
|
||||
%td.order1
|
||||
%a{"bo-href" => "order.path", "bo-text" => "('order' | t )+ ' ' + order.number"}
|
||||
|
||||
Reference in New Issue
Block a user