Skip to content

Commit 9f7348f

Browse files
committed
see if styling works
1 parent 4923930 commit 9f7348f

File tree

1 file changed

+115
-56
lines changed

1 file changed

+115
-56
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,128 @@
1-
.bd-sidebar-primary div#rtd-footer-container {
2-
position: sticky;
3-
bottom: -1rem;
4-
margin: -1rem; // ignore sidebar padding
5-
6-
.rst-versions.rst-badge {
7-
position: unset;
8-
font-size: 0.9em;
9-
font-family: var(--pst-font-family-base);
10-
max-width: unset;
11-
12-
.rst-current-version {
13-
display: flex;
14-
align-items: center;
15-
gap: 0.2rem;
16-
height: 2.5rem;
17-
transition: background-color 0.2s ease-out;
18-
background-color: var(--pst-color-background);
19-
color: var(--pst-color-success);
20-
border-top: 1px solid var(--pst-color-border);
1+
.rst-versions {
2+
position: static !important;
3+
bottom: unset;
4+
left: unset;
5+
width: unset;
6+
background: unset;
7+
background-color: var(--pst-color-on-background) !important;
8+
border-color: var(--pst-color-border); // new
9+
color: var(--pst-color-text-muted);
10+
font-family: unset !important;
11+
z-index: unset;
12+
a {
13+
background-color: var(--pst-color-on-background);
14+
color: var(--pst-color-text-base);
15+
text-decoration: unset;
16+
@include link-style-hover;
17+
&:hover {
18+
background-color: var(--pst-color-surface);
2119
}
22-
23-
.fa.fa-book {
24-
color: var(--pst-color-text-muted);
25-
margin-right: auto;
26-
27-
&::after {
28-
color: var(--pst-color-text-base);
29-
content: "Read The Docs";
30-
font-family: var(--pst-font-family-base);
31-
font-weight: var(--pst-admonition-font-weight-heading);
20+
}
21+
&.rst-badge {
22+
// width: auto;
23+
// bottom: 20px;
24+
// right: 20px;
25+
// left: auto;
26+
// border: none;
27+
// max-width: $nav-desktop-width;
28+
// max-height: 90%;
29+
// .icon-book {
30+
// float: none;
31+
// line-height: 30px;
32+
// }
33+
// .fa-book {
34+
// float: none;
35+
// line-height: 30px;
36+
// }
37+
&.shift-up .rst-current-version {
38+
text-align: unset;
39+
.fa-book {
40+
float: none !important;
41+
}
42+
.icon-book {
43+
float: none;
3244
}
3345
}
34-
.fa.fa-caret-down {
35-
color: var(--pst-color-text-muted);
36-
}
46+
// > .rst-current-version {
47+
// width: auto;
48+
// height: 30px;
49+
// line-height: 30px;
50+
// padding: 0 $base-line-height / 4;
51+
display: inline-block !important;
52+
// text-align: center;
3753
}
38-
39-
.rst-versions.rst-badge.shift-up {
40-
.rst-current-version {
41-
border-bottom: 1px solid var(--pst-color-border);
54+
//.rst-badge-small {
55+
// display: none;
56+
//}
57+
.rst-current-version {
58+
// padding: $base-line-height / 2;
59+
background-color: var(--bs-btn-bg) !important;
60+
text-align: left !important;
61+
font-size: unset;
62+
color: var(--pst-color-text-base) !important;
63+
// @include clearfix;
64+
// .fa {
65+
// color: $section-background-color;
66+
// }
67+
.fa-book {
68+
float: none;
69+
display: inline-block !important;
70+
}
71+
.icon-book {
72+
float: none;
4273
}
74+
// &.rst-out-of-date {
75+
// background-color: $red;
76+
// color: $white;
77+
// }
78+
// &.rst-active-old-version {
79+
// background-color: $yellow;
80+
// color: $black;
81+
// }
82+
}
83+
//&.shift-up {
84+
// height: auto;
85+
// max-height: 100%;
86+
// overflow-y: scroll;
87+
//}
88+
&.shift-up .rst-other-versions {
89+
display: inline-block !important;
4390
}
44-
4591
.rst-other-versions {
46-
background-color: var(--pst-color-surface);
47-
color: var(--pst-color-text-base);
48-
49-
dl {
50-
dd a {
51-
color: var(--pst-color-text-muted);
52-
}
53-
}
54-
92+
// font-size: 90%;
93+
// padding: $base-line-height / 2;
94+
// display: none;
5595
hr {
56-
background-color: var(--pst-color-border);
96+
// display: block;
97+
// height: 1px;
98+
// border: 0;
99+
// margin: 20px 0;
100+
// padding: 0;
101+
border-top: solid 1px var(--pst-color-border);
57102
}
58-
59-
small a {
60-
color: var(--pst-color-link);
103+
dl {
104+
border-top: solid 1px var(--pst-color-border);
61105
}
62-
63-
input {
64-
padding-left: 0.5rem;
65-
border: 1px solid var(--pst-color-border);
66-
background-color: var(--pst-color-surface);
106+
dd {
107+
border-color: var(--pst-color-border);
108+
border-radius: var(--bs-dropdown-border-radius);
109+
// display: inline-block;
110+
// margin: 0;
111+
a {
112+
// display: inline-block;
113+
// padding: $base-line-height / 4;
114+
color: unset;
115+
@include link-style-hover;
116+
}
67117
}
68118
}
69119
}
120+
//@include media($tablet) {
121+
// .rst-versions {
122+
// width: 85%;
123+
// display: none;
124+
// &.shift {
125+
// display: block;
126+
// }
127+
// }
128+
//}

0 commit comments

Comments
 (0)