1 | #dashboard-main { |
---|
2 | text-align: center; |
---|
3 | &>*:last-child { |
---|
4 | margin-bottom: 1em; |
---|
5 | } |
---|
6 | } |
---|
7 | /* raccourcis */ |
---|
8 | |
---|
9 | #icons { |
---|
10 | margin: 1em auto 2em; |
---|
11 | display: flex; |
---|
12 | flex-wrap: wrap; |
---|
13 | justify-content: center; |
---|
14 | p { |
---|
15 | width: 13em; |
---|
16 | margin: 1em 0 2em; |
---|
17 | display: flex; |
---|
18 | flex-direction: column; |
---|
19 | justify-content: flex-start; |
---|
20 | align-items: center; |
---|
21 | } |
---|
22 | a { |
---|
23 | &, &:link, &:visited, &:hover, &:focus { |
---|
24 | border-bottom-width: 0; |
---|
25 | text-decoration: none; |
---|
26 | } |
---|
27 | span { |
---|
28 | color: $index-link-color; |
---|
29 | border-bottom: 1px dotted $index-link-border; |
---|
30 | } |
---|
31 | img { |
---|
32 | padding: 1.5em; |
---|
33 | background-color: $index-icon-background; |
---|
34 | border-radius: 8px; |
---|
35 | border: 1px solid $index-icon-border; |
---|
36 | display: inline-block; |
---|
37 | filter: contrast($index-icon-contrast); |
---|
38 | } |
---|
39 | &:focus { |
---|
40 | outline: 0; |
---|
41 | span { |
---|
42 | border: 2px solid $index-icon-outline; |
---|
43 | } |
---|
44 | } |
---|
45 | &:focus, &:hover { |
---|
46 | img { |
---|
47 | background: $index-icon-outline; |
---|
48 | outline: 0; |
---|
49 | border-color: $index-icon-border; |
---|
50 | } |
---|
51 | span { |
---|
52 | border-bottom-style: solid; |
---|
53 | } |
---|
54 | } |
---|
55 | } |
---|
56 | } |
---|
57 | /* billet rapide */ |
---|
58 | |
---|
59 | #quick { |
---|
60 | max-width: 72em; |
---|
61 | margin: 1em auto 2em; |
---|
62 | padding: 1em; |
---|
63 | background: $quick-background; |
---|
64 | border: 1px solid $quick-border; |
---|
65 | text-align: left; |
---|
66 | h3 { |
---|
67 | margin-bottom: 0.2em; |
---|
68 | font-size: 1.2em; |
---|
69 | } |
---|
70 | p.qinfo { |
---|
71 | margin: -.7em -1em 1em; |
---|
72 | background: $quick-info-background url(msg-info.png) no-repeat .2em .2em; |
---|
73 | border: 1px solid $quick-info-border; |
---|
74 | padding: .2em 1em .1em 24px; |
---|
75 | color: $quick-info-color; |
---|
76 | } |
---|
77 | #new_cat, .q-cat, .q-cat label { |
---|
78 | display: inline-block; |
---|
79 | vertical-align: top; |
---|
80 | margin-right: 1em; |
---|
81 | margin-top: 0; |
---|
82 | } |
---|
83 | .q-cat label { |
---|
84 | margin-right: .3em; |
---|
85 | } |
---|
86 | #new_cat { |
---|
87 | margin-bottom: 2em; |
---|
88 | } |
---|
89 | } |
---|
90 | /* modules additionnels */ |
---|
91 | |
---|
92 | #dashboard-boxes { |
---|
93 | margin: 1em auto 2em; |
---|
94 | display: flex; |
---|
95 | flex-wrap: wrap; |
---|
96 | justify-content: center; |
---|
97 | .box { |
---|
98 | padding: 10px; |
---|
99 | border: 1px solid $index-box-border; |
---|
100 | border-radius: 3px; |
---|
101 | min-height: 200px; |
---|
102 | margin: 10px; |
---|
103 | text-align: left; |
---|
104 | } |
---|
105 | } |
---|
106 | .db-items, .db-contents { |
---|
107 | // display: inline-block; |
---|
108 | // text-align: center; |
---|
109 | display: flex; |
---|
110 | flex-wrap: wrap; |
---|
111 | justify-content: center; |
---|
112 | flex: 1 1 auto; |
---|
113 | img { |
---|
114 | vertical-align: middle; |
---|
115 | } |
---|
116 | ul { |
---|
117 | display: block; |
---|
118 | padding-left: 1.5em; |
---|
119 | list-style: square; |
---|
120 | } |
---|
121 | li { |
---|
122 | margin: 0.25em 0 0 0; |
---|
123 | } |
---|
124 | } |
---|
125 | .no-js .outgoing img { |
---|
126 | display: none; |
---|
127 | } |
---|
128 | .dc-box { |
---|
129 | background: transparent url(dc_logos/sq-logo-32.png) no-repeat top right; |
---|
130 | } |
---|
131 | #news { |
---|
132 | dt { |
---|
133 | font-weight: bold; |
---|
134 | margin: 0 0 0.4em 0; |
---|
135 | } |
---|
136 | dd { |
---|
137 | margin: 0 0 1em 0; |
---|
138 | p { |
---|
139 | margin: 0.2em 0 0 0; |
---|
140 | } |
---|
141 | } |
---|
142 | } |
---|
143 | // Drag'n'drop of dashboard areas |
---|
144 | #dragndrop { |
---|
145 | .no-js & { |
---|
146 | display: none; |
---|
147 | } |
---|
148 | position: absolute; |
---|
149 | width: 2em; |
---|
150 | height: 1.5em; |
---|
151 | -webkit-mask-image: url(dragndrop.svg); |
---|
152 | mask-image: url(dragndrop.svg); |
---|
153 | &:before { |
---|
154 | content: ""; |
---|
155 | display: inline-block; |
---|
156 | width: 2em; |
---|
157 | height: 1.5em; |
---|
158 | background: $drag-n-drop-off; |
---|
159 | } |
---|
160 | &:checked:before { |
---|
161 | background: $drag-n-drop-on; |
---|
162 | } |
---|
163 | } |
---|