Comparison

plugins/mod_http_errors.lua @ 11153:e4075ca84a1a

mod_http_errors: Use a class on extra data section This CSS selector makes it awkward to add more items.
author Kim Alvefur <zash@zash.se>
date Mon, 12 Oct 2020 18:13:20 +0200
parent 10574:f70c874b7936
child 11154:dd81a318a794
comparison
equal deleted inserted replaced
11152:89162d27e1b1 11153:e4075ca84a1a
39 39
40 p { 40 p {
41 font-size : x-large 41 font-size : x-large
42 } 42 }
43 43
44 p+p { 44 p.extra {
45 font-size : large; 45 font-size : large;
46 font-family : courier 46 font-family : courier
47 } 47 }
48 </style> 48 </style>
49 </head> 49 </head>
50 <body> 50 <body>
51 <h1>{title}</h1> 51 <h1>{title}</h1>
52 <p>{message}</p> 52 <p>{message}</p>
53 <p>{extra?}</p> 53 <p class="extra">{extra?}</p>
54 </body> 54 </body>
55 </html> 55 </html>
56 ]]; 56 ]];
57 57
58 local function get_page(code, extra) 58 local function get_page(code, extra)