mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-19 23:16:23 -04:00
refactor responsive SCSS using mixins
This commit is contained in:
1 parent
4dd67b6723
commit
4f7c01d600
16 files changed
+182
-164
No files matched your search
@@ -136,3 +136,48 @@ body#home {
|
||||
transform-origin: 70% 70%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Responsive
|
||||
@mixin responsive--home() {
|
||||
body#home {
|
||||
font-size: 1em;
|
||||
padding: 25px;
|
||||
|
||||
p {
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
img#me {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
footer div {
|
||||
&#panda {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&#blog,
|
||||
&#info {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
&#blog {
|
||||
font-size: 1em;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
&#info {
|
||||
font-size: 0.7em;
|
||||
line-height: 2.1; // magic numbers don't judge
|
||||
|
||||
span#copyright::after {
|
||||
content: "\A";
|
||||
white-space: pre;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user