PluginProbe
WP Bottom Menu / 2.1
WP Bottom Menu v2.1
trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.1.1 1.1.2 1.2 1.3 1.3.2 1.4 1.4.2 1.4.3 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 All 27 releases
wp-bottom-menu / assets / css / style.css

style.css in WP Bottom Menu 2.1, at assets/css/style.css

180 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .wp-bottom-menu{
2 display: none;
3 background: var(--wpbottommenu-bgcolor);
4 width: 100%;
5 position: fixed;
6 bottom: 0;
7 left: 0;
8 justify-content: space-around;
9 padding: var(--wpbottommenu-wrapper-padding);
10 box-shadow: 0 -5px 10px rgba(0,0,0, 0.1);
11 z-index: var(--wpbottommenu-zindex);
12 transition: all 200ms;
13 }
14
15 .wp-bottom-menu-item{
16 position: relative;
17 display: flex;
18 flex-direction: column;
19 justify-content: center;
20 align-items: center;
21 height: auto;
22 flex: 1;
23 font-size: var(--wpbottommenu-font-size);
24 text-decoration: none;
25 color: var(--wpbottommenu-text-color);
26 cursor: pointer;
27 user-select: none;
28 text-decoration: none!important;
29 transition: color 200ms;
30 }
31
32 .wp-bottom-menu-item:hover,
33 .wp-bottom-menu-item.active,
34 .wp-bottom-menu.sf-active .wp-bottom-menu-item.wp-bottom-menu-search-form-trigger{
35 color: var(--wpbottommenu-h-text-color);
36 }
37
38 .wp-bottom-menu-item span{
39 margin-top: 5px;
40 color: inherit;
41 }
42
43 .wp-bottom-menu-item i{
44 font-size: var(--wpbottommenu-icon-size);
45 color: var(--wpbottommenu-icon-color);
46 font-family: FontAwesome;
47 transition: color 200ms;
48 }
49
50 .wp-bottom-menu-item:hover i,
51 .wp-bottom-menu-item.active i,
52 .wp-bottom-menu.sf-active .wp-bottom-menu-item.wp-bottom-menu-search-form-trigger i{
53 color: var(--wpbottommenu-h-icon-color);
54 }
55
56 .wp-bottom-menu-item svg{
57 fill: var(--wpbottommenu-icon-color);
58 width: var(--wpbottommenu-icon-size);
59 height: var(--wpbottommenu-icon-size);
60 }
61
62 .wp-bottom-menu-item:hover svg,
63 .wp-bottom-menu-item.active svg{
64 fill: var(--wpbottommenu-h-icon-color);
65 }
66
67 .wp-bottom-menu-icon-wrapper{
68 position: relative;
69 line-height: 0;
70 }
71
72 .wp-bottom-menu-cart-count{
73 position: absolute;
74 box-sizing: content-box;
75 top: -5px;
76 left: 50%;
77 width: calc(var(--wpbottommenu-icon-size) * .75);
78 height: calc(var(--wpbottommenu-icon-size) * .75);
79 font-size: calc(var(--wpbottommenu-icon-size) * .5);
80 line-height: calc(var(--wpbottommenu-icon-size) * .75);
81 border: 2px solid var(--wpbottommenu-bgcolor);
82 border-radius: 100%;
83 text-align: center;
84 background: var(--wpbottommenu-cart-count-bgcolor);
85 color: var(--wpbottommenu-bgcolor);
86 font-weight:bold;
87 }
88
89 .wp-bottom-menu-search-form-wrapper{
90 display: none;
91 position: fixed;
92 bottom: 0;
93 left: 0;
94 width: 100%;
95 background: var(--wpbottommenu-bgcolor);
96 padding: 10px;
97 transition: all 200ms;
98 transform: translateY(100%);
99 }
100
101 .wp-bottom-menu-search-form-wrapper form{
102 position: relative;
103 }
104
105 .wp-bottom-menu-search-form input[type="search"]{
106 border: 1px solid #eee;
107 border-radius: 8px;
108 width: 100%;
109 font-size: 14px;
110 height: 40px;
111 padding-left: 50px;
112 padding-right: 30px;
113 }
114
115 .wp-bottom-menu-search-form i{
116 position: absolute;
117 top: 50%;
118 left: 30px;
119 transform: translate(-50%,-50%);
120 }
121
122 /* Search Form Active */
123
124 .wp-bottom-menu-search-form-wrapper.sf-active{
125 z-index: calc(var(--wpbottommenu-zindex) - 1);
126 box-shadow: 0 -5px 10px rgba(0,0,0, 0.1);
127 transform: translateY(0);
128 }
129
130 .wp-bottom-menu.sf-active{
131 box-shadow: none;
132 }
133
134 /* Nav */
135
136 .wp-bottom-menu-nav-wrapper{
137 display: none;
138 width: 100%;
139 height: 100%;
140 z-index: calc(var(--wpbottommenu-zindex) + 2 );
141 position: fixed;
142 left: 0;
143 top: 0;
144 background: var(--wpbottommenu-bgcolor);
145 color: var(--wpbottommenu-text-color);
146 }
147
148 .wp-bottom-menu-nav-wrapper.active{
149 display: grid;
150 place-items: center;
151 text-align: center;
152 }
153
154 .wpbm-nav-items{
155 position: relative;
156 list-style-type: none;
157 margin: 0;
158 padding: 1em;
159 }
160
161 .wpbm-nav-items li:not(:last-child){
162 margin-bottom: 1em;
163 }
164
165 .wpbm-nav-items li a{
166 color: inherit;
167 }
168
169 .wpbm-nav-items li.current-menu-item a,
170 .wpbm-nav-items li a:hover{
171 color: var(--wpbottommenu-h-text-color);
172 }
173
174 .wpbm-nav-close{
175 position: absolute;
176 right: 10%;
177 top: 10%;
178 font-size: var(--wpbottommenu-icon-size);
179 color: inherit;
180 }