BraydenMoore commited on
Commit
4eb20e1
·
1 Parent(s): 992687a

Update styling

Browse files
Files changed (1) hide show
  1. web/static/styles.css +31 -80
web/static/styles.css CHANGED
@@ -1,15 +1,11 @@
1
  body {
2
  font-family: 'Helvetica';
3
- margin-top: 100px;
4
- margin-left: 100px;
5
- margin-right: 100px;
6
  padding: 0;
7
  }
8
 
9
  .header {
10
- margin-top: 40px;
11
- margin-bottom: 20px;
12
- color: #000000;
13
  position: absolute;
14
  text-align: center;
15
  top: 40px;
@@ -19,35 +15,31 @@ body {
19
 
20
  .container {
21
  margin-top: 120px;
22
- height: auto;
23
- top: 100px;
24
  display: flex;
25
- justify-content: space-around;
26
  padding: 20px;
27
- position: relative;
28
  align-items: stretch;
29
  }
30
 
 
 
 
 
 
31
  .left-container {
32
  width: 52%;
33
- padding: 20px;
34
  text-align: center;
35
- align-items: center;
36
- align-content: center;
37
  }
38
 
39
  .right-container {
40
- margin-left:-2px;
41
  width: 48%;
42
- padding: 20px;
43
- border: 2px solid #000000;
44
- text-align: left;
45
  }
46
 
47
  .dropzone {
48
  width: 52%;
49
  min-height: 500px;
50
- border: 2px solid #000000;
51
  display: flex;
52
  justify-content: center;
53
  align-items: center;
@@ -58,10 +50,9 @@ body {
58
  max-width: 100%;
59
  max-height: 200px;
60
  display: none;
61
- align-items: center;
62
  }
63
 
64
- .github-container {
65
  display: flex;
66
  justify-content: center;
67
  margin-top: 100px;
@@ -69,98 +60,58 @@ body {
69
 
70
  .github-container a {
71
  display: flex;
72
- color:#000000;
73
- align-items: center;
74
  }
75
 
76
- .feature-select {
77
- display: flex;
78
- justify-content: center;
79
- margin-top: 10px;
80
- }
81
-
82
- /* The container for the predicted images */
83
  #predicted-images {
84
  display: grid;
85
- row-gap: 1%;
86
- column-gap: 1%;
87
- width: 100%;
88
  grid-template-columns: repeat(3, 1fr);
89
- grid-template-rows: repeat(3, fr);
90
- position: relative; /* Set the container as a relative positioning context */
91
  }
92
 
93
- /* The predicted image */
94
  #predicted-images img {
95
  width: 100%;
96
- height: auto;
97
- display: block;
98
- align-items: center;
 
 
 
99
  }
100
 
101
- /* The tooltip */
102
  .image-tooltip {
103
  position: absolute;
104
- bottom: 100%; /* Position the tooltip above the image */
105
- left: 50%; /* Center the tooltip horizontally */
106
- transform: translate(0%, -60%); /* Center both horizontally and vertically */
107
  background-color: rgba(0, 0, 0, 0.6);
108
- padding-left: 10px;
109
- padding-right: 10px;
110
- padding-top: 10px;
111
- padding-bottom: 20px;
112
  color: white;
113
  font-size: 12px;
114
  pointer-events: none;
115
- opacity: 0; /* Initially set the tooltip to be transparent */
116
- }
117
-
118
- /* Apply the hover effect */
119
- #predicted-images img {
120
- /* Set initial transition properties */
121
- transition: all 0.3s ease-in-out;
122
- transform: scale(1); /* Set the initial scale to 1 (normal size) */
123
- }
124
-
125
- #predicted-images img:hover {
126
- filter: brightness(70%);
127
- transform: scale(1.07); /* Scale the image up to 1.1 times its original size on hover */
128
  }
129
 
130
- /* Show the tooltip on image hover */
131
  #predicted-images .image-container:hover .image-tooltip {
132
- opacity: 1; /* Make the tooltip visible on image hover */
133
- visibility: visible; /* Show the tooltip on image hover */
134
  }
