Fix(UI): \n 1. Increase margin on cards. \n 2. Move project details above project thumbnail in project section. \n 3. Disable Google Translate on-text-hover behaviour that interferes with page and expected functionality. \n 4. Updated GitHub contributions calendar colour scale to match user-selected page theme.
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
|
||||
/* Experience */
|
||||
.experience-card {
|
||||
background: var(--text-background-colour);
|
||||
padding: 1.5rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 2rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.experience-card h3 {
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -6,9 +6,4 @@
|
||||
}
|
||||
|
||||
.expertise-card {
|
||||
background: var(--text-background-colour);
|
||||
padding: 1.5rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
@@ -21,4 +21,37 @@
|
||||
content: "GitHub Contributions Calendar";
|
||||
color: var(--text-colour);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Colour scale to match theme */
|
||||
/*
|
||||
.github-calendar table tbody td:not(:first-child),
|
||||
div.ContributionCalendar-day {
|
||||
border: solid 1px grey;
|
||||
}
|
||||
*/
|
||||
td.ContributionCalendar-day[data-level="0"], /*[aria-describedby="contribution-graph-legend-level-4"]*/
|
||||
div.ContributionCalendar-day[data-level="0"]
|
||||
{
|
||||
background-color: var(--github-calendar-level-0-colour);
|
||||
}
|
||||
td.ContributionCalendar-day[data-level="1"],
|
||||
div.ContributionCalendar-day[data-level="1"]
|
||||
{
|
||||
background-color: var(--github-calendar-level-1-colour);
|
||||
}
|
||||
td.ContributionCalendar-day[data-level="2"],
|
||||
div.ContributionCalendar-day[data-level="2"]
|
||||
{
|
||||
background-color: var(--github-calendar-level-2-colour);
|
||||
}
|
||||
td.ContributionCalendar-day[data-level="3"],
|
||||
div.ContributionCalendar-day[data-level="3"]
|
||||
{
|
||||
background-color: var(--github-calendar-level-3-colour);
|
||||
}
|
||||
td.ContributionCalendar-day[data-level="4"],
|
||||
div.ContributionCalendar-day[data-level="4"]
|
||||
{
|
||||
background-color: var(--github-calendar-level-4-colour);
|
||||
}
|
||||
@@ -12,4 +12,33 @@ iframe.skiptranslate {
|
||||
}
|
||||
body {
|
||||
top: 0px !important;
|
||||
}
|
||||
|
||||
/* Disable Google Translate hover popups and text highlighting */
|
||||
.goog-text-highlight:not(#google_translate_element *),
|
||||
.goog-tooltip:not(#google_translate_element *),
|
||||
.goog-tooltip-bubble:not(#google_translate_element *),
|
||||
.goog-te-balloon-frame:not(#google_translate_element *),
|
||||
.VIpgJd-suEOdc:not(#google_translate_element *),
|
||||
#goog-gt-tt:not(#google_translate_element *),
|
||||
.VIpgJd-yAWNEb-L7lbkb:not(#google_translate_element *),
|
||||
div.skiptranslate.goog-te-gadget span:not(#google_translate_element *),
|
||||
.goog-te-banner-frame:not(#google_translate_element *),
|
||||
.goog-te-gadget-simple span.text:not(#google_translate_element *),
|
||||
.goog-te-gadget-icon:not(#google_translate_element *),
|
||||
.goog-te-gadget-icon:not(#google_translate_element *)::before {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
opacity: 0 !important;
|
||||
height: 0 !important;
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
/* Keep text selection normal */
|
||||
* {
|
||||
-webkit-touch-callout: default !important;
|
||||
-webkit-user-select: text !important;
|
||||
-moz-user-select: text !important;
|
||||
-ms-user-select: text !important;
|
||||
user-select: text !important;
|
||||
}
|
||||
@@ -20,6 +20,18 @@ ul, li {
|
||||
}
|
||||
|
||||
/* Common card styles */
|
||||
.expertise-card,
|
||||
.project-card,
|
||||
.experience-card {
|
||||
background: var(--text-background-colour);
|
||||
padding: 1.5rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 2rem;
|
||||
margin-top: 2rem;
|
||||
padding-left: 1.5vw;
|
||||
padding-right: 1.5vw;
|
||||
}
|
||||
.expertise-card h3,
|
||||
.project-card h3,
|
||||
.experience-card h3 {
|
||||
|
||||
@@ -23,4 +23,5 @@ a {
|
||||
}
|
||||
a:visited {
|
||||
color: var(--text-link-visited-colour)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,10 @@ nav ul {
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
nav a {
|
||||
color: var(--text-background-colour);
|
||||
text-decoration: none;
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
.project-card-gridslot {
|
||||
}
|
||||
.project-card {
|
||||
background: var(--text-background-colour);
|
||||
padding: 1.5rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
--text-background-colour: white;
|
||||
--text-link-unvisited-colour: #0000EE;
|
||||
--text-link-visited-colour: #551A8B;
|
||||
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
|
||||
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
|
||||
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
|
||||
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
|
||||
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
|
||||
}
|
||||
:root[data-theme="purple"] {
|
||||
/* Purple theme
|
||||
@@ -23,6 +28,11 @@
|
||||
/*
|
||||
--text-link-unvisited-colour: #0000EE;
|
||||
--text-link-visited-colour: #551A8B;
|
||||
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
|
||||
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
|
||||
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
|
||||
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
|
||||
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
|
||||
*/
|
||||
}
|
||||
:root[data-theme="red"],
|
||||
@@ -40,6 +50,11 @@
|
||||
/*
|
||||
--text-link-unvisited-colour: #0000EE;
|
||||
--text-link-visited-colour: #551A8B;
|
||||
--github-calendar-level-0-colour: var(--color-calendar-graph-day-bg);
|
||||
--github-calendar-level-1-colour: var(--color-calendar-graph-day-L1-bg);
|
||||
--github-calendar-level-2-colour: var(--color-calendar-graph-day-L2-bg);
|
||||
--github-calendar-level-3-colour: var(--color-calendar-graph-day-L3-bg);
|
||||
--github-calendar-level-4-colour: var(--color-calendar-graph-day-L4-bg);
|
||||
*/
|
||||
}
|
||||
:root[data-theme="dark"] {
|
||||
@@ -60,6 +75,11 @@
|
||||
--text-background-colour: black; /* Dark Red */
|
||||
--text-link-unvisited-colour: #ADD8E6; /* Light Blue */
|
||||
--text-link-visited-colour: #D8BFD8; /* Thistle (Light Purple) */
|
||||
--github-calendar-level-0-colour: rgba(30, 30, 30, 255); /* var(--text-background-colour); */
|
||||
--github-calendar-level-1-colour: #ff5252;
|
||||
--github-calendar-level-2-colour: #f30000;
|
||||
--github-calendar-level-3-colour: #c10000;
|
||||
--github-calendar-level-4-colour: #840000;
|
||||
}
|
||||
|
||||
/* Toggle light mode / dark mode button */
|
||||
|
||||
Reference in New Issue
Block a user