382 lines
8.4 KiB
SCSS
382 lines
8.4 KiB
SCSS
@import 'styles_config';
|
|
|
|
.aboutcontent {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.aboutcontent .boxedcontent{
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.about_egg_container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.git_list {
|
|
display: inline-block;
|
|
width: 715px;
|
|
height: 115px;
|
|
overflow: visible;
|
|
}
|
|
|
|
@include rdmedia_range(0,2) {
|
|
.git_list { width: 100%; height: auto; }
|
|
.extGitGraphContainer { width: 95%; width: calc(100% - 16px); }
|
|
}
|
|
|
|
.git_list text.caption {
|
|
font-size: 10px;
|
|
fill: #666;
|
|
}
|
|
|
|
.git_list text.caption_month {
|
|
font-size: 8px;
|
|
fill: #BBB;
|
|
}
|
|
|
|
.git_list text.caption_day {
|
|
font-size: 8px;
|
|
fill: #BBB;
|
|
}
|
|
|
|
.svg-tip:after {
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
left: 50%;
|
|
height: 5px;
|
|
width: 5px;
|
|
bottom: -10px;
|
|
margin: 0 0 0px -5px;
|
|
content: " ";
|
|
border: 5px solid transparent;
|
|
border-top-color: rgba(0, 0, 0, 0.8);
|
|
border-image: none;
|
|
}
|
|
|
|
.svg-tip {
|
|
padding: 5px;
|
|
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.8);
|
|
color: #BBB;
|
|
font-size: 12px;
|
|
position: absolute;
|
|
z-index: 99999;
|
|
text-align: center;
|
|
border-radius: 3px;
|
|
box-sizing: border-box;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.extGitGraphContainer {
|
|
background-color: #FCFCFC;
|
|
margin: 10px;
|
|
display: inline-block;
|
|
|
|
border: 1px solid #222;
|
|
border-radius: 0;
|
|
box-shadow: 0 0 1px rgba(0, 0, 0, 0.25) inset;
|
|
}
|
|
|
|
.egg_footer {
|
|
margin-top: 5px;
|
|
|
|
text-align: right;
|
|
margin-right: 5px;
|
|
margin-bottom: 5px;
|
|
|
|
color: #888;
|
|
}
|
|
|
|
.egg_footer > a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.egg_footer > a:hover {
|
|
text-decoration: none;
|
|
color: #22F;
|
|
}
|
|
|
|
.about_circles {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.about_circles {
|
|
|
|
a { margin: 5px 0; }
|
|
|
|
.iconbutton_light span {text-align: left;}
|
|
|
|
}
|
|
|
|
@if $CFG_EGG_THEME == 'standard'
|
|
{
|
|
// ==== STANDARD ====
|
|
.egg_col_x5_0 { fill: #ebedf0; }
|
|
.egg_col_x5_1 { fill: #c6e48b; }
|
|
.egg_col_x5_2 { fill: #7bc96f; }
|
|
.egg_col_x5_3 { fill: #239a3b; }
|
|
.egg_col_x5_4 { fill: #196127; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'modern'
|
|
{
|
|
.egg_col_x5_0 { fill: #afaca8; }
|
|
.egg_col_x5_1 { fill: #d6e685; }
|
|
.egg_col_x5_2 { fill: #8cc665; }
|
|
.egg_col_x5_3 { fill: #44a340; }
|
|
.egg_col_x5_4 { fill: #1e6823; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'gray'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #bdbdbd; }
|
|
.egg_col_x5_2 { fill: #9e9e9e; }
|
|
.egg_col_x5_3 { fill: #616161; }
|
|
.egg_col_x5_4 { fill: #212121; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'red'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #ff7171; }
|
|
.egg_col_x5_2 { fill: #ff0000; }
|
|
.egg_col_x5_3 { fill: #b70000; }
|
|
.egg_col_x5_4 { fill: #830000; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'blue'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #6bcdff; }
|
|
.egg_col_x5_2 { fill: #00a1f3; }
|
|
.egg_col_x5_3 { fill: #0079b7; }
|
|
.egg_col_x5_4 { fill: #003958; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'purple'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #d2ace6; }
|
|
.egg_col_x5_2 { fill: #aa66cc; }
|
|
.egg_col_x5_3 { fill: #660099; }
|
|
.egg_col_x5_4 { fill: #4f2266; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'orange'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #ffcc80; }
|
|
.egg_col_x5_2 { fill: #ffa726; }
|
|
.egg_col_x5_3 { fill: #fb8c00; }
|
|
.egg_col_x5_4 { fill: #e65100; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'halloween'
|
|
{
|
|
.egg_col_x5_0 { fill: #eeeeee; }
|
|
.egg_col_x5_1 { fill: #ffee4a; }
|
|
.egg_col_x5_2 { fill: #ffc501; }
|
|
.egg_col_x5_3 { fill: #fe9600; }
|
|
.egg_col_x5_4 { fill: #03001c; }
|
|
}
|
|
@else if $CFG_EGG_THEME == 'custom'
|
|
{
|
|
.egg_col_x9_0 { fill: #F5F5F5; }
|
|
.egg_col_x9_1 { fill: #DBDEE0; }
|
|
.egg_col_x9_2 { fill: #C2C7CB; }
|
|
.egg_col_x9_3 { fill: #AAB0B7; }
|
|
.egg_col_x9_4 { fill: #9099A2; }
|
|
.egg_col_x9_5 { fill: #77828E; }
|
|
.egg_col_x9_6 { fill: #5E6B79; }
|
|
.egg_col_x9_7 { fill: #455464; }
|
|
.egg_col_x9_8 { fill: #2C3E50; }
|
|
}
|
|
|
|
.about_ehr_container {
|
|
|
|
.reading-history {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
padding: 20px;
|
|
|
|
max-width: calc( min( 1170px, 100% ) );
|
|
}
|
|
|
|
.year-container {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.year-label {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #222222;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
.month-grid {
|
|
padding: 4px;
|
|
border: 1px solid #000;
|
|
|
|
display: grid;
|
|
gap: 8px;
|
|
|
|
}
|
|
|
|
@include rdmedia(4) { .month-grid { grid-template-columns: repeat(6, 1fr); } }
|
|
@include rdmedia(3) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
|
|
@include rdmedia(2) { .month-grid { grid-template-columns: repeat(4, 1fr); } }
|
|
@include rdmedia(1) { .month-grid { grid-template-columns: repeat(3, 1fr); } }
|
|
@include rdmedia(0) { .month-grid { grid-template-columns: repeat(1, 1fr); } }
|
|
|
|
.month-cell {
|
|
min-height: 180px;
|
|
|
|
background: #AAAAAA;
|
|
border: 1px solid #000;
|
|
}
|
|
|
|
.book-grid {
|
|
padding: 4px;
|
|
}
|
|
|
|
.month-label {
|
|
font-size: 0.8em;
|
|
background-color: #888888;
|
|
color: #000000;
|
|
border-bottom: 1px solid #000000;
|
|
|
|
text-align: center;
|
|
margin-bottom: 8px;
|
|
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Book item styles */
|
|
.book-item {
|
|
border-radius: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.book-item:not(:hover) {
|
|
overflow: hidden;
|
|
border: 1px solid #000000;
|
|
}
|
|
|
|
.book-container {
|
|
position: relative;
|
|
transition: transform 0.2s ease-in-out, z-index 0s;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Chapter overlay at top */
|
|
.book-item .chapter-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
|
|
color: white;
|
|
font-size: 2px;
|
|
padding: 1px 1px 4px 1px;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Title overlay on hover */
|
|
.book-item .title-overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
|
|
color: white;
|
|
font-size: 2px;
|
|
padding: 4px 1px 1px 1px;
|
|
transition: opacity 0.2s ease-in-out;
|
|
white-space: wrap;
|
|
|
|
opacity: 0;
|
|
}
|
|
|
|
.book-item img {
|
|
aspect-ratio: var(--preview-aspect-ratio);
|
|
}
|
|
|
|
.book-item.no-cover {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
/* Rating stars - top right on hover */
|
|
.rating-overlay {
|
|
position: absolute;
|
|
bottom: calc(100% + 0.5px);
|
|
right: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: right bottom;
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Word count - below title on hover */
|
|
.wordcount-overlay {
|
|
position: absolute;
|
|
top: calc(100% + 0.5px);
|
|
left: 0;
|
|
right: 0;
|
|
padding: 1px;
|
|
font-size: 2px;
|
|
text-align: center;
|
|
color: white;
|
|
background: rgba(0,0,0,0.7);
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Use data-count attribute to select star image */
|
|
.rating-overlay[data-count="1.0"] { background-image: url('/data/images/ehr/stars_1.0.png'); }
|
|
.rating-overlay[data-count="1.5"] { background-image: url('/data/images/ehr/stars_1.5.png'); }
|
|
.rating-overlay[data-count="2.0"] { background-image: url('/data/images/ehr/stars_2.0.png'); }
|
|
.rating-overlay[data-count="2.5"] { background-image: url('/data/images/ehr/stars_2.5.png'); }
|
|
.rating-overlay[data-count="3.0"] { background-image: url('/data/images/ehr/stars_3.0.png'); }
|
|
.rating-overlay[data-count="3.5"] { background-image: url('/data/images/ehr/stars_3.5.png'); }
|
|
.rating-overlay[data-count="4.0"] { background-image: url('/data/images/ehr/stars_4.0.png'); }
|
|
.rating-overlay[data-count="4.5"] { background-image: url('/data/images/ehr/stars_4.5.png'); }
|
|
.rating-overlay[data-count="5.0"] { background-image: url('/data/images/ehr/stars_5.0.png'); }
|
|
|
|
/* ================================================================================================================== */
|
|
|
|
.book-item:hover .book-container {
|
|
transform: scale(8);
|
|
z-index: 10;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
background-color: #FFF;
|
|
position: absolute;
|
|
width: 32px;
|
|
height: calc( 32px / var(--img-aspect-ratio) );
|
|
left: calc(50% - 16px);
|
|
top: calc(50% - (16px / var(--img-aspect-ratio)));
|
|
}
|
|
|
|
.book-item:hover .title-overlay {
|
|
opacity: 1;
|
|
}
|
|
.book-item:hover .chapter-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.book-item:hover .wordcount-overlay { opacity: 1; }
|
|
.book-item:hover .rating-overlay { opacity: 1; }
|
|
|
|
} |