Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup: Move Breadcrumbs to layout and clean up unused rules #1059

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 0 additions & 34 deletions src/sass/_theme_breadcrumbs.sass

This file was deleted.

68 changes: 19 additions & 49 deletions src/sass/_theme_layout.sass
Expand Up @@ -2,31 +2,10 @@
html
font-size: $base-font-size

.wy-affix
position: fixed
top: $gutter

.wy-menu
a:hover
text-decoration: none

.wy-menu-horiz
+clearfix
ul, li
display: inline-block
li:hover
background: rgba(255,255,255,.1)
li
&.divide-left
border-left: solid 1px hsl(0, 0%, 25%)
&.divide-right
border-right: solid 1px hsl(0, 0%, 25%)
a
height: $base-font-size * 2
display: inline-block
line-height: $base-font-size * 2
padding: 0 $base-font-size

.wy-menu-vertical
width: $nav-desktop-width

Expand Down Expand Up @@ -244,25 +223,6 @@ html
background-color: $link-color
color: $white

[data-menu-wrap]
+transition(all .2s ease-in)
position: absolute
opacity: 1
width: 100%
opacity: 0
&.move-center
left: 0
right: auto
opacity: 1
&.move-left
right: auto
left: -100%
opacity: 0
&.move-right
right: -100%
left: auto
opacity: 0

.wy-body-for-nav
background: $section-background-color

Expand Down Expand Up @@ -319,6 +279,19 @@ html
cursor: pointer
padding-top: inherit

.wy-breadcrumbs
+clearfix

.wy-breadcrumbs li
display: inline-block
&.wy-breadcrumbs-aside
float: right
a
display: inline-block
padding: 5px
&:first-child
padding-left: 0

.wy-nav-content-wrap
margin-left: $nav-desktop-width
background: $section-background-color
Expand All @@ -330,15 +303,6 @@ html
max-width: $nav-content-width
margin: auto

.wy-body-mask
position: fixed
width: 100%
height: 100%
background: rgba(0,0,0,.2)
display: none
z-index: $z-index-modal - 1
&.on
display: block
footer
color: $footer-color
p
Expand Down Expand Up @@ -379,6 +343,10 @@ footer
.genindextable li > ul
margin-left: $base-line-height

+media($mobile)
.wy-breadcrumbs li.wy-breadcrumbs-aside
display: none

+media($tablet)
.wy-body-for-nav
background: $section-background-color
Expand Down Expand Up @@ -420,5 +388,7 @@ footer
@media print
.rst-versions, footer, .wy-nav-side
display: none
.wy-breadcrumbs li.wy-breadcrumbs-aside
display: none
.wy-nav-content-wrap
margin-left: 0
1 change: 0 additions & 1 deletion src/sass/theme.sass
Expand Up @@ -41,7 +41,6 @@
@import wyrm_core/type

// Theme specific styles. These are likely the files you want to edit.
@import theme_breadcrumbs
@import theme_layout
@import theme_badge
@import theme_rst
Expand Down