135
 
136
- /* The caption */
137
  .image-caption {
138
  bottom: 0;
139
  left: 0;
140
- width: auto;
141
- gap: 0%;
142
  padding: 10px;
143
- align-items: center;
144
- text-decoration: none;
145
- font-size: 14px;
146
  text-align: center;
147
- font-weight: normal;
148
- pointer-events: none; /* Prevent caption from blocking clicks */
149
- }
150
-
151
- .image-species {
152
- opacity: 0;
153
  }
154
 
155
  #predicted-images a {
156
  color: #4e4e4e;
157
- text-decoration: none;
158
- font-weight: normal;
159
  }
160
 
161
- #predicted-images > div > a:hover .image-caption{
162
- color: #000000;
163
- font-size: 14px;
164
  transition: 0.5s;
165
  }
166
-
 
1
  body {
2
  font-family: 'Helvetica';
3
+ margin: 100px 100px 0;
 
 
4
  padding: 0;
5
  }
6
 
7
  .header {
8
+ color: #000;
 
 
9
  position: absolute;
10
  text-align: center;
11
  top: 40px;
 
15
 
16
  .container {
17
  margin-top: 120px;
 
 
18
  display: flex;
19
+ justify-content: space-between;
20
  padding: 20px;
 
21
  align-items: stretch;
22
  }
23
 
24
+ .left-container, .right-container, .dropzone {
25
+ padding: 20px;
26
+ box-sizing: border-box; /* Include padding and border in the element's total width and height */
27
+ }
28
+
29
  .left-container {
30
  width: 52%;
 
31
  text-align: center;
 
 
32
  }
33
 
34
  .right-container {
 
35
  width: 48%;
36
+ border: 2px solid #000;
 
 
37
  }
38
 
39
  .dropzone {
40
  width: 52%;
41
  min-height: 500px;
42
+ border: 2px solid #000;
43
  display: flex;
44
  justify-content: center;
45
  align-items: center;
 
50
  max-width: 100%;
51
  max-height: 200px;
52
  display: none;
 
53
  }
54
 
55
+ .github-container, .feature-select {
56
  display: flex;
57
  justify-content: center;
58
  margin-top: 100px;
 
60
 
61
  .github-container a {
62
  display: flex;
63
+ color: #000;
 
64
  }
65
 
 
 
 
 
 
 
 
66
  #predicted-images {
67
  display: grid;
68
+ gap: 1%;
 
 
69
  grid-template-columns: repeat(3, 1fr);
 
 
70
  }
71
 
 
72
  #predicted-images img {
73
  width: 100%;
74
+ transition: all 0.3s ease-in-out;
75
+ }
76
+
77
+ #predicted-images img:hover {
78
+ filter: brightness(70%);
79
+ transform: scale(1.07);
80
  }
81
 
 
82
  .image-tooltip {
83
  position: absolute;
84
+ bottom: 100%;
85
+ left: 50%;
86
+ transform: translate(-50%, -60%);
87
  background-color: rgba(0, 0, 0, 0.6);
88
+ padding: 10px;
 
 
 
89
  color: white;
90
  font-size: 12px;
91
  pointer-events: none;
92
+ opacity: 0;
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
94
 
 
95
  #predicted-images .image-container:hover .image-tooltip {
96
+ opacity: 1;
97
+ visibility: visible;
98
  }
99
 
 
100
  .image-caption {
101
  bottom: 0;
102
  left: 0;
 
 
103
  padding: 10px;
 
 
 
104
  text-align: center;
105
+ font-size: 14px;
106
+ pointer-events: none;
 
 
 
 
107
  }
108
 
109
  #predicted-images a {
110
  color: #4e4e4e;
111
+ text-decoration: none;
 
112
  }
113
 
114
+ #predicted-images > div > a:hover .image-caption {
115
+ color: #000;
 
116
  transition: 0.5s;
117
  }