Comments (10)
@ozank I think you're on the right track. Remove the {% include author-bio.html %}
like you did, and then beef up the margin-left on the #index div to make up for the missing space that the author bio sidebar was occupying. If you make it 25% like below you should be golden.
@media only screen and (min-width: 37.5em)
#index {
display: inline;
float: left;
width: 50%;
margin-left: 25%; /* change from 0% to 25% */
margin-right: 0%;
}
from minimal-mistakes.
Thanks, that was spot on. What I ended up using is:
@media only screen and (min-width: 37.5em)
#index {
display: inline;
float: right; /* change from left */
width: 50%;
margin-left: 0%;
margin-right: 25%; /* change from 0% to 25% */
}
This way, I can add or remove the author info, without changing the layout.
from minimal-mistakes.
I'd like to do this too. But I can only find the right CSS in the generated CSS file. Which source file and where do I change this?
from minimal-mistakes.
@stanstrup The source files are all in /_sass/
, you'll probably find what you need in the page.scss partial.
from minimal-mistakes.
Thanks again for your help and patience. I cannot for the life of me figure which line to change. If I simply add
#index {
margin-left: 25%;
}
to the end of the document it works though.
from minimal-mistakes.
The #index
declarations are all around line 248. The media query mixins are probably what are tripping you up. Because the theme is responsive the column widths change depending on the screen size. Depending on where you place margin-left: 25%;
will have different results.
You'll probably want to add it here so it pushes the main column over on larger screens only since on mobile the theme defaults to a single tube of content.
@media #{$x-large} {
@include grid(12,4.5);
margin-left: 25%;
}
The smarter thing would be to use the prefix
mixin to pad the left and fill the space originally occupied by the author sidebar.
@media #{$x-large} {
@include grid(12,4.5);
@include prefix(12,3); // adds 3 columns of blank space to the left
}
from minimal-mistakes.
Thanks so much! It works great. And you are right. I thought I had a decent grasp of basic CSS but I am wholly unfamiliar with this syntax.
from minimal-mistakes.
@stanstrup For the most part Sass is CSS, it just has a few tricks up its sleeve like nesting, variables, and mixins to augment things. The basics are documented here if you're interested.
from minimal-mistakes.
Thanks for the pointer. I will read up on this as I move along with my own site.
from minimal-mistakes.
For reference here is a version with no sidebar and more space in the middle based on @srijanshetty's fork (has categorized posts).
It has been cleaned up (stuff deleted) to be a minimal starting point for a new site.
from minimal-mistakes.
Related Issues (20)
- there is a error that can't fix "An error occurred while installing json (1.8.3)"
- A problem occured when github action was running HOT 2
- Removing the `sticky` tag from the sidebar has no effect
- Deprecation warnings relative to use of / outside of calc, will be removed in Dart Sass 2.0.0 HOT 1
- Breadcrumbs `Home` points to `github.com HOT 1
- Add support for child menues in matheader
- Neon Code Hightlighting Broken
- Search includes asset files HOT 1
- Iam getting this error Can you please help on this HOT 1
- greedy-navigation timeout causes inconsistent behaviour with translucency
- Google analytics update HOT 2
- Accessibility bug: the nav elements across the theme should have an aria-label
- monochrome and color (predefined) icons in author bio HOT 2
- Jekyll plugins HOT 3
- page.url variable pointing to wrong page (post) HOT 3
- Error when installing Theme HOT 1
- setup a ttc skin
- "You may also enjoy" recommends hidden posts, when it probably shouldn't HOT 1
- Intro animation completely breaks Lighthouse
- Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0
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 minimal-mistakes.