Renamed attract-form to attract-box, and added with-status class.
The with-status class enables the status-coloured thick border at the top. The rename from 'form' to 'box' was made to allow non-form contents too.
This commit is contained in:
@@ -113,10 +113,7 @@
|
|||||||
opacity: .8
|
opacity: .8
|
||||||
transform: translate(-50%, -50%) scale(1.3)
|
transform: translate(-50%, -50%) scale(1.3)
|
||||||
|
|
||||||
.attract-form span.shot_id
|
.attract-box
|
||||||
float: right
|
|
||||||
|
|
||||||
.attract-form
|
|
||||||
.item-id
|
.item-id
|
||||||
padding: 8px
|
padding: 8px
|
||||||
margin-left: 10px
|
margin-left: 10px
|
||||||
|
@@ -1,10 +1,11 @@
|
|||||||
.attract-form
|
.attract-box
|
||||||
margin: 10px
|
margin: 10px
|
||||||
padding: 0 10px 10px
|
padding: 0 10px 10px
|
||||||
+container-box
|
+container-box
|
||||||
|
|
||||||
border-top: thick solid $color-background-dark
|
&.with-status
|
||||||
@include status-color-property(border-top-color, '', 'dark')
|
border-top: thick solid $color-background-dark
|
||||||
|
@include status-color-property(border-top-color, '', 'dark')
|
||||||
|
|
||||||
.item-name
|
.item-name
|
||||||
font-size: 1.6em
|
font-size: 1.6em
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.attract-form.shot(class="status-{{ shot.properties.status }}")
|
.attract-box.shot.with-status(class="status-{{ shot.properties.status }}")
|
||||||
form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')")
|
form#shot_form(onsubmit="return shot_save('{{shot._id}}', '{{ url_for('attract.shots.perproject.save', project_url=project['url'], shot_id=shot._id) }}')")
|
||||||
input(type='hidden',name='_etag',value='{{ shot._etag }}')
|
input(type='hidden',name='_etag',value='{{ shot._etag }}')
|
||||||
.input-transparent-group
|
.input-transparent-group
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.attract-form.task(
|
.attract-box.task.with-status(
|
||||||
class="status-{{ task.properties.status }}")
|
class="status-{{ task.properties.status }}")
|
||||||
form#task_form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')")
|
form#task_form(onsubmit="return task_save('{{task._id}}', '{{ url_for('attract.tasks.perproject.save', project_url=project['url'], task_id=task._id) }}')")
|
||||||
input(type='hidden',name='_etag',value='{{ task._etag }}')
|
input(type='hidden',name='_etag',value='{{ task._etag }}')
|
||||||
|
Reference in New Issue
Block a user