Skip to content

Commit 8d3ff97

Browse files
committed
improve styles:
- add styling rules from Common.css
1 parent cabf1d0 commit 8d3ff97

File tree

2 files changed

+132
-6
lines changed

2 files changed

+132
-6
lines changed

Diff for: context/styles/confident/confident.scss

+124-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,43 @@
1+
// hide LLM chunk templates
2+
div.chunks {
3+
display:none;
4+
}
5+
6+
// temp changes for Event Query form
7+
div#row-Query_Event-Academic_Field span.pfTokens {
8+
padding-top: 0px;
9+
padding-bottom: 0px;
10+
}
11+
12+
div.sfFieldContent p {
13+
margin: 0px !important;
14+
}
15+
16+
div#row-Query_Event-Country div.oo-ui-inputWidget {
17+
min-width: 600px !important;
18+
}
19+
20+
div#row-Query_Event-Title_Contains input.createboxInput {
21+
min-width: 600px !important;
22+
}
23+
124
// No horizontal scroll -------------------------
225
body {
326
overflow-x: hidden;
427
}
528

629
// Body
30+
body {
31+
background-color: #F2F3F3
32+
}
33+
734
#confident-content {
835
padding: 0 30px;
36+
max-width: 1400px;
37+
}
38+
39+
#confident-footer {
40+
background-color: white;
941
}
1042

1143
// First Heading --------------------------------
@@ -15,8 +47,15 @@ body.page-Main_Page h1#firstHeading {
1547
}
1648

1749
// ns-14 (Category)
18-
body.ns-14 h1#firstHeading {
19-
// display: none;
50+
body .ns-14 .firstHeading {
51+
font-size: 3rem;
52+
font-weight: bold;
53+
}
54+
55+
// Add some padding to title icons in first headings
56+
.firstHeading img {
57+
padding-bottom: 6px;
58+
opacity: 0.7;
2059
}
2160

2261
// Content Sub
@@ -26,10 +65,88 @@ div#contentSub {
2665

2766
// Lead Text ------------------------------------
2867
.lead {
29-
font-size: 1.5em;
68+
font-size: 2rem;
3069
font-weight: bold;
3170
}
3271

72+
.lead-large {
73+
font-size: 3rem;
74+
}
75+
76+
// Add some padding to title icons in search results
77+
.mw-search-result-heading img {
78+
padding-bottom: 6px;
79+
opacity: 0.7;
80+
}
81+
82+
div.use-case-tile, div.browse-tile {
83+
width:320px;
84+
padding-top: 2rem;
85+
border: none;
86+
}
87+
88+
div.use-case-nav-tile {
89+
width:120px;
90+
border: none;
91+
border-top-left-radius: 0 !important;
92+
border-top-right-radius: 0 !important;
93+
}
94+
95+
div.use-case-nav-tile-muted {
96+
opacity: 40%;
97+
font-size: 85%;
98+
}
99+
100+
div.use-case-nav-tile .card-body {
101+
color: white;
102+
padding: 0;
103+
}
104+
105+
div.use-case-tile a:link, div.use-case-tile a:visited, div.use-case-tile a:hover, div.use-case-tile a:active {
106+
color: #fff;
107+
}
108+
109+
div.use-case-nav-tile a:link, div.use-case-nav-tile a:visited, div.use-case-nav-tile a:hover, div.use-case-nav-tile a:active, div.use-case-nav-tile a.selflink {
110+
color: #fff;
111+
}
112+
113+
div.browse-tile a:link, div.browse-tile a:visited, div.browse-tile a:hover, div.browse-tile a:active {
114+
color: #fff;
115+
}
116+
117+
.bg-find {
118+
background: linear-gradient(166deg, rgba(65,86,163,1) 0%, rgba(63,188,202,1) 100%);
119+
}
120+
121+
.bg-browse {
122+
background: linear-gradient(166deg, rgba(63,188,202,1) 0%, rgba(163,62,108,1) 100%);
123+
}
124+
125+
.bg-announce {
126+
background: linear-gradient(166deg, rgba(163,62,108,1) 0%, rgba(63,81,163,1) 100%);
127+
}
128+
129+
.circle {
130+
display: inline-block;
131+
border-radius: 50%;
132+
width: 3rem;
133+
height: 3rem;
134+
background: linear-gradient(166deg, rgba(65,86,163,1) 0%, rgba(63,188,202,1) 100%);
135+
color: white;
136+
text-align: center;
137+
font-weight: bold;
138+
}
139+
140+
.g-events-this-month .filtered-filter {
141+
border: none;
142+
padding-left: 0;
143+
padding-right: 0;
144+
}
145+
146+
.g-events-this-month .filtered-filter-label {
147+
padding: 0;
148+
}
149+
33150
// Spacer ---------------------------------------
34151
.spacer {
35152
height: 2em;
@@ -51,6 +168,10 @@ div#contentSub {
51168
height: 5em;
52169
}
53170

171+
.spacer-10 {
172+
height: 10rem;
173+
}
174+
54175
// neg-margins ----------------------------------
55176
.neg-margin-row {
56177
width: 100vw;

Diff for: context/styles/confident/navbar.scss

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
// set padding for navbar
2-
body .navbar, .p-navbar {
3-
padding: 3rem 1.5rem;
1+
// set navbar color and padding
2+
body .p-navbar {
3+
background-color: white;
4+
padding-top: 3rem;
5+
padding-bottom: 3rem;
46
}
7+
58
// unset logo size not to corrupt the img size
69
body .p-navbar .navbar-brand.p-logo {
710
height: unset;
811
}
12+
913
// set the logo size by setting the img size
1014
body .p-navbar .navbar-brand img {
1115
height: 2.5rem;
1216
}
17+
1318
// Navbar items bold
1419
a.nav-link {
1520
font-weight: bold;

0 commit comments

Comments
 (0)