Création événement simplifiée et adaptée à petit écran
This commit is contained in:
parent
a9e88dd308
commit
94a719bc0d
@ -232,8 +232,8 @@ button.ws-popover-opener
|
|||||||
footer.bottom nav
|
footer.bottom nav
|
||||||
clear: both
|
clear: both
|
||||||
a
|
a
|
||||||
display: inline-block
|
|
||||||
padding: 1.8%
|
padding: 1.8%
|
||||||
|
+inline-block()
|
||||||
em.fa
|
em.fa
|
||||||
font-size: x-large
|
font-size: x-large
|
||||||
&:hover
|
&:hover
|
||||||
|
@ -174,45 +174,64 @@ aside#lug-list
|
|||||||
label
|
label
|
||||||
width: 8em
|
width: 8em
|
||||||
+inline-block()
|
+inline-block()
|
||||||
|
input, select, .select2-container ul
|
||||||
|
+border-top-left-radius(0)
|
||||||
|
+border-bottom-left-radius(0)
|
||||||
input[type=radio] + label
|
input[type=radio] + label
|
||||||
width: 20em
|
width: 20em
|
||||||
&:after
|
&:after
|
||||||
content: ''
|
content: ''
|
||||||
|
input, .select2-container ul
|
||||||
|
width: 50em
|
||||||
|
input.ws-datetime-local
|
||||||
|
width: inherit !important
|
||||||
|
|
||||||
|
.mce-tinymce
|
||||||
|
width: 50em
|
||||||
|
font-size: inherit
|
||||||
|
font-family: inherit
|
||||||
|
+inline-block()
|
||||||
|
+border-radius(0.4em)
|
||||||
|
+border-top-left-radius(0)
|
||||||
|
+border-bottom-left-radius(0)
|
||||||
|
.mce-container-body
|
||||||
|
.mce-panel.mce-first
|
||||||
|
+border-top-right-radius(0.4em)
|
||||||
|
.mce-panel.mce-last
|
||||||
|
+border-bottom-right-radius(0.4em)
|
||||||
|
|
||||||
|
.field label:before
|
||||||
|
color: gray
|
||||||
|
.field.title label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.start_time label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.end_time label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.description label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.address label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.city label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.region label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.locality label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.contact label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.submitter label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.url label
|
||||||
|
+fa-icon('')
|
||||||
|
.field.tags label
|
||||||
|
+fa-icon('')
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
text-align: center
|
text-align: center
|
||||||
input
|
input
|
||||||
font-size: x-large
|
font-size: x-large
|
||||||
|
|
||||||
.mce-tinymce
|
|
||||||
+inline-block()
|
|
||||||
|
|
||||||
.field label:before
|
|
||||||
color: gray
|
|
||||||
.field.title label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.start_time label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.end_time label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.description label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.address label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.city label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.region label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.locality label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.contact label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.submitter label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.url label
|
|
||||||
+fa-icon('')
|
|
||||||
.field.tags label
|
|
||||||
+fa-icon('')
|
|
||||||
|
|
||||||
.description, body.mce-content-body
|
.description, body.mce-content-body
|
||||||
img
|
img
|
||||||
margin-left: 1%
|
margin-left: 1%
|
||||||
|
@ -41,6 +41,6 @@ form#lug_search
|
|||||||
|
|
||||||
body.show
|
body.show
|
||||||
dl, iframe, fieldset
|
dl, iframe, fieldset
|
||||||
display: inline-block
|
|
||||||
min-width: 30em
|
min-width: 30em
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
|
+inline-block()
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
width: 40%
|
width: 40%
|
||||||
height: 60em
|
height: 60em
|
||||||
margin: 1.6em 2%
|
margin: 1.6em 2%
|
||||||
display: inline-block
|
+inline-block()
|
||||||
|
|
||||||
html.iframe #map
|
html.iframe #map
|
||||||
width: 100%
|
width: 100%
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@import compass
|
||||||
|
|
||||||
@media all and (min-width: 1600px)
|
@media all and (min-width: 1600px)
|
||||||
body
|
body
|
||||||
font-size: larger
|
font-size: larger
|
||||||
@ -68,7 +70,6 @@
|
|||||||
width: auto
|
width: auto
|
||||||
height: auto
|
height: auto
|
||||||
margin: 1px
|
margin: 1px
|
||||||
padding: 0 0.4em
|
|
||||||
display: block
|
display: block
|
||||||
min-height: 1.1em
|
min-height: 1.1em
|
||||||
border-width: 1px !important
|
border-width: 1px !important
|
||||||
@ -78,12 +79,32 @@
|
|||||||
float: right
|
float: right
|
||||||
// Enough space for tactile displays
|
// Enough space for tactile displays
|
||||||
li a, .fa-li
|
li a, .fa-li
|
||||||
padding: 0.3em 0
|
padding: 0.4em 0
|
||||||
display: inline-block
|
+inline-block()
|
||||||
|
|
||||||
aside
|
aside
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.formats, a#banner
|
.formats, a#banner
|
||||||
float: none
|
float: none
|
||||||
padding: 0.3em 0
|
padding: 0.4em 0
|
||||||
|
|
||||||
|
.events, .moderations
|
||||||
|
h2 + p, #advises, .helper
|
||||||
|
display: none
|
||||||
|
form
|
||||||
|
.field, .actions
|
||||||
|
max-width: 100%
|
||||||
|
.helper p
|
||||||
|
margin-left: 0
|
||||||
|
padding-left: 0
|
||||||
|
label
|
||||||
|
width: auto
|
||||||
|
display: block
|
||||||
|
text-align: left
|
||||||
|
margin-left: 0
|
||||||
|
input, .select2-container ul, .mce-tinymce
|
||||||
|
width: 100%
|
||||||
|
+border-bottom-left-radius(0.4em)
|
||||||
|
.select2-container ul
|
||||||
|
min-width: 20em
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@import compass
|
@import compass
|
||||||
|
|
||||||
.region_selector
|
.region_selector
|
||||||
display: inline-block
|
+inline-block()
|
||||||
h3
|
h3
|
||||||
margin: 0
|
margin: 0
|
||||||
.placeholder
|
.placeholder
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
.sessions
|
.sessions
|
||||||
form
|
form
|
||||||
margin: 1em auto
|
margin: 1em auto
|
||||||
display: inline-block
|
+inline-block()
|
||||||
.field, .actions
|
.field, .actions
|
||||||
text-align: left
|
text-align: left
|
||||||
margin: 0.5em
|
margin: 0.5em
|
||||||
@ -13,7 +13,7 @@
|
|||||||
margin: 1px 5px 1px 6.6em
|
margin: 1px 5px 1px 6.6em
|
||||||
label
|
label
|
||||||
width: 8em
|
width: 8em
|
||||||
display: inline-block
|
+inline-block()
|
||||||
&:after
|
&:after
|
||||||
content: ':'
|
content: ':'
|
||||||
/*
|
/*
|
||||||
|
@ -11,8 +11,7 @@
|
|||||||
|
|
||||||
.field.title
|
.field.title
|
||||||
= f.label :title
|
= f.label :title
|
||||||
= f.text_field :title, required: true, size: 70,
|
= f.text_field :title, required: true, placeholder: "#{t '.title_helper'}"
|
||||||
placeholder: "#{t '.title_helper'}"
|
|
||||||
.field.start_time
|
.field.start_time
|
||||||
= f.label :start_time
|
= f.label :start_time
|
||||||
= f.datetime_local_field :start_time, required: true
|
= f.datetime_local_field :start_time, required: true
|
||||||
@ -24,17 +23,17 @@
|
|||||||
:markdown
|
:markdown
|
||||||
#{t '.description_helper'}
|
#{t '.description_helper'}
|
||||||
= f.label :description
|
= f.label :description
|
||||||
= f.text_area :description, rows: 25, cols: 90
|
= f.text_area :description, rows: 25
|
||||||
|
|
||||||
.field.address
|
.field.address
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.address_helper'}
|
#{t '.address_helper'}
|
||||||
= f.label :address
|
= f.label :address
|
||||||
= f.text_field :address, size: 70
|
= f.text_field :address
|
||||||
.field.city
|
.field.city
|
||||||
= f.label :city
|
= f.label :city
|
||||||
= f.text_field :city, required: true, size: 70, list: :cities
|
= f.text_field :city, required: true, list: :cities
|
||||||
%datalist#cities
|
%datalist#cities
|
||||||
- Event.group(:city).order('count(city) desc').pluck(:city).each do |city|
|
- Event.group(:city).order('count(city) desc').pluck(:city).each do |city|
|
||||||
%option= city
|
%option= city
|
||||||
@ -52,25 +51,25 @@
|
|||||||
:markdown
|
:markdown
|
||||||
#{t '.url_helper'}
|
#{t '.url_helper'}
|
||||||
= f.label :url
|
= f.label :url
|
||||||
= f.url_field :url, required: true, size: 70, placeholder: 'Ex: http://april.org'
|
= f.url_field :url, required: true, placeholder: 'Ex: http://april.org'
|
||||||
.field.contact
|
.field.contact
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.contact_helper'}
|
#{t '.contact_helper'}
|
||||||
= f.label :contact
|
= f.label :contact
|
||||||
= f.email_field :contact, required: true, size: 70
|
= f.email_field :contact, required: true
|
||||||
.field.submitter
|
.field.submitter
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.submitter_helper'}
|
#{t '.submitter_helper'}
|
||||||
= f.label :submitter
|
= f.label :submitter
|
||||||
= f.email_field :submitter, size: 70
|
= f.email_field :submitter
|
||||||
.field.tags
|
.field.tags
|
||||||
.helper
|
.helper
|
||||||
:markdown
|
:markdown
|
||||||
#{t '.tags_helper'}
|
#{t '.tags_helper'}
|
||||||
= f.label :tags
|
= f.label :tags
|
||||||
= f.text_field :tags, size: 70
|
= f.text_field :tags
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
= f.button formaction: :preview do
|
= f.button formaction: :preview do
|
||||||
|
Loading…
Reference in New Issue
Block a user