Changes for page Academy

Last modified by Erik Bakker on 2024/09/24 16:12

From version 36.1
edited by Erik Bakker
on 2022/04/21 15:52
Change comment: Added object
To version 41.2
edited by Erik Bakker
on 2022/04/21 16:08
Change comment: Added object

Summary

Details

XWiki.GadgetClass[1]
content
... ... @@ -2,7 +2,7 @@
2 2  <!DOCTYPE html>
3 3  <html>
4 4  <head>
5 -<meta name="viewport" content="width=device-width, initial-scale=1">
5 +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
6 6  <style>
7 7  * {
8 8   box-sizing: border-box;
... ... @@ -11,31 +11,33 @@
11 11  /* Create two equal columns that floats next to each other */
12 12  .column {
13 13   float: left;
14 - width: 50%;
14 + width: 50px;
15 15   padding: 10px;
16 - height: 20px; /* Should be removed. Only for demonstration */
17 17  }
18 18  
19 -/* Clear floats after the columns */
20 -.row:after {
21 - content: "";
22 - display: table;
23 - clear: both;
18 +/* Style the buttons */
19 +.btn {
20 + border: none;
21 + outline: none;
22 + padding: 12px 16px;
23 + background-color: #f1f1f1;
24 + cursor: pointer;
24 24  }
25 25  
26 -/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
27 -@media screen and (max-width: 10px) {
28 - .column {
29 - width: 100%;
30 - }
27 +.btn:hover {
28 + background-color: #ddd;
31 31  }
30 +
31 +.btn.active {
32 + background-color: #666;
33 + color: white;
34 +}
32 32  </style>
33 33  </head>
34 34  <body>
35 35  
36 -<h2>Responsive Two Column Layout</h2>
37 -<p>Resize the browser window to see the responsive effect (the columns will stack on top of each other instead of floating next to each other, when the screen is less than 600px wide).</p>
38 38  
40 +
39 39  <div class="row">
40 40   <div class="column" style="background-color:#aaa;">
41 41   <h2>Column 1</h2>
... ... @@ -46,6 +46,21 @@
46 46   <p>Some text..</p>
47 47   </div>
48 48  </div>
51 +
52 +<div class="row">
53 + <div class="column" style="background-color:#ccc;">
54 + <h2>Column 3</h2>
55 + <p>Some text..</p>
56 + </div>
57 + <div class="column" style="background-color:#ddd;">
58 + <h2>Column 4</h2>
59 + <p>Some text..</p>
60 + </div>
61 +</div>
62 +
63 +
64 +
49 49  </body>
50 50  </html>
67 +
51 51  {{/html}}
XWiki.GadgetClass[2]
content
... ... @@ -1,0 +1,1 @@
1 +{{container layoutStyle="columns"}}{{/container}}
position
... ... @@ -1,0 +1,1 @@
1 +1, 3
title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('rendering.macro.container.name')