Skip to content

Instantly share code, notes, and snippets.

@miczed
Last active February 25, 2019 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miczed/86363ff976ed00f53da9a0a17fa25fce to your computer and use it in GitHub Desktop.
Save miczed/86363ff976ed00f53da9a0a17fa25fce to your computer and use it in GitHub Desktop.
Custom CSS for the oecAlumni Website
/** Just for testing purposes - it's better to load the fonts in the html header **/
@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i');
/** Typography **/
html, body, ul#navilist li a, ul#navilist span, h1, h2, h3, h4, p, blockquote {
font-family: 'PT Sans', sans-serif;
}
html,body {
font-size: 16px;
}
h1 {
font-size: 36px;
}
h2 {
font-style: normal;
font-weight: bold;
font-size: 32px;
padding-bottom: 0.5rem;
margin-top: 60px;
color: black;
}
h3 {
font-style: normal;
font-weight: bold;
line-height: 1.3;
font-size: 22px;
padding-bottom: 0.5rem;
color: #585C66;
}
h4 {
font-size: 20px;
color: #585C66;
padding-bottom: 0.5rem;
}
ul.summary li {
list-style-type: none;
padding-left: 0;
font-weight: normal;
}
ul.summary li:before {
content: "\2022";
color: #A3ADB7;
font-weight: bold;
display: inline-block;
width: 1em;
margin-left: -1em;
}
blockquote {
font-style: normal;
font-size: 20px;
color: black;
border-left: 6px solid #DC6027;
margin: 30px 0px;
padding: 20px 0px 20px 40px;
}
blockquote p {
z-index: 10;
position:relative;
}
blockquote:before {
color: #EDEFF1;
font-size: 200px;
left:0px;
top: 80px;
z-index:0;
opacity: 0.5;
}
blockquote:after {
color: #EDEFF1;
font-size: 200px;
right:0px;
bottom: -60px;
z-index:0;
opacity: 0.5;
content: "\201D";
position: absolute;
}
a, h3 a, a h3, #content p a, #content li a, #content label a {
color: #0028A5;
text-decoration: none;
}
a:hover, h3 a:hover, a h3:hover, #content p a:hover, #content li a:hover, #content .plainever:hover, #content a:hover {
color: #001D77;
}
#content p a:hover, #content li a:hover, #content .plainever:hover, #content a:hover {
text-decoration: underline;
}
span.important {
background:transparent;
color: #DC6027;
}
p {
margin-bottom: 20px;
line-height: 160%;
}
p:last-child {
margin-bottom: 0px;
}
blockquote {
font-size: 22px;
}
/** Cards **/
.card, #summary li {
border-radius: 2px;
border: 1px solid #E5E7EB;
transition: all 0.1s ease-in-out;
}
.card:hover, #summary li:hover {
border: 1px solid #E5E7EB!important;
box-shadow: 0px 10px 5px -5px rgba(163, 173, 183, 0.10);
transform: translateY(-2px);
}
.card h3.card-title, .card .card-summary, .card .card-detail, .card .card-meta {
line-height: 1.2;
padding: 5px 15px 10px 15px;
}
.card h3.card-title {
font-size: 20px;
}
.card .card-meta, .card .card-summary {
color: #585C66;
}
/** Buttons **/
.btn {
transition: all 0.2s ease-in-out;
border: 0;
background: #A3ADB7;
color: white!important;
position: relative;
}
.btn:hover {
text-decoration: none!important;
background: #585C66;
}
.btn-inverse, .notchecked #personalBox.btn-group a {
font-family: 'PT Sans', sans-serif;
font-weight: normal;
background: #0028A5;
border: 0;
}
.btn-inverse:hover, .notchecked #personalBox.btn-group a:hover {
font-family: 'PT Sans', sans-serif;
font-weight: normal;
background: #001D77;
box-shadow: 0px 4px 10px rgba(0, 40, 165, 0.25);
}
.uzhregform:before {
position: absolute;
content: "";
background: silver;
height: 100%;
width: 100wh;
}
/** Summary **/
#summary li:hover {
background: transparent;
}
#summary li span.symbolblock {
color: #A3ADB7;
transform: scale(1);
transition: all 0.2s ease-in-out;
}
#summary li:hover span.symbolblock {
color: #0028A5;
}
#summary li:hover span.desc, #summary li span.desc {
color: #0028A5;
}
/** Stats **/
#stats a, #stats span {
font-size: 22px;
}
#stats li {
position: relative;
}
#stats li.center {
display: flex;
justify-content: center;
align-items: center;
}
#stats li::after {
height: 0px;
width: 100%;
position: absolute;
content: '';
background: rgba(0,0,0,0.05);
bottom: 0px;
transition: all 0.2s ease-in-out;
}
#stats li:hover::after {
height: 4px;
}
/** Navigation **/
ul#navilist li a {
font-size: 16px;
}
ul#navilist li .dropdown-menu {
opacity: 0;
transform: translateY(5px);
display: block;
visibility: hidden;
}
ul#navilist li:hover .dropdown-menu {
transition: all 0.2s ease-in-out;
transform: translateY(0px);
opacity: 1;
visibility: visible;
}
ul#navilist li:hover a {
color: #0028A5;
}
.dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover {
background: transparent;
color: #0028A5;
}
@media (min-width: 500px) {
.dropdown-menu {
box-shadow: 0px 7px 10px -3px rgba(163, 173, 183, 0.2);
}
#navi {
bottom: 27px;
}
ul#navilist li:hover .dropdown-menu a:hover {
color: #0028A5!important;
}
}
header {
box-shadow: 0px 1px 10px rgba(163, 173, 183, 0.15);
}
/** A Card Big **/
.acardbig {
transition: all 0.2s;
}
.acardbig .gradient {
transition: all 0.2s;
position: relative;
background: transparent;
}
.acardbig .gradient:before {
position: absolute;
width: 100%;
height: 100%;
content: '';
opacity: 0;
transition: all 0.2s;
background: linear-gradient(180deg, rgba(220, 96, 39, 0) 0%, rgba(220,96,39,0) 100%);
}
.acardbig:hover {
box-shadow: 0px 10px 5px -5px rgba(163, 173, 183, 0.20);
}
.acardbig:hover .gradient:before {
opacity: 1;
background: linear-gradient(180deg, rgba(220, 96, 39, 0) 0%, rgba(220,96,39,0.75) 100%);
}
/** Spacing **/
#page {
padding: 60px 0px 60px 0px;
}
ul.summary {
margin: 0 0 20px 0;
}
h2.headline {
margin-bottom: 20px;
}
/** Highlights **/
#highlights {
padding: 30px 0px 30px 0px;
}
#highlights p {
color: #585C66;
font-size: 18px;
}
/** Tables **/
#content table.tabnew h3 {
padding-bottom: 0.4rem;
}
table.tabnew th, table.tabnew td {
padding: 15px 0px;
}
table.tabnew tr, table.tabnew tbody {
border-bottom: 1px solid #EDEFF1;
}
/** Content List **/
section.contentlist article {
margin:0px;
padding: 15px 0px;
border-bottom: 1px solid #EDEFF1;
}
section.contentlist article a.thumb, section.contentlist article span.thumb {
margin-right: 20px;
}
#content section.contentlist article h3 {
margin: 7px 0px 5px 0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment