Skip to content

Commit bda1868

Browse files
committedJul 30, 2021
Minor CSS improvements
1 parent 568a945 commit bda1868

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
 

‎src/Giraffe.Website/Assets/Private/main.css

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
2+
font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
33
color: #333;
44
-ms-word-wrap: break-word;
55
word-wrap: break-word;
@@ -8,7 +8,7 @@ body {
88

99
header, main, nav, footer {
1010
margin: 0 auto;
11-
max-width: 800px;
11+
max-width: 900px;
1212
padding: 10px;
1313
}
1414

@@ -112,8 +112,9 @@ ul li a {
112112
nav {
113113
display: flex;
114114
justify-content: space-around;
115-
padding: 0;
115+
padding: 0 0 1em 0;
116116
text-align: center;
117+
border-bottom: 1px solid #f1f1f1;
117118
}
118119

119120
nav ul {
@@ -131,7 +132,7 @@ nav a {
131132
font-size: .9em;
132133
padding-bottom: 3px;
133134
text-transform: uppercase;
134-
color: #825e34 !important;
135+
color: #825e34cc !important;
135136
font-weight: 500;
136137
}
137138

‎src/Giraffe.Website/Giraffe.Website.fsproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5+
<RollForward>Major</RollForward>
56
<EnableDefaultContentItems>false</EnableDefaultContentItems>
67
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
78
</PropertyGroup>
89

910
<ItemGroup>
10-
<PackageReference Include="Giraffe" Version="5.0.0-rc-6" />
11+
<PackageReference Include="Giraffe" Version="5.0.0" />
1112
<PackageReference Include="Giraffe.ViewEngine" Version="1.3.*" />
1213
<PackageReference Include="Ply" Version="0.3.*" />
1314
<PackageReference Include="Logfella" Version="7.1.*" />

‎src/Giraffe.Website/Program.fs

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ module Views =
136136
openGraph "image:width" "1094"
137137
openGraph "image:height" "729"
138138

139+
// Google Fonts
140+
link [ _rel "preconnect"; _href "https://fonts.gstatic.com" ]
141+
link [ _href "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"; _rel "stylesheet" ]
142+
139143
// Minified & bundled CSS
140144
css (Url.create minifiedCss.Path)
141145

0 commit comments

Comments
 (0)