Skip to content

Commit

Permalink
prep for import css rather than shipping with skeletons
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Oct 29, 2020
1 parent 3ca3dd4 commit 1652f76
Show file tree
Hide file tree
Showing 4 changed files with 508 additions and 0 deletions.
68 changes: 68 additions & 0 deletions inst/css/uio-distill.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@


html {
/*-- Main font sizes --*/
--title-size: 50px;
--body-size: 1.06rem;
--code-size: 14px;
--aside-size: 12px;
--fig-cap-size: 13px;
/*-- Main font colors --*/
--title-color: #000000;
--header-color: rgba(0, 0, 0, 0.8);
--body-color: rgba(0, 0, 0, 0.8);
--aside-color: rgba(0, 0, 0, 0.6);
--fig-cap-color: rgba(0, 0, 0, 0.6);
/*-- Specify custom fonts ~~~ must be imported above --*/
--heading-font: Georgia, Serif;
--mono-font: Georgia, Serif;
--body-font: Arial, Helvetica, sans-serif;
--navbar-font: Georgia, Serif; /* websites + blogs only */
}

/*-- ARTICLE METADATA --*/
d-byline {
--heading-size: 0.6rem;
--heading-color: rgba(0, 0, 0, 0.5);
--body-size: 0.8rem;
--body-color: rgba(0, 0, 0, 0.8);
}

/*-- ARTICLE TABLE OF CONTENTS --*/
.d-contents {
--heading-size: 18px;
--contents-size: 13px;
}

/*-- ARTICLE APPENDIX --*/
d-appendix {
--heading-size: 15px;
--heading-color: rgba(0, 0, 0, 0.65);
--text-size: 0.8em;
--text-color: rgba(0, 0, 0, 0.5);
}

/*-- WEBSITE HEADER + FOOTER --*/
/* These properties only apply to Distill sites and blogs */

.distill-site-header {
--title-size: 18px;
--text-color: rgba(255, 255, 255, 0.8);
--text-size: 15px;
--hover-color: white;
--bkgd-color: #000000;
}

.distill-site-footer {
--text-color: rgba(255, 255, 255, 0.8);
--text-size: 15px;
--hover-color: white;
--bkgd-color: #000000;
}

/*-- Additional custom styles --*/
/* Add any additional CSS rules below */
ul > li::marker {
font-size: 1.125em;
color: #ff0000;
}
160 changes: 160 additions & 0 deletions inst/css/uio-xaringan.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@

/**************/
/**** text ****/
/**************/
body { font-family: Arial, Helvetica, sans-serif;}

h1, h2, h3 {
font-family: Georgia, Serif;
font-weight: normal;
text-shadow: none;
}

h1 {
color: #fff;
font-size: 2em;
}

h2, h3 {
color: #000;
}

p, a, code, ul, li {
font-size: 1.2em;
color: #000;
}

a, a > code {
color: #FF0000;
}

ul li::marker {
color: #ff0000; !important
}


/**********/
/* remark */
/**********/
.remark-code-line-highlighted {
background-color: #FF000060;
}

.remark-slide-content {
background-color: #fff;
border-top: 5em solid #000;
}

.remark-slide-content > h1 {
margin-top: -100px;
}

.middle {
border: none;
}

.no-border {
border: none; !important
}


/***************/
/* title slide */
/***************/

.title-slide {
padding: 20px;
border: none;
background-origin: padding-box;
background-size: 60%, 100;
background-position: 10% 90%, center;
background-color: #fff;
background-image: url("uio_front.png"), -webkit-linear-gradient(65deg, #FFF 35%, #000 35%);
}

.title-slide h1,
.title-slide h2,
.title-slide h3{
border: none;
color: #fff;
text-shadow: none;
}


.title-slide .remark-slide-number {
display: none;
}

/***************/
/***** red *****/
/***************/
.red {
border-color: #dd0000;
text-shadow: none;
}

.red h1 {
color: #fff;
}

.middle.red,
.red.middle {
background-color: #dd0000;
}

.middle.red h1,
.red.middle h1,
.middle.red h2,
.red.middle h2,
.middle.red h3,
.red.middle h3,
.red.middle p {
color: #fff;
}

.red.middle ul > li::marker ,
.middle.red ul > li::marker {
color: #fff;
}

/***************/
/**** black ****/
/***************/
.black {
background-color: #000;
border-color: #fff;
text-shadow: none;
color: #fff;
}

.black h1{
border: none;
color: #000;
}

.black.middle > h1,
.middle.black > h1{
color: #fff;
}


/************************/
/* Logo on the side div */
/************************/
div.logo {
position: fixed;
right: 69%;
bottom: 45%;
height: 2.5em;
width: calc(100% * .55); /* fix sidebar height */
padding: 0.5em;
opacity: 0.7;
background-color: #fff;
background-position: left;
background-origin: content-box;
background-repeat: no-repeat;
background-size: contain;
background-image: url("uio_logo.png"),
linear-gradient(70deg, #fff, #ffffff00 30%);
transform: rotate(-90deg);
}
Loading

0 comments on commit 1652f76

Please sign in to comment.