Skip to content

Commit 2352ac6

Browse files
authored
chore: Integrate custom-styles shortcode in the theme (#41)
* fix: lint issues * fix: add custom-styles to theme
1 parent 83c5e20 commit 2352ac6

File tree

1 file changed

+79
-34
lines changed

1 file changed

+79
-34
lines changed

assets/css/f5-hugo.css

Lines changed: 79 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ ol > li > ol {
124124
box-sizing: border-box;
125125
border-radius: 4px;
126126
height: 100%;
127-
}
128-
129-
.saas-card {
127+
}
128+
129+
.saas-card {
130130
display: flex;
131131
}
132132

@@ -162,22 +162,22 @@ h3.saas-title {
162162
}
163163

164164

165-
a.products-card {
165+
a.products-card {
166166
display: block;
167167
transition: transform 150ms ease-in-out;
168168
color: #000;
169-
}
170-
171-
a.products-card:hover {
169+
}
170+
171+
a.products-card:hover {
172172
opacity: 1;
173173
/* transform: scale(1.03); */
174174
box-shadow: 0px 5px 10px 0px #4856650F;
175175
box-shadow: 0px 12px 24px 0px #48566533;
176-
}
177-
178-
.card-img {
176+
}
177+
178+
.card-img {
179179
background-repeat: no-repeat;
180-
}
180+
}
181181

182182
.card-text-placeholder {
183183
min-height: 35px;
@@ -402,7 +402,7 @@ footer a:hover,
402402
#footer .site-info.footer-text a,
403403
#footer .site-info.footer-text a:active,
404404
#footer .site-info.footer-text a:hover {
405-
color: #CCCCCC;
405+
color: #CCCCCC;
406406
}
407407

408408
.footer-text,
@@ -427,10 +427,10 @@ footer a:hover,
427427
}
428428

429429
.footer-head {
430-
font-weight: 700;
431-
color: #CCCCCC;
432-
font-size: 14px;
433-
line-height: 20px;
430+
font-weight: 700;
431+
color: #CCCCCC;
432+
font-size: 14px;
433+
line-height: 20px;
434434
}
435435

436436
.nginx-logo-footer {
@@ -704,7 +704,7 @@ redoc {
704704
}
705705

706706
div pre>code {
707-
white-space: pre;
707+
white-space: pre;
708708
}
709709

710710
.content {
@@ -773,6 +773,7 @@ pre {
773773
-moz-tab-size: 4;
774774
-o-tab-size: 4;
775775
border-radius: 4px;
776+
white-space: pre-wrap;
776777
}
777778

778779
pre.chroma {
@@ -793,11 +794,11 @@ code {
793794
background: #f1f1f1;
794795
border-radius: 4px;
795796
}
796-
797+
797798
a>code:hover {
798799
color: #11BD8D;
799800
}
800-
801+
801802
.min-page-height {
802803
min-height: 100vh;
803804
}
@@ -1000,7 +1001,6 @@ main a:hover {
10001001
}
10011002

10021003
.l3, .l3 > a {
1003-
10041004
padding-left: 15px;
10051005
font-weight: normal;
10061006
line-height: 20px;
@@ -1058,7 +1058,6 @@ nav#TableOfContents > ul:not(:first-child) {
10581058

10591059
}
10601060

1061-
10621061
#sidebar.content > ul > li.nginx-toc-link.has-subnav:before {
10631062
content: "3";
10641063
font-family: "nginx-font" !important;
@@ -1081,10 +1080,10 @@ nav#TableOfContents > ul:not(:first-child) {
10811080

10821081
a[aria-expanded=true] .fa-chevron-right {
10831082
display: none;
1084-
}
1085-
a[aria-expanded=false] .fa-chevron-down {
1083+
}
1084+
a[aria-expanded=false] .fa-chevron-down {
10861085
display: none;
1087-
}
1086+
}
10881087

10891088
a.headerlink {
10901089
font-size: 2rem;
@@ -1097,6 +1096,53 @@ a.headerlink:hover {
10971096
opacity: 100%;
10981097
}
10991098

1099+
/* custom-styles shortcode additions */
1100+
h2 {
1101+
margin-top: 30px;
1102+
margin-bottom: 10px;
1103+
}
1104+
1105+
main h3 {
1106+
margin-top: 30px;
1107+
margin-bottom: 10px;
1108+
font-weight: 300;
1109+
font-size: 1.8em;
1110+
}
1111+
1112+
main h4 {
1113+
margin-top: 20px;
1114+
font-size: 1.5em;
1115+
font-weight: 300;
1116+
}
1117+
1118+
h5 {
1119+
margin-top: 30px;
1120+
}
1121+
1122+
hr {
1123+
margin-top: 40px;
1124+
margin-bottom: 20px;
1125+
}
1126+
1127+
td hr {
1128+
margin-top: 10px;
1129+
margin-bottom: 10px;
1130+
}
1131+
1132+
summary {
1133+
margin-bottom: 20px;
1134+
margin-top: 20px;
1135+
font-weight: 300;
1136+
font-size: 15px;
1137+
color: green;
1138+
}
1139+
1140+
.fa-circle-check {
1141+
color: green;
1142+
}
1143+
1144+
/* end custom-styles shortcode additions */
1145+
11001146
/* credit:
11011147
Randy_Lough
11021148
https://discourse.gohugo.io/t/bootstrap-4-pagination-some-added-functionality/11393
@@ -1131,25 +1177,24 @@ a.headerlink:hover {
11311177
}
11321178

11331179
/* style all input elements with a required attribute */
1134-
1135-
/**
1180+
/**
11361181
* style input elements that have a required
11371182
* attribute and a focus state
11381183
*/
1139-
input:required:focus,
1140-
textarea:required:focus {
1184+
input:required:focus,
1185+
textarea:required:focus {
11411186
border: .25px solid red;
11421187
outline: none;
1143-
}
1144-
1145-
/**
1188+
}
1189+
1190+
/**
11461191
* style input elements that have a required
11471192
* attribute and a hover state
11481193
*/
1149-
input:required:hover,
1150-
textarea:required:hover {
1194+
input:required:hover,
1195+
textarea:required:hover {
11511196
opacity: 1;
1152-
}
1197+
}
11531198

11541199
.btn-outline-success:hover {
11551200
background-color: var(--nginx-green);

0 commit comments

Comments
 (0)