1 | @import 'lg-variables';
|
2 | @import 'lg-mixins';
|
3 | .lg-outer {
|
4 | .lg-dropdown-overlay {
|
5 | background-color: rgba(0, 0, 0, 0.25);
|
6 | bottom: 0;
|
7 | cursor: default;
|
8 | left: 0;
|
9 | position: absolute;
|
10 | right: 0;
|
11 | top: 0;
|
12 | z-index: $zindex-toolbar - 1;
|
13 | opacity: 0;
|
14 | visibility: hidden;
|
15 | will-change: visibility, opacity;
|
16 | @include transition(
|
17 | visibility 0s linear 0.18s,
|
18 | opacity 0.18s linear 0s
|
19 | );
|
20 | }
|
21 | &.lg-dropdown-active {
|
22 | .lg-dropdown,
|
23 | .lg-dropdown-overlay {
|
24 | @include transition-delay(0s);
|
25 | @include transform(translate3d(0, 0px, 0));
|
26 | opacity: 1;
|
27 | visibility: visible;
|
28 | }
|
29 | .lg-share {
|
30 | color: #fff;
|
31 | }
|
32 | }
|
33 | .lg-dropdown {
|
34 | background-color: #fff;
|
35 | border-radius: 2px;
|
36 | font-size: 14px;
|
37 | list-style-type: none;
|
38 | margin: 0;
|
39 | padding: 10px 0;
|
40 | position: absolute;
|
41 | right: 0;
|
42 | text-align: left;
|
43 | top: 50px;
|
44 | opacity: 0;
|
45 | visibility: hidden;
|
46 | @include transform(translate3d(0, 5px, 0));
|
47 | will-change: visibility, opacity, transform;
|
48 | @include transitionCustom(
|
49 | transform 0.18s linear 0s,
|
50 | visibility 0s linear 0.5s,
|
51 | opacity 0.18s linear 0s
|
52 | );
|
53 |
|
54 | &:after {
|
55 | content: '';
|
56 | display: block;
|
57 | height: 0;
|
58 | width: 0;
|
59 | position: absolute;
|
60 | border: 8px solid transparent;
|
61 | border-bottom-color: #fff;
|
62 | right: 16px;
|
63 | top: -16px;
|
64 | }
|
65 | > li {
|
66 | &:last-child {
|
67 | margin-bottom: 0px;
|
68 | }
|
69 | &:hover {
|
70 | a {
|
71 | color: #333;
|
72 | }
|
73 | }
|
74 | }
|
75 | a {
|
76 | color: #333;
|
77 | display: block;
|
78 | white-space: pre;
|
79 | padding: 4px 12px;
|
80 | font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial,
|
81 | sans-serif;
|
82 | font-size: 12px;
|
83 | &:hover {
|
84 | background-color: rgba(0, 0, 0, 0.07);
|
85 | }
|
86 | }
|
87 | .lg-dropdown-text {
|
88 | display: inline-block;
|
89 | line-height: 1;
|
90 | margin-top: -3px;
|
91 | vertical-align: middle;
|
92 | }
|
93 | .lg-icon {
|
94 | color: #333;
|
95 | display: inline-block;
|
96 | float: none;
|
97 | font-size: 20px;
|
98 | height: auto;
|
99 | line-height: 1;
|
100 | margin-right: 8px;
|
101 | padding: 0;
|
102 | vertical-align: middle;
|
103 | width: auto;
|
104 | }
|
105 | }
|
106 | .lg-share {
|
107 | position: relative;
|
108 | &:after {
|
109 | content: '\e80d';
|
110 | }
|
111 | }
|
112 | .lg-share-facebook {
|
113 | .lg-icon {
|
114 | color: #3b5998;
|
115 | &:after {
|
116 | content: '\e904';
|
117 | }
|
118 | }
|
119 | }
|
120 | .lg-share-twitter {
|
121 | .lg-icon {
|
122 | color: #00aced;
|
123 | &:after {
|
124 | content: '\e907';
|
125 | }
|
126 | }
|
127 | }
|
128 | .lg-share-pinterest {
|
129 | .lg-icon {
|
130 | color: #cb2027;
|
131 | &:after {
|
132 | content: '\e906';
|
133 | }
|
134 | }
|
135 | }
|
136 | }
|