|
7 | 7 | <link rel="import" href="../widgets/mostly-dialog.html"> |
8 | 8 |
|
9 | 9 | <!-- |
| 10 | +### Styling |
| 11 | +
|
| 12 | +The following custom properties and mixins are available for styling: |
| 13 | +
|
| 14 | +Custom property | Description | Default |
| 15 | +----------------------------------------|------------------------------------|----------------------- |
| 16 | +`--mostly-selection-toolbar-background` | Background color | #000 |
| 17 | +`--mostly-selection-toolbar-text` | Text color | #fff |
| 18 | +`--mostly-selection-toolbar-link` | Link color | #fff |
| 19 | +`--mostly-selection-toolbar-link-hover` | Link hover color | #000 |
| 20 | +`--mostly-selection-toolbar` | Mixin applied to the toolbar | `{}` |
| 21 | +
|
| 22 | +
|
10 | 23 | `mostly-selection-toolbar` |
11 | 24 | @group Mostly UI |
12 | 25 | @element mostly-selection-toolbar |
|
29 | 42 | left: 0; |
30 | 43 | right: 0; |
31 | 44 | z-index: 201; |
32 | | - background: var(--mostly-toolbar); |
33 | 45 | padding: 0 2em; |
34 | 46 | font-weight: 300; |
35 | | - color: #fff; |
36 | 47 | box-shadow: 0 0 3px rgba(0,0,0,0.4); |
| 48 | + background: var(--mostly-selection-toolbar-background, #000); |
| 49 | + color: var(--mostly-selection-toolbar-text, #fff); |
| 50 | + @apply --mostly-selection-toolbar; |
37 | 51 | } |
38 | 52 |
|
39 | 53 | .actions { |
|
43 | 57 | @apply --layout-end-justified; |
44 | 58 | } |
45 | 59 |
|
46 | | - @media (min-width: 1280px) { |
47 | | - .toolbar { |
48 | | - padding-left: 4.5rem; |
49 | | - } |
50 | | - } |
51 | | - |
52 | 60 | .count { |
53 | 61 | font-weight: 600; |
54 | 62 | } |
55 | 63 |
|
56 | | - a.selectionLink { |
57 | | - display: inline-block; |
58 | | - vertical-align: bottom; |
59 | | - text-decoration: underline; |
60 | | - margin-left: 1em; |
61 | | - color: #fff; |
62 | | - } |
63 | | - |
64 | | - a.selectionLink:hover { |
65 | | - cursor: pointer; |
66 | | - color: var(--mostly-link-hover-color); |
67 | | - } |
68 | | - |
69 | 64 | #selectedItemsPopup { |
70 | 65 | margin-top: 196px; |
71 | 66 | } |
|
74 | 69 | @apply --layout-flex; |
75 | 70 | @apply --layout-horizontal; |
76 | 71 | } |
| 72 | + |
| 73 | + /* links */ |
| 74 | + a, a:active, a:visited, a:focus { |
| 75 | + display: inline-block; |
| 76 | + vertical-align: bottom; |
| 77 | + text-decoration: underline; |
| 78 | + margin-left: 1em; |
| 79 | + color: var(--mostly-selection-toolbar-link, #fff); |
| 80 | + cursor: pointer; |
| 81 | + } |
| 82 | + |
| 83 | + a:hover { |
| 84 | + color: var(--mostly-selection-toolbar-link-hover, #000); |
| 85 | + } |
77 | 86 | </style> |
78 | 87 |
|
79 | 88 | <div class="horizontal center layout" id="content"> |
|
83 | 92 | <a class="selectionLink" on-tap="toogleSelectedItemsPopup"> |
84 | 93 | <span>[[i18n('selectionToolbar.display.selection')]]</span> |
85 | 94 | </a> |
86 | | - </div> |
87 | | - <div class="actions"> |
88 | | - <slot></slot> |
89 | 95 | <a class="selectionLink" on-tap="clearSelection"> |
90 | 96 | <span>[[i18n('command.clear')]]</span> |
91 | 97 | </a> |
92 | 98 | </div> |
| 99 | + <div class="actions"> |
| 100 | + <slot></slot> |
| 101 | + </div> |
93 | 102 | </div> |
94 | 103 | </div> |
95 | 104 |
|
|
0 commit comments