Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit bd6dc0d

Browse files
author
matt
committed
CSS now sensible - basic layout more or less sorted for now.
1 parent d46cd99 commit bd6dc0d

File tree

2 files changed

+35
-34
lines changed

2 files changed

+35
-34
lines changed

html/css/crdlna.css

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,47 @@ body {
1111
padding : 0;
1212
}
1313

14-
.main {
14+
div.main {
15+
align-content : stretch;
16+
align-items : stretch;
17+
display : flex;
18+
flex-direction : row;
19+
justify-content : flex-start;
1520
height : 100%;
1621
width : 100%;
22+
}
1723

18-
display: flex;
19-
flex-direction: row;
20-
21-
justify-content: flex-start; /* align items in Main Axis */
22-
align-items: stretch; /* align items in Cross Axis */
23-
align-content: stretch; /* Extra space in Cross Axis */
24-
}
25-
26-
/** Device listing */
27-
div.devices {
28-
border-right : 1px solid #ccc;
29-
width : 180px;
30-
}
31-
32-
/** The right/main pane that contains a a header, main content area and footer */
33-
div.rightStack {
34-
align-items : stretch;
35-
align-content : stretch;
36-
display : flex;
37-
flex-direction: column;
38-
justify-content: flex-start;
39-
overflow : hidden;
40-
height : 100%;
41-
width : 100%;
24+
/** Device listing */
25+
div.devices {
26+
border-right : 1px solid #ccc;
27+
width : 180px;
28+
}
4229

30+
/** The right/main pane that contains a a header, main content area and footer */
31+
div.rightStack {
32+
align-items : stretch;
33+
align-content : stretch;
34+
display : flex;
35+
flex-direction : column;
36+
justify-content : flex-start;
37+
overflow : hidden;
38+
height : 100%;
39+
width : 100%;
40+
}
4341

44-
}
42+
/** Expands the "content" are whilst allowing the actual items to wrap and grow normally */
43+
div.contentItemsContainer {
44+
background-color: #eee;
45+
flex : 1;
46+
overflow-x : hidden;
47+
overflow-y : auto;
48+
}
4549

4650
/* Container for individual content items (think folder listing ) */
4751
div.contentItems {
48-
background-color: #eee;
4952
display : flex;
50-
flex : 1;
5153
flex-direction : row;
5254
flex-wrap : wrap;
53-
overflow-x : hidden;
54-
overflow-y : scroll;
5555
width : 100%;
5656
}
5757

html/window.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
<div>
2121
Header
2222
</div>
23-
24-
<div id="content" class="contentItems">
25-
26-
content
23+
<div class="contentItemsContainer">
24+
<div id="content" class="contentItems">
25+
26+
content
27+
</div>
2728
</div>
2829

2930
<div id="playback">

0 commit comments

Comments
 (0)