(30 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
#content {margin-left: 0px; margin-top: -9px; padding: 0px; width: 100%;} | #content {margin-left: 0px; margin-top: -9px; padding: 0px; width: 100%;} | ||
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 {margin-bottom: 0px;} | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 {margin-bottom: 0px;} | ||
+ | #globalWrapper{padding-bottom: 0 !important;} | ||
body {background-color: white;} | body {background-color: white;} | ||
Line 39: | Line 40: | ||
--second-txt-font: 'roboto', sans-serif; /* 'Ailerons-Typeface' didn't work. Figure out how to use font from ttf files? */ | --second-txt-font: 'roboto', sans-serif; /* 'Ailerons-Typeface' didn't work. Figure out how to use font from ttf files? */ | ||
− | + | /* --sectionTitle-txt-color: #f52153; */ /* poppy red */ | |
+ | --sectionTitle-txt-color: #e91b63; /* poppy pink */ | ||
--referenceLink-txt-color: #0C5798; /* grey blue */ | --referenceLink-txt-color: #0C5798; /* grey blue */ | ||
} | } | ||
Line 166: | Line 168: | ||
min-width: 160px; | min-width: 160px; | ||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
− | + | /* z-index: -1; */ | |
background-color: var(--navbar-div-color, #adaabe94); | background-color: var(--navbar-div-color, #adaabe94); | ||
} | } | ||
Line 323: | Line 325: | ||
− | /*----- Table of Contents -----*/ | + | /*----- Table of Contents -----*/ /* TODO: clean up unused code after switching to "toc" and "page-list" */ |
− | .float-toc, .float- | + | .float-toc, .float-page-list { |
display: block; | display: block; | ||
position: -webkit-sticky; /* Safari */ | position: -webkit-sticky; /* Safari */ | ||
Line 335: | Line 337: | ||
height: 1000px; /* big enough to hold list of any size */ | height: 1000px; /* big enough to hold list of any size */ | ||
width: 15vw; | width: 15vw; | ||
+ | min-width: 200px; | ||
padding: 5px; | padding: 5px; | ||
padding-left: 2vw; | padding-left: 2vw; | ||
text-align: right; | text-align: right; | ||
+ | transition: .3s; | ||
} | } | ||
− | /* | + | .float-page-list { |
− | .float- | + | display: none !important; |
+ | } | ||
+ | |||
+ | /* Page Lists (not used) */ | ||
+ | .float-page-list { | ||
float: right; | float: right; | ||
padding: 5px; | padding: 5px; | ||
Line 347: | Line 355: | ||
} | } | ||
− | .float-toc | + | .float-toc h6 { |
padding: 0; | padding: 0; | ||
+ | padding-top: 75px; /* anchor jump offset */ | ||
+ | margin-top: -75px; | ||
+ | |||
} | } | ||
− | .float- | + | .float-page-list h5 { |
color: var(--main-div-color, #545454); | color: var(--main-div-color, #545454); | ||
} | } | ||
− | .float-toc li, .float- | + | .float-toc li, .float-page-list li { |
list-style-type: none; | list-style-type: none; | ||
} | } | ||
− | .float-toc a, .float- | + | .float-toc a, .float-page-list a { |
display: block; | display: block; | ||
/* padding: calc((100vh - 150px - 20px*10)/(2*11)) 1em; */ | /* padding: calc((100vh - 150px - 20px*10)/(2*11)) 1em; */ | ||
Line 370: | Line 381: | ||
} | } | ||
− | .float- | + | .float-page-list.team-pages { |
display: none; | display: none; | ||
} | } | ||
Line 378: | Line 389: | ||
} | } | ||
− | .float- | + | .float-page-list a:hover { |
background-color: #f52153; /* poppy red */ | background-color: #f52153; /* poppy red */ | ||
} | } | ||
− | .float-toc | + | .float-toc a { |
padding: calc((100vh - (150px + 84px) - 30px*9)/(4*9)) 1em; /* In Style of page, replace "9"s with number of items in list */ /* calc((viewportHeight - (spaceAboveFirstItem + footerHeight) - heightOfTextAndSpaces*numberOfItems)/(twoPaddings*numberOfItems)) */ | padding: calc((100vh - (150px + 84px) - 30px*9)/(4*9)) 1em; /* In Style of page, replace "9"s with number of items in list */ /* calc((viewportHeight - (spaceAboveFirstItem + footerHeight) - heightOfTextAndSpaces*numberOfItems)/(twoPaddings*numberOfItems)) */ | ||
background-color: #f11346; /* poppy red, darker */ | background-color: #f11346; /* poppy red, darker */ | ||
+ | background-color: #e91b63; /* poppy red, darker */ | ||
} | } | ||
− | .float-toc | + | .float-toc a:hover { |
background-color: var(--main-div-color, #444444); | background-color: var(--main-div-color, #444444); | ||
} | } | ||
Line 418: | Line 430: | ||
.scroll-to-top img { | .scroll-to-top img { | ||
− | width: calc( | + | width: calc(35px + (20 * ((100vw - 800px) / 800))); |
+ | padding: 10px; | ||
+ | margin: -10px; | ||
+ | opacity: 0.25; | ||
+ | transition: .3s; | ||
+ | } | ||
+ | |||
+ | .scroll-to-top img:hover { | ||
+ | opacity: 1; | ||
} | } | ||
Line 449: | Line 469: | ||
} | } | ||
− | + | .toc-body .flex-row { /* TODO: delete .flex-row.toc-width once confirmed first works */ | |
padding: 0 20%; | padding: 0 20%; | ||
} | } | ||
Line 461: | Line 481: | ||
} | } | ||
− | + | .toc-body .flex-col { | |
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
Line 645: | Line 665: | ||
color: white; | color: white; | ||
padding: 18px 20px; | padding: 18px 20px; | ||
− | width: | + | width: 20%; |
text-align: center; | text-align: center; | ||
text-decoration: none; | text-decoration: none; | ||
Line 658: | Line 678: | ||
.buttonnotebook2:hover { | .buttonnotebook2:hover { | ||
+ | background-color: #e91b63; | ||
+ | } | ||
+ | |||
+ | .buttonnotebook3 { | ||
+ | background-color: #464646; | ||
+ | color: white; | ||
+ | padding: 18px 20px; | ||
+ | width: 50%; | ||
+ | text-align: center; | ||
+ | text-decoration: none; | ||
+ | display: inline-block; | ||
+ | font-size: 16px; | ||
+ | -webkit-transition-duration: 0.4s; /* Safari */ | ||
+ | transition-duration: 0.4s; | ||
+ | cursor: pointer; | ||
+ | box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); | ||
+ | float: left; | ||
+ | margin-bottom: 20px; | ||
+ | } | ||
+ | |||
+ | .buttonnotebook3:hover { | ||
+ | background-color: #e91b63; | ||
+ | } | ||
+ | |||
+ | .buttonnotebook4 { | ||
+ | background-color: #464646; | ||
+ | color: white; | ||
+ | padding: 18px 20px; | ||
+ | width: 25%; | ||
+ | text-align: center; | ||
+ | text-decoration: none; | ||
+ | display: inline-block; | ||
+ | font-size: 16px; | ||
+ | -webkit-transition-duration: 0.4s; /* Safari */ | ||
+ | transition-duration: 0.4s; | ||
+ | cursor: pointer; | ||
+ | box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); | ||
+ | float: left; | ||
+ | margin-bottom: 20px; | ||
+ | } | ||
+ | |||
+ | .buttonnotebook4:hover { | ||
background-color: #e91b63; | background-color: #e91b63; | ||
} | } | ||
Line 892: | Line 954: | ||
font-family: var(--main-txt-font) !important; | font-family: var(--main-txt-font) !important; | ||
/* font-family: 'roboto' !important; */ | /* font-family: 'roboto' !important; */ | ||
+ | max-height: 75px; /* fix bug where footer sometimes takes up whole page height */ | ||
} | } | ||
Line 953: | Line 1,016: | ||
/*===== SCREEN RESPONSIVENESS (MOBILE VERSION) =====*/ | /*===== SCREEN RESPONSIVENESS (MOBILE VERSION) =====*/ | ||
− | /* When the screen is less than x pixels wide, hide all navbar links. Show the link that should open and close the topnav (.menu-icon) */ | + | /* When the screen is less than x pixels wide, hide all navbar links. Show the link that should open and close the topnav (.menu-icon). If changing max-width, make sure to change JavaScript dropdown conditions in UCSC/NavBar as well! */ |
− | @media screen and (max-width: | + | @media screen and (max-width: 1150px) { |
.topnav .nav-logo { | .topnav .nav-logo { | ||
margin-left: 5px; | margin-left: 5px; | ||
Line 1,031: | Line 1,094: | ||
} | } | ||
+ | |||
+ | |||
+ | /*----- Tablet Sized Responsiveness ----*/ | ||
+ | @media screen and (max-width: 1300px) { | ||
+ | .toc-body .flex-row { | ||
+ | padding: 0 5% 0 calc(200px + 5%); | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
/* Responsive features of other page elements */ | /* Responsive features of other page elements */ | ||
Line 1,045: | Line 1,118: | ||
} | } | ||
− | .scroll- | + | .scroll-to-top { |
− | display: | + | display: block; |
} | } | ||
− | .float-toc, .float- | + | .float-toc, .float-page-list { |
display: inline; | display: inline; | ||
float: none; | float: none; | ||
Line 1,055: | Line 1,128: | ||
} | } | ||
− | .float- | + | .float-page-list { |
display: none; | display: none; | ||
} | } | ||
Line 1,103: | Line 1,176: | ||
.flex-col, .flex-row .flex-col.small-divide, .flex-row .flex-col.small-divide a { | .flex-col, .flex-row .flex-col.small-divide, .flex-row .flex-col.small-divide a { | ||
− | + | /* width: 90%; */ | |
− | padding: 0 | + | padding: 0 2.5% !important; |
margin: 5% 5%; | margin: 5% 5%; | ||
} | } | ||
Line 1,429: | Line 1,502: | ||
margin-right:2vh; | margin-right:2vh; | ||
} | } | ||
+ | |||
/*----------------------------------------------------------------------------------*/ | /*----------------------------------------------------------------------------------*/ | ||
+ | |||
+ | /**************** table **********************/ | ||
+ | table, th, td { | ||
+ | border: 1px solid black; | ||
+ | border-collapse: collapse; | ||
+ | } | ||
+ | th, td { | ||
+ | padding: 5px; | ||
+ | } | ||
+ | th { | ||
+ | text-align: left; | ||
+ | /*************************/ | ||
</style> | </style> |
Latest revision as of 18:17, 16 October 2018