Make entire rows clickable on directive page's table

This commit is contained in:
Francis Lavoie 2021-08-26 17:31:38 -04:00
parent 0891b1675e
commit 1dedc30596
No known key found for this signature in database
GPG key ID: 29B92EA7430C3C62

View file

@ -2,10 +2,37 @@
title: Caddyfile Directives title: Caddyfile Directives
--- ---
<style>
#directive-table table {
margin: 0 auto;
overflow: hidden;
}
#directive-table tr:hover {
background: rgba(0, 0, 0, 10%);
}
#directive-table tr td:first-child {
position: relative;
}
#directive-table a:before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
display: block;
width: 100vw;
}
</style>
# Caddyfile Directives # Caddyfile Directives
The following directives come standard with Caddy, and can be used in the HTTP Caddyfile: The following directives come standard with Caddy, and can be used in the HTTP Caddyfile:
<div id="directive-table">
Directive | Description Directive | Description
----------|------------ ----------|------------
**[abort](/docs/caddyfile/directives/abort)** | Aborts the HTTP request **[abort](/docs/caddyfile/directives/abort)** | Aborts the HTTP request
@ -38,6 +65,7 @@ Directive | Description
**[try_files](/docs/caddyfile/directives/try_files)** | Rewrite that depends on file existence **[try_files](/docs/caddyfile/directives/try_files)** | Rewrite that depends on file existence
**[uri](/docs/caddyfile/directives/uri)** | Manipulate the URI **[uri](/docs/caddyfile/directives/uri)** | Manipulate the URI
</div>
## Syntax ## Syntax