generated from HugoBlox/theme-academic-cv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7135288
commit ec82564
Showing
2 changed files
with
11 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
.section-title { | ||
position: relative; | ||
height: 0; | ||
overflow: visible; | ||
margin: 2rem 0; /* Adjust as needed to match original spacing */ | ||
} | ||
|
||
.section-title::before { | ||
content: attr(data-title); | ||
position: absolute; | ||
left: -60px; /* Adjust as needed */ | ||
top: 50%; | ||
transform: translateY(-50%) rotate(180deg); | ||
writing-mode: vertical-rl; | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
color: inherit; | ||
left: -200px; /* Adjust this value as needed */ | ||
width: 180px; /* Adjust as needed */ | ||
text-align: right; | ||
padding-right: 20px; | ||
} | ||
|
||
/* Hide the original horizontal text */ | ||
.section-title span { | ||
display: none; | ||
/* Adjust the container of the section content */ | ||
.section-title + * { | ||
margin-left: 20px; /* Add some space between the title and content */ | ||
} | ||
|
||
/* Add space for the vertical titles */ | ||
.section-title + * { | ||
margin-left: 40px; /* Adjust as needed */ | ||
/* Ensure the parent container has relative positioning */ | ||
.section-title:not(:first-child) { | ||
position: relative; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters