Comments (9)
This is a duplicate of #48 but with more description and an image.
from leap-day.
One other question, how do I change the font size of the sub-heading in the left menu to a smaller size? E.g. I what the font size of ##headers to be smaller than #headers.
from leap-day.
One other question, how do I change the font size of the sub-heading in the left menu to a smaller size? E.g. I what the font size of ##headers to be smaller than #headers.
It looks like they have different class
es
from leap-day.
The font size of tag-h2
is already smaller than tag-h1
; my mistake. What I actually want for the left menu is to make the font size of tag-h3
to be smaller than tag-h2
. Also to have the line spacing of tag-h3
smaller too if needed. How do I do this?
from leap-day.
The font size of
tag-h2
is already smaller thantag-h1
; my mistake. What I actually want for the left menu is to make the font size oftag-h3
to be smaller thantag-h2
. Also to have the line spacing oftag-h3
smaller too if needed. How do I do this?
I implied in
It looks like they have different
class
es
that you can use custom CSS, such as font-size: 90%
from leap-day.
The font size of
tag-h2
is already smaller thantag-h1
; my mistake. What I actually want for the left menu is to make the font size oftag-h3
to be smaller thantag-h2
. Also to have the line spacing oftag-h3
smaller too if needed. How do I do this?I implied in
It looks like they have different
class
esthat you can use custom CSS, such as
font-size: 90%
Much appreciate your guidance. I am not CSS trained but will look into implementing your advice.
from leap-day.
I managed to align the text of nav
to left
and set the font-size
of tag-h3
to 80%. However, I am unable to reduce the line spacing of tag-h3
and indent it. I made the following amendments to _sass/jekyll-theme-leap-day.scss
and the outcome is shown below.
Can you tell me how to reduce the line spacing of tag-h3
and indent it?
nav {
width: 230px;
position: fixed;
top: 220px;
left:50%;
margin-left:-580px;
text-align: left;
ul {
list-style: none;
list-style-image:none;
font-size: 14px;
line-height:24px;
li {
padding: 5px 0px;
line-height: 16px;
// padding-right:17px;
// position:relative;
// right:-12px;
&.tag-h1 {
font-size: 1.2em;
a {
font-weight: bold;
color: #333;
}
+ .tag-h2 {
}
}
&.tag-h2 {
+ .tag-h1 {
margin-top:10px;
}
}
&.tag-h3 {
font-size: 0.8em;
+ .tag-h1 {
margin-top:10px;
}
}
}
a {
color: #666;
&:hover { color: #1c1c1c; }
}
// .active {
// border-right:solid 4px #39C;
// padding-right:13px;
// }
}
}
from leap-day.
I managed to indent tag-h3
, Also, I relocated footer
to the right side of the main text area given the nav
is not scrollable yet. The below figure shows this new outcome rendered on my local machine.
Issues:
- Is my amended syntax correct?
- I am unable to reduce the gaps between lines of
tag-h3
still. What should I do?
nav {
width: 230px;
position: fixed;
top: 220px;
left:50%;
margin-left:-580px;
text-align: left;
ul {
list-style: none;
list-style-image:none;
font-size: 14px;
line-height:24px;
li {
padding: 5px 0px;
line-height: 16px;
// padding-right:17px;
// position:relative;
// right:-12px;
&.tag-h1 {
font-size: 1.2em;
a {
font-weight: bold;
color: #333;
}
+ .tag-h2 {
}
}
&.tag-h2 {
+ .tag-h1 {
margin-top:10px;
}
}
&.tag-h3 {
font-size: 0.8em;
padding-left:13px;
line-height: 1.0em;
// + .tag-h1 {
// margin-top:10px;
// }
}
}
a {
color: #666;
&:hover { color: #1c1c1c; }
}
.active {
border-right:solid 4px #39C;
padding-right:13px;
}
}
}
footer {
width:180px;
position: fixed;
right:50%;
margin-right:-530px;
top:220px;
text-align: left;
line-height: 16px;
}
from leap-day.
Might not be very relevant to ask here - but is there anyway to show just h1/h2 instead of showing all levels? In a document with lots of levels of header the display is not super clear and it clusters side menu.
from leap-day.
Related Issues (20)
- python highlight
- [email protected] medium vulnerability HOT 1
- maybe dummy issue: can't show posts in _post? HOT 1
- Is there a way to not add h3 to ToC? HOT 4
- Headers get overlapped by default texts HOT 4
- Scroll Issue HOT 3
- Some comments HOT 2
- Left Side menu not visible, when opening the page in phone HOT 2
- Left side menu is over lapping the footer section HOT 3
- Table of Content Should Use Header "id"s If Possible HOT 1
- Content in <details> not rendered correctly HOT 2
- GitHub Pages fails to build site: File to import not found or unreadable: leap-day HOT 1
- Custom CSS does not work anymore HOT 2
- Links to a heading scrolls to positions where that heading is behind the header banner HOT 2
- Leap Day Theme: title issue HOT 2
- Theme doesn't display correctly on Firefox but it does on Chrome
- No way to get to home page HOT 3
- Left side Menu, <nav>, cannot take Chinese characters into the URLs.
- Left-side "pages" wrapper nav ul HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leap-day.