/
0807_WP_eccube_wp_head_style.php
87 lines (74 loc) · 1.5 KB
/
0807_WP_eccube_wp_head_style.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
if( !function_exists('eccube_wp_head_style') ) :
function eccube_wp_head_style( $content ){
?>
<link rel ="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
.ec-cartNaviWrap {
position: relative;
}
.ec-cartNavi {
display: flex;
background: darkgray;
padding: 10px 15px;
}
.ec-cartNaviNull,
.ec-cartNaviIsset {
position: absolute;
word-break: keep-all;
right: 0;
top: 100%;
padding: 15px;
font-size: 0.85rem;
background: white;
color: #000;
pointer-events: none;
transition: all 0.5s;
transform: translate(0px, 15px);
opacity: 0;
}
.ec-cartNavi__icon {
font-size: 1rem;
line-height: 1rem;
border-right: 1px solid;
padding-right: 1em;
margin-right: 1em;
}
.ec-cartNavi__label {
line-height: 1rem;
}
.ec-cartNavi__badge {
font-weight: 400;
}
.ec-cartNaviNull p {
margin: 0;
}
.ec-cartNaviWrap:hover .ec-cartNaviNull,
.ec-cartNaviWrap:hover .ec-cartNaviIsset {
transform: translate(0px, 0px);
opacity: 1;
}
.ec-cartNaviIsset__cart {
display: flex;
}
.ec-cartNaviIsset__cartImage {
width: 100px;
margin-right: 15px;
}
.ec-cartNaviIsset__cartImage img {
max-width: 100%;
}
.ec-cartNaviIsset__action {
display: none;
}
.ec-cartNaviIsset__cartContentPrice {
display: flex;
justify-content: flex-end;
}
.ec-cartNaviIsset__cartContentNumber {
text-align: right;
}
</style>
<?php
}
endif;
add_action( 'wp_head', 'eccube_wp_head_style' , 10 , 1 );