-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (109 loc) · 2.59 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
color: #333;
display: flex;
justify-content: center;
align-items: flex-start; /* Change to flex-start to allow scrolling */
height: auto; /* Change to auto */
min-height: 100vh; /* Ensure minimum height */
overflow-y: auto; /* Allow vertical scrolling */
}
.container {
background-color: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
}
h1, h2 {
text-align: center;
margin-bottom: 20px;
color: #34495e;
}
.gpa-section, .overall-cgpa-section, .feedback-section {
margin-bottom: 30px;
}
/* Subject input field layout */
.subject-container {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.subject-container input, .subject-container select {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
width: 48%; /* Make input and select field width 48% each */
}
button {
background-color: #3498db;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
transition: background-color 0.3s ease ;
}
button:hover {
background-color: #2980b9;
}
p {
font-size: 18px;
margin-top: 15px;
color: #2c3e50;
}
/* GPA and credit inputs layout */
.gpa-input, .credit-input {
width: calc(48% - 10px);
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
margin-right: 10px;
}
.credit-input {
margin-left: 10px; /* Add margin to separate from GPA input field */
}
/* Delete button style */
.delete-button {
background-color: #e53935;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
margin-left: 10px; /* To position next to input fields */
}
.delete-button:hover {
background-color: #d32f2f;
}
.feedback-section {
margin-top: 20px;
}
.feedback-item {
display: flex;
justify-content: space-between;
background-color: #e3f2fd;
border: 1px solid #90caf9;
border-radius: 5px;
padding: 10px;
margin-top: 5px;
}
/* Adjustments for responsive layout */
@media (max-width: 768px) {
.container {
padding: 15px;
width: 90%;
}
.subject-container input, .subject-container select {
width: 45%;
}
}