-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
110 lines (91 loc) · 1.93 KB
/
styles.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
/* global */
body {
background-color: black;
margin: 0;
padding: 0;
/* display: flex; */
align-items: center;
justify-content: center;
height: 100vh;
font-family: "Times New Roman", Times, serif; /* Change the font to Times New Roman */
}
h1 {
color: white;
font-size: 50px;
}
h2 {
color: white;
grid-column: span 2;
}
a {
text-decoration: none;
color: white;
font-weight: bold;
font-size: 24px;
grid-column: span 2;
}
a:hover {
text-decoration: underline;
}
/* index.html */
.main-container {
text-align: center;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.languages ul {
list-style-type: none;
padding: 0;
}
.languages li {
margin-bottom: 10px;
}
/* languages/ */
.lexicon-container {
display: grid;
grid-template-columns: 4fr 1fr;
gap: 20px;
/* flex-direction: column; */
align-items: center;
text-align: center;
}
#lexicon-list {
width: 100%;
/* max-width: 300px; */
max-height: calc(100vh - 100px);
overflow-y: auto;
/* padding: 10px; */
margin: 0 auto; /* Center the lexicon list horizontally */
display: flex;
flex-direction: column;
align-items: center; /* Center text vertically */
}
#lexicon-list div {
font-size: 18px; /* Adjust the font size as needed */
margin: 2px;
}
iframe {
width: 100%;
height: 100%;
position: sticky;
top: 0;
background-color: #fff;
}
/* convert to mobile display (height >> width) */
@media (max-width: 600px) {
.lexicon-container {
display: flex;
flex-direction: column;
/* grid-template-columns: 1fr; 1-column grid for screens less than 600px */
}
#wiktionary-frame {
height: 65vh;
}
#lexicon-list {
max-width: none; /* Remove max-width for the left column on smaller screens */
}
}