Skip to content

Commit 65daf50

Browse files
committed
see if styling works
1 parent 4923930 commit 65daf50

File tree

1 file changed

+118
-56
lines changed

1 file changed

+118
-56
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,131 @@
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);
9+
border-radius: var(--bs-dropdown-border-radius);
10+
border-width: 1px;
11+
color: var(--pst-color-text-muted);
12+
font-family: unset !important;
13+
z-index: unset;
14+
a {
15+
background-color: var(--pst-color-on-background);
16+
color: var(--pst-color-text-base);
17+
text-decoration: unset;
18+
@include link-style-hover;
19+
&:hover {
20+
background-color: var(--pst-color-surface);
2121
}
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);
22+
}
23+
&.rst-badge {
24+
// width: auto;
25+
// bottom: 20px;
26+
// right: 20px;
27+
// left: auto;
28+
// border: none;
29+
// max-width: $nav-desktop-width;
30+
// max-height: 90%;
31+
// .icon-book {
32+
// float: none;
33+
// line-height: 30px;
34+
// }
35+
// .fa-book {
36+
// float: none;
37+
// line-height: 30px;
38+
// }
39+
&.shift-up .rst-current-version {
40+
text-align: unset;
41+
.fa-book {
42+
float: none !important;
43+
}
44+
.icon-book {
45+
float: none;
3246
}
3347
}
34-
.fa.fa-caret-down {
35-
color: var(--pst-color-text-muted);
36-
}
48+
// > .rst-current-version {
49+
// width: auto;
50+
// height: 30px;
51+
// line-height: 30px;
52+
// padding: 0 $base-line-height / 4;
53+
display: inline-block !important;
54+
// text-align: center;
3755
}
38-
39-
.rst-versions.rst-badge.shift-up {
40-
.rst-current-version {
41-
border-bottom: 1px solid var(--pst-color-border);
56+
//.rst-badge-small {
57+
// display: none;
58+
//}
59+
.rst-current-version {
60+
// padding: $base-line-height / 2;
61+
background-color: var(--bs-btn-bg) !important;
62+
text-align: left !important;
63+
font-size: unset;
64+
color: var(--pst-color-text-base) !important;
65+
// @include clearfix;
66+
// .fa {
67+
// color: $section-background-color;
68+
// }
69+
.fa-book {
70+
float: none;
71+
display: inline-block !important;
72+
}
73+
.icon-book {
74+
float: none;
4275
}
76+
// &.rst-out-of-date {
77+
// background-color: $red;
78+
// color: $white;
79+
// }
80+
// &.rst-active-old-version {
81+
// background-color: $yellow;
82+
// color: $black;
83+
// }
84+
}
85+
//&.shift-up {
86+
// height: auto;
87+
// max-height: 100%;
88+
// overflow-y: scroll;
89+
//}
90+
&.shift-up .rst-other-versions {
91+
display: inline-block !important;
4392
}
44-
4593
.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-
94+
// font-size: 90%;
95+
// padding: $base-line-height / 2;
96+
// display: none;
5597
hr {
56-
background-color: var(--pst-color-border);
98+
// display: block;
99+
// height: 1px;
100+
// border: 0;
101+
// margin: 20px 0;
102+
// padding: 0;
103+
border-top: solid 1px var(--pst-color-border);
57104
}
58-
59-
small a {
60-
color: var(--pst-color-link);
105+
dl {
106+
border-top: solid 1px var(--pst-color-border);
61107
}
62-
63-
input {
64-
padding-left: 0.5rem;
65-
border: 1px solid var(--pst-color-border);
66-
background-color: var(--pst-color-surface);
108+
dd {
109+
border-color: var(--pst-color-border);
110+
border-radius: var(--bs-dropdown-border-radius);
111+
border-width: 1px;
112+
// display: inline-block;
113+
// margin: 0;
114+
a {
115+
// display: inline-block;
116+
// padding: $base-line-height / 4;
117+
color: unset;
118+
@include link-style-hover;
119+
}
67120
}
68121
}
69122
}
123+
//@include media($tablet) {
124+
// .rst-versions {
125+
// width: 85%;
126+
// display: none;
127+
// &.shift {
128+
// display: block;
129+
// }
130+
// }
131+
//}

0 commit comments

Comments
 (0)