Skip to content
Snippets Groups Projects
main.css 3.76 KiB
Newer Older
jiangxu's avatar
jiangxu committed
/* 	file: main.css
	author: Leif DeJong
	created: Jan 2012

	Tristan Wright July 2012
	modified to support new elements for eDisplay-v2
	removed .menu styles, original in archive

	Lillian Gray 2017-2020
*/
jiangxu's avatar
jiangxu committed

* {
	margin: 0;
	padding: 0;
jiangxu's avatar
jiangxu committed
	outline: none;
	font-family: Georgia, Serif;
jiangxu's avatar
jiangxu committed
}

/* Used to easily hide objects in main.js */
Lillian Gray's avatar
Lillian Gray committed
.displayNone {
	display: none;
}

/*Gives support for flexbox in more browsers
  Margins can be edited once there is support for row-gap and column-gap*/
	display: -ms-flexbox;
	display: flex;
	-ms-flex-pack: distribute;
	justify-content: space-around;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: -10px;
}

Lillian Gray's avatar
Lillian Gray committed
.flex-parent>* {
	margin: 10px;
}

jiangxu's avatar
jiangxu committed
body {
	background: url("../images/header_bg.png") repeat-x scroll left top #EDEDED;
	overflow-x: hidden;
}

Lillian Gray's avatar
Lillian Gray committed
header {
	max-width: 1000px;
jiangxu's avatar
jiangxu committed
	margin: 0 auto;
}

Lillian Gray's avatar
Lillian Gray committed
header a, header button {
	text-decoration: none;
jiangxu's avatar
jiangxu committed
	align-self: flex-end;
}

Lillian Gray's avatar
Lillian Gray committed
#page-title {
	font-size: 30px;
	color: #9f2d42;
jiangxu's avatar
jiangxu committed
	white-space: nowrap;
}

Lillian Gray's avatar
Lillian Gray committed
#page-title:hover, #page-title:active {
jiangxu's avatar
jiangxu committed
	color: #000;
}

Lillian Gray's avatar
Lillian Gray committed
#dashboard {
	width: 80%;
	margin: 20px auto;
	position: relative;
jiangxu's avatar
jiangxu committed
	overflow: hidden;
	background-color: #fff;
	/* Border Radius */
	border-radius: 5px 5px;
jiangxu's avatar
jiangxu committed
 	-moz-border-radius: 5px 5px;
    -khtml-border-radius: 5px 5px;
   	-webkit-border-radius: 5px 5px;
   	/* Box Shadow */
   	-moz-box-shadow: 0px 0px 5px #666;
    -webkit-box-shadow: 0px 0px 5px #666;
    box-shadow: 0px 0px 5px #666;
    -webkit-transition: -webkit-box-shadow 0.1s ease-out;
    -moz-transition: -webkit-box-shadow 0.1s ease-out;
    -o-transition: -webkit-box-shadow 0.1s ease-out;
    transition: -webkit-box-shadow 0.1s ease-out;
}

.close {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 32px;
	height: 32px;
	opacity: 0.75;
	cursor: pointer;
}

.close:hover {
	opacity: 1;
}

.close:before, .close:after {
	position: absolute;
	left: 14px;
	content: ' ';
	height: 32px;
	width: 4px;
	background-color: #9f2d42;
}

.close:before {
	transform: rotate(45deg);
}

.close:after {
	transform: rotate(-45deg);
}

#aboutText, #howToUse {
	margin: 48px;
}

Lillian Gray's avatar
Lillian Gray committed
.about {
jiangxu's avatar
jiangxu committed
	line-height: 25px;
	text-align: justify;
	padding: 4%;
	text-indent: 6%;
	margin: auto;
	max-width: 700px;
}

Lillian Gray's avatar
Lillian Gray committed
.aboutBtn, .getPlink, .csvBtn {
jiangxu's avatar
jiangxu committed
	font-size: 18px;
	border: 1px solid #666;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-moz-box-shadow: 0px 0px 2px #666;
    -webkit-box-shadow: 0px 0px 2px #666;
	box-shadow: 0px 0px 2px #666;
	cursor: pointer;
jiangxu's avatar
jiangxu committed
}

Lillian Gray's avatar
Lillian Gray committed
.aboutBtn {
jiangxu's avatar
jiangxu committed
	font-size: 15px;
	height: 35px;
	width: 100px;
	background: white;
	text-align: center;
	vertical-align: text-top;
jiangxu's avatar
jiangxu committed

Lillian Gray's avatar
Lillian Gray committed
.aboutBtn:hover {
jiangxu's avatar
jiangxu committed
	border: 1px solid #222;
	-moz-box-shadow: 0px 0px 4px #222;
    -webkit-box-shadow: 0px 0px 4px #222;
    box-shadow: 0px 0px 4px #222;
}

Lillian Gray's avatar
Lillian Gray committed
.aboutBtn:active, .getPlink:active, .csvBtn:active {
jiangxu's avatar
jiangxu committed
	background-color: #ddd;
}

Lillian Gray's avatar
Lillian Gray committed
#plink {
jiangxu's avatar
jiangxu committed
	width: 150px;
	height: 20px;
	font-size: 14px;
}

Lillian Gray's avatar
Lillian Gray committed
.getPlink, .csvBtn {
jiangxu's avatar
jiangxu committed
	padding: 3px;
	font-size: 16px;
	background: white;
Lillian Gray's avatar
Lillian Gray committed
.getPlink::before, .getPlink::after {
	position: absolute;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.getPlink.inactive::before, .getPlink.inactive::after {
	visibility: hidden;
.getPlink.active::before, .getPlink.active::after {
	opacity: 1;
}

.getPlink::before {
	content: 'Permalink Copied!';
	font-size: 12px;
	color: white;
	margin: 0 auto;
	width: 60%;
	height: 140%;
	line-height: 140%;
	border-radius: 5px;
	background: #9f2d42;
	bottom: 150%;
}

.getPlink::after {
	content: '';
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #9f2d42;
	left: calc(50% - 10px);
	bottom: calc(150% - 16px);
jiangxu's avatar
jiangxu committed
}

Lillian Gray's avatar
Lillian Gray committed
#site-details {
jiangxu's avatar
jiangxu committed
	margin-bottom: 20px;
	text-align: center;
	font-size: 10px;
	color: #888;
jiangxu's avatar
jiangxu committed
}

Lillian Gray's avatar
Lillian Gray committed
#site-options {
jiangxu's avatar
jiangxu committed
	width: 80%;
	margin: 20px auto;
	align-items: center;