forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_buttons.scss
156 lines (139 loc) · 3.13 KB
/
_buttons.scss
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Button styling --------------------------------------------------------------
.btn, .content a.button, .content .btn {
font-weight: bold;
cursor: pointer;
text-decoration: none;
transition: 0.2s;
padding: 0.5rem 1rem;
line-height: 16px;
}
.content a.button {
padding: .5rem 1rem;
margin: 0 0.5rem;
display: inline-block;
}
.btn.disabled,
button.disabled,
.btn[disabled="disabled"],
button[disabled="disabled"] {
cursor: not-allowed;
}
.btn-primary code,
.btn-secondary code {
color: inherit;
}
.btn-primary {
background: $blue-purple-500;
font-weight: bold;
color: $white;
border: none;
border-color: transparent;
&:hover {
background: $blue-purple-600;
}
&.disabled,
&[disabled="disabled"] {
background: $blue-purple-700;
&:hover {
background: $blue-purple-700;
}
}
}
.btn-arrow {
@include media-breakpoint-down(sm) {
display: block;
width: 100%;
}
&::after {
display: inline-block;
content: url(../img/icons/arrow-right.svg);
position: relative;
top: 1px;
vertical-align: middle;
padding-left: 8px;
-webkit-transition: transform 0.3s ease-out;
-moz-transition: transform 0.3s ease-out;
-ms-transition: transform 0.3s ease-out;
-o-transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
&:hover {
background: $blue-purple-600 !important;
border: none;
&::after {
-webkit-transform: translateX(4px);
-moz-transform: translateX(4px);
-ms-transform: translateX(4px);
-o-transform: translateX(4px);
transform: translateX(4px);
}
}
}
.btn-arrow-out::after {
background-position: left 0px bottom 0px;
content: "\00a0";
background-image: url(../img/icons/arrow-up-right-white.svg);
background-repeat: no-repeat;
display: inline-block;
padding: 4px 8px 4px 12px;
transition: background-position 0.3s ease-in-out;
margin-left: 4px;
}
.btn-arrow-out:hover::after {
background-position: left 4px bottom 4px;
}
@media (max-width: 767.98px) {
.btn-arrow-out {
display: block;
width: 100%;
}
}
/* (Jump to) "Top" button */
.jump-to-top {
display: none;
position: fixed;
bottom: 36px;
right: 36px;
font-weight: 700;
z-index: 1000;
&::after {
display: none;
}
}
.accordian-row {
background: $gray-800;
border-radius: 5px;
padding: 32px;
h3 {
a {
position: relative;
padding-right: 2rem;
&:hover {
color: $white;
}
// &::after {
// -webkit-transition: transform 0.3s ease-out;
// -moz-transition: transform 0.3s ease-out;
// -ms-transition: transform 0.3s ease-out;
// -o-transition: transform 0.3s ease-out;
// transition: transform 0.3s ease-out;
// transform: rotateX(180deg);
// position: absolute;
// right: -32px;
// top: calc(50% - 12px);
// display: inline-flex;
// content: url(../../img/icons/purple-arrow.svg);
// }
// &.collapsed {
// &::after {
// transform: rotateX(360deg);
// }
// }
}
}
.chevron {
position: absolute;
top: 0;
right: 0;
}
}