Skip to content

Commit 292b9ed

Browse files
committed
UI cleaning
1 parent 0f8e4e9 commit 292b9ed

File tree

4 files changed

+44
-105
lines changed

4 files changed

+44
-105
lines changed

static/css/example.css

Lines changed: 22 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,3 @@
1-
body {
2-
background-color: #942A57;
3-
margin: 0 auto;
4-
max-width: 760px;
5-
}
6-
7-
html, body {
8-
-webkit-box-sizing: border-box;
9-
-moz-box-sizing: border-box;
10-
box-sizing: border-box;
11-
}
12-
13-
*, *:before, *:after {
14-
-webkit-box-sizing: inherit;
15-
-moz-box-sizing: inherit;
16-
box-sizing: inherit;
17-
}
18-
19-
body, input, button {
20-
font-family: Georgia, Helvetica;
21-
font-size: 17px;
22-
color: #ecf0f1;
23-
}
24-
25-
h1 {
26-
text-align: center;
27-
background-color: #AC5C7E;
28-
margin-top: 20px;
29-
margin-bottom: 0;
30-
padding: 10px;
31-
}
32-
33-
h3 {
34-
background-color: rgba(255, 255, 255, 0.2);
35-
border-bottom: 5px solid #A13462;
36-
text-align: center;
37-
padding: 10px;
38-
}
39-
40-
h3 div {
41-
margin-bottom: 10px;
42-
}
431

442
.tagline {
453
margin-top: 0;
@@ -53,14 +11,6 @@ h3 div {
5311
border-bottom: 5px solid #c00;
5412
}
5513

56-
a {
57-
font-weight: bold;
58-
}
59-
a,
60-
a:hover {
61-
color: #ecf0f1;
62-
}
63-
6414
pre {
6515
white-space: pre-wrap;
6616
}
@@ -93,33 +43,11 @@ ul {
9343
background-color: rgba(255, 255, 255, 0.2);
9444
margin: 50px 0;
9545
padding: 20px;
96-
}
97-
98-
input {
99-
border: none;
100-
outline: none;
101-
background-color: #ecf0f1;
102-
padding: 10px;
103-
color: #942A57;
104-
border: 0;
105-
margin: 5px 0;
106-
display: block;
107-
width: 100%;
108-
}
109-
110-
button {
111-
background-color: #ecf0f1;
112-
color: #942A57;
113-
border: 0;
114-
padding: 18px 12px;
115-
margin-left: 6px;
116-
cursor: pointer;
117-
outline: none;
118-
}
119-
120-
button:hover {
121-
background-color: #e74c3c;
122-
color: #ecf0f1;
46+
overflow-x: scroll;;
47+
overflow-y: hidden;
48+
white-space: nowrap;
49+
width: 1600px;
50+
height: 520px;
12351
}
12452

12553
.gh-fork {
@@ -175,3 +103,20 @@ button:hover {
175103
background-color: rgba(0, 0, 0, 0.4);
176104
cursor: move;
177105
}
106+
107+
.task-box {
108+
top: 0px;
109+
display: inline-block;
110+
min-width: 300px;
111+
height: 500px;
112+
overflow-y: scroll;
113+
}
114+
115+
.task-card {
116+
width: 250px;
117+
}
118+
119+
.add-task {
120+
width: 300px;
121+
bottom: 10px;
122+
}

static/js/app.module.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
'use strict';
33

44
angular.module('app', [
5-
/*
6-
* Order is not important. Angular makes a
7-
* pass to register all of the modules listed
8-
* and then when app.dashboard tries to use app.data,
9-
* it's components are available.
10-
*/
11-
12-
/*
13-
* Everybody has access to these.
14-
* We could place these under every feature area,
15-
* but this is easier to maintain.
16-
*/
175
'app.controller',
186
angularDragula(angular),
197
]);

static/js/controller.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Kanban.$inject = ['$scope'];
99

1010
function Kanban($scope) {
11-
11+
1212
$scope.groups = [
1313
{
1414
name: 'Group A',
@@ -17,7 +17,23 @@
1717
{
1818
name: 'Group B',
1919
items: [{name: 'Item 1'},{name: 'Item 2'},{name: 'Item 3'},{name: 'Item 4'}]
20-
}
20+
},
21+
{
22+
name: 'Group B',
23+
items: [{name: 'Item 1'},{name: 'Item 2'},{name: 'Item 3'},{name: 'Item 4'}]
24+
},
25+
{
26+
name: 'Group B',
27+
items: [{name: 'Item 1'},{name: 'Item 2'},{name: 'Item 3'},{name: 'Item 4'}]
28+
},
29+
{
30+
name: 'Group B',
31+
items: [{name: 'Item 1'},{name: 'Item 2'},{name: 'Item 3'},{name: 'Item 4'}]
32+
},
33+
{
34+
name: 'Group B',
35+
items: [{name: 'Item 1'},{name: 'Item 2'},{name: 'Item 3'},{name: 'Item 4'}]
36+
},
2137
];
2238

2339

templates/home.html

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,15 @@
33
{% block content %}
44

55
<div class="container">
6-
<div class="row">
7-
<div class="jumbotron">
8-
<h1>Hello</h1>
9-
<p>You are on your Dashboard</p>
10-
</div>
11-
</div>
126
<div class='parent' ng-controller='Kanban as vm'>
13-
<label for='hy'><strong>Angular-specific example.</strong> Fancy some nested <code>ng-repeat</code>?</label>
14-
<div class='wrapper'>
15-
<div class='container' ng-repeat="group in groups" dragula="'nested-bag'" dragula-scope="$parent">
16-
<div ng-repeat='item in group.items' ng-bind='item.name' data-toggle="modal" data-target="#myModal"></div>
17-
</div>
7+
<!-- <label for='hy'><strong>Angular-specific example.</strong> Fancy some nested <code>ng-repeat</code>?</label> -->
8+
<div class="task-box" ng-repeat="group in groups" dragula="'nested-bag'" dragula-scope="$parent" >
9+
<span class="add-task">{{group.name}}</span>
10+
<div class="task-card" ng-repeat='item in group.items' ng-bind='item.name' data-toggle="modal" data-target="#myModal"></div>
1811
</div>
1912
</div>
2013
</div>
2114

22-
<!-- Trigger the modal with a button -->
23-
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
24-
2515
<!-- Modal -->
2616
<div id="myModal" class="modal fade" role="dialog">
2717
<div class="modal-dialog">

0 commit comments

Comments
 (0)