Reformat the css code.
This commit is contained in:
181
style.css
181
style.css
@@ -1,118 +1,123 @@
|
|||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Palatino", "Georgia", Times, serif;
|
font-family: "Palatino", "Georgia", Times, serif;
|
||||||
background-color: rgb(255, 255, 250);
|
background-color: rgb(255, 255, 250);
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
padding-bottom: 200px;
|
padding-bottom: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4 {
|
h1,
|
||||||
padding-top: 0px;
|
h2,
|
||||||
padding-bottom: 10px;
|
h3,
|
||||||
text-align: center;
|
h4 {
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
th{
|
th {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#topbar{
|
#topbar {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#annoucement {
|
div#annoucement {
|
||||||
width: 750px;
|
width: 750px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table#table1 {
|
table#table1 {
|
||||||
text-align:left;
|
text-align: left;
|
||||||
margin-left:35;
|
margin-left: 35;
|
||||||
margin-right:auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#course {
|
ul#course {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding-left: 5;
|
padding-left: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The navigation bar */
|
/* The navigation bar */
|
||||||
.navbar {
|
.navbar {
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: #333;
|
background-color: #333;
|
||||||
position: fixed; /* Set the navbar to fixed position */
|
position: fixed;
|
||||||
top: 0; /* Position the navbar at the top of the page */
|
/* Set the navbar to fixed position */
|
||||||
left: 0;
|
top: 0;
|
||||||
width: 100%; /* Full width */
|
/* Position the navbar at the top of the page */
|
||||||
text-align: center;
|
left: 0;
|
||||||
font-weight: bold;
|
width: 100%;
|
||||||
|
/* Full width */
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Links inside the navbar */
|
/* Links inside the navbar */
|
||||||
.navbar a {
|
.navbar a {
|
||||||
/* float: left; */
|
/* float: left; */
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #f2f2f2;
|
color: #f2f2f2;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change background on mouse-over */
|
/* Change background on mouse-over */
|
||||||
.navbar a:hover {
|
.navbar a:hover {
|
||||||
background: #ddd;
|
background: #ddd;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main content */
|
/* Main content */
|
||||||
.main {
|
.main {
|
||||||
margin-top: 5px; /* Add a top margin to avoid content overlay */
|
margin-top: 5px;
|
||||||
|
/* Add a top margin to avoid content overlay */
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-top: dashed 1px;
|
border-top: dashed 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notATable {
|
.notATable {
|
||||||
display:table;
|
display: table;
|
||||||
list-style:none;
|
list-style: none;
|
||||||
padding-left:5;
|
padding-left: 5;
|
||||||
/* font-size:16px; */
|
/* font-size:16px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.notATable > li
|
.notATable>li {
|
||||||
{
|
display: table-row;
|
||||||
display:table-row;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notATable > li > *
|
.notATable>li>* {
|
||||||
{
|
display: table-cell;
|
||||||
display:table-cell;
|
padding: 2px;
|
||||||
padding:2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.notATable label {
|
.notATable label {
|
||||||
font-weight:bold;
|
font-weight: bold;
|
||||||
text-align:right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notATable label:after {
|
.notATable label:after {
|
||||||
content: '|';
|
content: '|';
|
||||||
}
|
}
|
||||||
|
|
||||||
#shadowbox {
|
#shadowbox {
|
||||||
@@ -123,46 +128,46 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hr.style-one {
|
hr.style-one {
|
||||||
border: 0;
|
border: 0;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: #333;
|
background: #333;
|
||||||
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
|
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
background-image: -moz-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: -ms-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
|
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
}
|
}
|
||||||
|
|
||||||
hr.style-zero {
|
hr.style-zero {
|
||||||
border: 0;
|
border: 0;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
background: #333;
|
background: #333;
|
||||||
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
|
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
background-image: -moz-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: -ms-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
|
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
|
||||||
}
|
}
|
||||||
|
|
||||||
hr.curve {
|
hr.curve {
|
||||||
border: 0;
|
border: 0;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
background-image: url(curve.png);
|
background-image: url(curve.png);
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width:100%;
|
width: 100%;
|
||||||
height:280px;
|
height: 280px;
|
||||||
background:rgb(220, 220, 220);
|
background: rgb(220, 220, 220);
|
||||||
margin:40px auto;
|
margin: 40px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.effect2
|
.effect2 {
|
||||||
{
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.effect2:before, .effect2:after
|
|
||||||
{
|
.effect2:before,
|
||||||
|
.effect2:after {
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "";
|
content: "";
|
||||||
@@ -170,7 +175,7 @@ background-repeat: no-repeat;
|
|||||||
left: 10px;
|
left: 10px;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
top: 80%;
|
top: 80%;
|
||||||
max-width:300px;
|
max-width: 300px;
|
||||||
background: #777;
|
background: #777;
|
||||||
-webkit-box-shadow: 0 15px 10px #777;
|
-webkit-box-shadow: 0 15px 10px #777;
|
||||||
-moz-box-shadow: 0 15px 10px #777;
|
-moz-box-shadow: 0 15px 10px #777;
|
||||||
@@ -181,8 +186,8 @@ background-repeat: no-repeat;
|
|||||||
-ms-transform: rotate(-3deg);
|
-ms-transform: rotate(-3deg);
|
||||||
transform: rotate(-3deg);
|
transform: rotate(-3deg);
|
||||||
}
|
}
|
||||||
.effect2:after
|
|
||||||
{
|
.effect2:after {
|
||||||
-webkit-transform: rotate(3deg);
|
-webkit-transform: rotate(3deg);
|
||||||
-moz-transform: rotate(3deg);
|
-moz-transform: rotate(3deg);
|
||||||
-o-transform: rotate(3deg);
|
-o-transform: rotate(3deg);
|
||||||
@@ -272,9 +277,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
-webkit-transform: translate(-15px);
|
-webkit-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
-webkit-transform: translate(15px);
|
-webkit-transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
-webkit-transform: translate(-15px);
|
-webkit-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
@@ -284,9 +291,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
-webkit-transform: translate(15px);
|
-webkit-transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
-webkit-transform: translate(-15px);
|
-webkit-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
-webkit-transform: translate(15px);
|
-webkit-transform: translate(15px);
|
||||||
}
|
}
|
||||||
@@ -296,9 +305,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
-moz-transform: translate(-15px);
|
-moz-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
-moz-transform: translate(15px);
|
-moz-transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
-moz-transform: translate(-15px);
|
-moz-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
@@ -308,9 +319,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
-moz-transform: translate(15px);
|
-moz-transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
-moz-transform: translate(-15px);
|
-moz-transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
-moz-transform: translate(15px);
|
-moz-transform: translate(15px);
|
||||||
}
|
}
|
||||||
@@ -320,9 +333,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
transform: translate(-15px);
|
transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: translate(15px);
|
transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: translate(-15px);
|
transform: translate(-15px);
|
||||||
}
|
}
|
||||||
@@ -332,9 +347,11 @@ background-repeat: no-repeat;
|
|||||||
0% {
|
0% {
|
||||||
transform: translate(15px);
|
transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
transform: translate(-15px);
|
transform: translate(-15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: translate(15px);
|
transform: translate(15px);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user