-
Notifications
You must be signed in to change notification settings - Fork 266
/
site.css
125 lines (110 loc) · 2.39 KB
/
site.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
/* This file should be reviewed. It's not optimal, but it works for now. */
.navbar {
display: list-item;
background: #1e0e40;
}
.dark { color: #1e0e40; }
.fuscia { color: #e91e63; }
.dark-bg { background: #1e0e40; }
.btn-primary { background: #e91e63; border: 1px #e91e63 solid;}
.btn-primary:hover { background: #1e0e40; border: 1px #1e0e40 solid;}
.page-item.active .page-link {
background: #e91e63;
border-color: #e91e63;
}
.page-link:focus {
box-shadow: 0 0 0 0.2rem #e9e9e9;
}
a, .page-link, .page-link:hover {
color: #e91e63;
}
a:hover {
color: #1e0e40;
}
/* Highlighting rules for nav menu items */
li.nav-item {
margin: 1rem 0 0 0;
}
.nav-item a {
display: inline-block;
padding: 2rem;
}
.nav-item a.active,
.nav-item a.active:hover,
.nav-item a.active:focus {
background-color: #e91e63;
color: white;
text-decoration: underline;
}
.nav-item a,
.nav-item a:hover,
.nav-item a:focus {
color: white;
}
/* Keep the nav menu independent of scrolling and on top of other items */
.main-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1;
}
.menu-icon {
min-width: 30px;
}
.trilon-logo {
max-width: 600px;
height: auto;
}
.trilon-mini {
max-width: 300px;
height: auto;
}
@media (max-width: 767px) {
/* On small screens, the nav menu spans the full width of the screen. Leave a space for it. */
body {
padding-top: 50px;
}
}
@media (min-width: 768px) {
/* On small screens, convert the nav menu to a vertical sidebar */
.main-nav {
height: 100%;
width: calc(25% - 20px);
}
.main-nav .navbar {
border-radius: 0px;
border-width: 0px;
height: 100%;
}
.navbar-expand-md .navbar-nav {
flex-direction: column;
}
.navbar-header {
float: none;
}
.navbar-collapse {
border-top: 1px solid #444;
padding: 0px;
}
.navbar-collapse ul {
float: none;
}
.nav-item {
float: none;
font-size: 15px;
margin: 6px;
}
.nav-item a {
padding: 10px 16px;
border-radius: 4px;
color: white;
}
.navbar a {
/* If a menu item's text is too long, truncate it */
width: 95%; /* Bug to fix here. Width 100% overflow. */
white-space: nowrap;
/* overflow: hidden; */
text-overflow: ellipsis;
}
}