1
|
/**
|
2
|
* part of Hachette
|
3
|
* Style for a "back" button with a CSS arrow image.
|
4
|
*
|
5
|
* Copyright (C) 2021 Wojtek Kosior
|
6
|
* Redistribution terms are gathered in the `copyright' file.
|
7
|
*/
|
8
|
|
9
|
.back_button {
|
10
|
display: block;
|
11
|
width: auto;
|
12
|
height: auto;
|
13
|
background-color: white;
|
14
|
border: solid #454 0.4em;
|
15
|
border-left: none;
|
16
|
border-radius: 0 1.5em 1.5em 0;
|
17
|
cursor: pointer;
|
18
|
}
|
19
|
|
20
|
.back_button:hover {
|
21
|
box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
|
22
|
}
|
23
|
|
24
|
.back_button>div, .back_arrow {
|
25
|
width: 2em;
|
26
|
height: 0.5em;
|
27
|
background-color: #4CAF50;
|
28
|
border-radius: 0.3em;
|
29
|
margin: 1.15em 0.4em;
|
30
|
}
|
31
|
|
32
|
.back_button>div::after, .back_arrow::after,
|
33
|
.back_button>div::before, .back_arrow::before {
|
34
|
content: "";
|
35
|
display: block;
|
36
|
position: relative;
|
37
|
background-color: inherit;
|
38
|
width: 1.3em;
|
39
|
height: 0.5em;
|
40
|
transform: rotate(45deg);
|
41
|
border-radius: 0.3em;
|
42
|
top: 0.3em;
|
43
|
right: 0.2em;
|
44
|
margin: 0 -1.3em -0.5em 0;
|
45
|
}
|
46
|
|
47
|
.back_button>div::before, .back_arrow::before {
|
48
|
transform: rotate(-45deg);
|
49
|
top: -0.3em;
|
50
|
}
|