Skip to content

Commit fdac528

Browse files
committed
Moved CSS and JavaScript to separate files
1 parent 46409eb commit fdac528

3 files changed

Lines changed: 360 additions & 365 deletions

File tree

CPU_Scheduler.css

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*Center the titile of the page*/
2+
#title {
3+
text-align: center;
4+
}
5+
6+
#quantum {
7+
display: none;
8+
}
9+
10+
/**************************** Styles for the table ****************************/
11+
12+
#div-input {
13+
display: table;
14+
border: 1px solid #c5c5c5;
15+
border-radius: 3px;
16+
border-collapse: collapse;
17+
}
18+
19+
#div-head, .div-body {
20+
display: table-row;
21+
}
22+
23+
#div-head div {
24+
font-weight: bold;
25+
}
26+
27+
#div-head div, .div-body div {
28+
display: table-cell;
29+
border: 1px solid #c5c5c5;
30+
text-align: left;
31+
padding: 8px;
32+
}
33+
34+
/*Hide the Priority Column*/
35+
#div-input .priority {
36+
display: none;
37+
}
38+
39+
table {
40+
border: 1px solid #c5c5c5;
41+
border-radius: 3px;
42+
border-collapse: collapse;
43+
}
44+
45+
td, th {
46+
border: 1px solid #c5c5c5;
47+
text-align: left;
48+
padding: 8px;
49+
}
50+
51+
/*Controls the style for subscripts used for P*/
52+
.sub {
53+
vertical-align: sub;
54+
font-size: xx-small;
55+
}
56+
57+
.p {
58+
margin-top: 5px;
59+
vertical-align: middle;
60+
text-align: center;
61+
}
62+
63+
.lower {
64+
margin-top: 9px;
65+
margin-left: -5px;
66+
/* margin-left: -0.5em;*/
67+
}
68+
69+
/*Fixes the zero on the bottom left corner of the Gantt Chart*/
70+
#gantt > div:nth-child(1) > div.lower {
71+
margin-left: -2.5px;
72+
/* color: red;*/
73+
}
74+
75+
/************************* Styles for the Gantt Chart *************************/
76+
77+
#gantt {
78+
border: solid #c5c5c5 1px;
79+
border-radius: 3px;
80+
background-color: #f6f6f6;
81+
height: 30px;
82+
display: block;
83+
position: absolute;
84+
left: 0%;
85+
width: calc(95% - 2px);
86+
margin-left: 2.5%; /*Center the chart*/
87+
}
88+
89+
.gantt-cell {
90+
border-left: solid #c5c5c5 1px;
91+
display: inline-block;
92+
position: absolute;
93+
height: inherit;
94+
}
95+
96+
.gantt-cell:first-child {
97+
border-left: none;
98+
}

0 commit comments

Comments
 (0)