theme reorx: add responsive styles
This commit is contained in:
parent
2eef7736ee
commit
5fe1ded857
|
|
@ -192,7 +192,7 @@ Solutions:
|
||||||
- [ ] Allows switching themes in Editor
|
- [ ] Allows switching themes in Editor
|
||||||
- [ ] Allows customizing primary color for the current theme
|
- [ ] Allows customizing primary color for the current theme
|
||||||
- [ ] Export PDF directly
|
- [ ] Export PDF directly
|
||||||
- [ ] Supports responsive style for themes, so that the CV site is friendly to view on mobile devices.
|
- [x] Supports responsive style for themes, so that the CV site is friendly to view on mobile devices.
|
||||||
- [ ] Add more themes.
|
- [ ] Add more themes.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,11 @@ section {
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-size: $fz-4;
|
font-size: $fz-4;
|
||||||
// font-weight: 300;
|
// font-weight: 300;
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.space-between {
|
.space-between {
|
||||||
|
|
@ -122,6 +127,10 @@ section {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: 0 1.5em;
|
gap: 0 1.5em;
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* helpers */
|
/* helpers */
|
||||||
|
|
@ -155,8 +164,13 @@ section {
|
||||||
}
|
}
|
||||||
.contact {
|
.contact {
|
||||||
color: $color-text-dim;
|
color: $color-text-dim;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: .4em;
|
||||||
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
margin-right: 1em;
|
margin-right: 1em;
|
||||||
a {
|
a {
|
||||||
|
|
@ -166,6 +180,18 @@ section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.education-section {
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
.space-between:nth-of-type(2) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.4em;
|
||||||
|
}
|
||||||
|
.study {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.work-section {
|
.work-section {
|
||||||
.section-item {
|
.section-item {
|
||||||
break-inside: auto;
|
break-inside: auto;
|
||||||
|
|
@ -173,6 +199,14 @@ section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.projects-section {
|
||||||
|
.space-between {
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sideprojects-section {
|
.sideprojects-section {
|
||||||
.description p:last-of-type {
|
.description p:last-of-type {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue