Files
code.academic_webpage/style.css

360 lines
6.2 KiB
CSS
Executable File

html {
scroll-behavior: smooth;
max-width: 50em;
margin: auto;
}
body {
font-family: "Palatino", "Georgia", Times, serif;
background-color: rgb(255, 255, 250);
line-height: 1.4;
padding-bottom: 12.5em;
/* text-size-adjust: none;
-webkit-text-size-adjust: none; */
}
img {
border-radius: 1em;
}
h1,
h2,
h3,
h4 {
padding-top: 0em;
padding-bottom: 0.5em;
text-align: center;
}
th {
font-weight: normal;
}
p {
padding-bottom: 0.5em;
}
#topbar {
display: inline-block;
padding: 0 0.25em;
}
div#annoucement {
width: 45em;
}
table#table1 {
text-align: left;
margin-left: 35;
margin-right: auto;
}
ul#course {
list-style: none;
padding-left: 5;
}
/* The navigation bar */
.navbar {
opacity: 0.8;
overflow: hidden;
background-color: #333;
position: fixed;
/* Set the navbar to fixed position */
top: 0;
/* Position the navbar at the top of the page */
left: 0;
width: 100%;
/* Full width */
text-align: center;
font-weight: bold;
}
/* Links inside the navbar */
.navbar a {
/* float: left; */
display: inline-block;
color: #f2f2f2;
text-align: center;
padding: 0.625em 1em;
text-decoration: none;
}
/* Change background on mouse-over */
.navbar a:hover {
background: #ddd;
color: black;
}
/* Main content */
.main {
margin-top: 0.3em;
/* Add a top margin to avoid content overlay */
}
hr {
border-top: dashed 0.1em;
}
.notATable {
display: table;
list-style: none;
padding-left: 5;
/* font-size:16px; */
}
.notATable>li {
display: table-row;
}
.notATable>li>* {
display: table-cell;
padding: 0.125em;
}
.notATable label {
font-weight: bold;
text-align: right;
}
.notATable label:after {
content: '|';
}
#shadowbox {
border: 0em solid;
border-radius: 1em;
padding: 0.6em;
box-shadow: 0.3em 0.3em 1em #999999;
}
hr.style-one {
border: 0;
height: 0.1em;
background: #333;
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
background-image: -moz-linear-gradient(left, #ccc, #333, #ccc);
background-image: -ms-linear-gradient(left, #ccc, #333, #ccc);
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
}
hr.style-zero {
border: 0;
height: 0em;
background: #333;
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
background-image: -moz-linear-gradient(left, #ccc, #333, #ccc);
background-image: -ms-linear-gradient(left, #ccc, #333, #ccc);
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
}
hr.curve {
border: 0;
height: 1em;
background-image: url(curve.png);
background-size: 100% 100%;
background-repeat: no-repeat;
}
.box {
width: 100%;
height: 18em;
background: rgb(220, 220, 220);
margin: 2.5em auto;
}
.effect2 {
position: relative;
}
.effect2:before,
.effect2:after {
z-index: -1;
position: absolute;
content: "";
bottom: 1em;
left: 0.5em;
width: 50%;
top: 80%;
max-width: 18empx;
background: #777;
-webkit-box-shadow: 0 1em 0.5em #777;
-moz-box-shadow: 0 1em 0.5em #777;
box-shadow: 0 1em 0.5em #777;
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
transform: rotate(-3deg);
}
.effect2:after {
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-o-transform: rotate(3deg);
-ms-transform: rotate(3deg);
transform: rotate(3deg);
right: 0.5em;
left: auto;
}
.container {
width: 12.5em;
height: 12.5em;
padding-top: 0em;
margin: 0 auto;
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
#container_rotate {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.ball {
width: 0.5em;
height: 0.5em;
margin: 0.5em auto;
border-radius: 3em;
}
.ball:nth-child(1) {
background: #000000;
-webkit-animation: right 1s infinite ease-in-out;
-moz-animation: right 1s infinite ease-in-out;
animation: right 1s infinite ease-in-out;
}
.ball:nth-child(2) {
background: #000000;
-webkit-animation: left 1.1s infinite ease-in-out;
-moz-animation: left 1.1s infinite ease-in-out;
animation: left 1.1s infinite ease-in-out;
}
.ball:nth-child(3) {
background: #000000;
-webkit-animation: right 1.05s infinite ease-in-out;
-moz-animation: right 1.05s infinite ease-in-out;
animation: right 1.05s infinite ease-in-out;
}
.ball:nth-child(4) {
background: #000000;
-webkit-animation: left 1.15s infinite ease-in-out;
-moz-animation: left 1.15s infinite ease-in-out;
animation: left 1.15s infinite ease-in-out;
}
.ball:nth-child(5) {
background: #000000;
-webkit-animation: right 1.1s infinite ease-in-out;
-moz-animation: right 1.1s infinite ease-in-out;
animation: right 1.1s infinite ease-in-out;
}
.ball:nth-child(6) {
background: #000000;
-webkit-animation: left 1.05s infinite ease-in-out;
-moz-animation: left 1.05s infinite ease-in-out;
animation: left 1.05s infinite ease-in-out;
}
.ball:nth-child(7) {
background: #000000;
-webkit-animation: right 1s infinite ease-in-out;
-moz-animation: right 1s infinite ease-in-out;
animation: right 1s infinite ease-in-out;
}
@-webkit-keyframes right {
0% {
-webkit-transform: translate(-1em);
}
50% {
-webkit-transform: translate(1em);
}
100% {
-webkit-transform: translate(-1em);
}
}
@-webkit-keyframes left {
0% {
-webkit-transform: translate(1em);
}
50% {
-webkit-transform: translate(-1em);
}
100% {
-webkit-transform: translate(1em);
}
}
@-moz-keyframes right {
0% {
-moz-transform: translate(-1em);
}
50% {
-moz-transform: translate(1em);
}
100% {
-moz-transform: translate(-1em);
}
}
@-moz-keyframes left {
0% {
-moz-transform: translate(1em);
}
50% {
-moz-transform: translate(-1em);
}
100% {
-moz-transform: translate(1em);
}
}
@keyframes right {
0% {
transform: translate(-1em);
}
50% {
transform: translate(1em);
}
100% {
transform: translate(-1em);
}
}
@keyframes left {
0% {
transform: translate(1em);
}
50% {
transform: translate(-1em);
}
100% {
transform: translate(1em);
}
}