Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
GrammaColor
Commits
708d52a5
Commit
708d52a5
authored
Aug 27, 2020
by
Sylvain Coulange
Browse files
première version du prototype
parent
c7d92467
Changes
151
Hide whitespace changes
Inline
Side-by-side
.vscode/settings.json
0 → 100644
View file @
708d52a5
{
"python.pythonPath"
:
"/home/sylvain/.local/share/virtualenvs/grammacolor-70t329W_/bin/python"
}
\ No newline at end of file
Pipfile
0 → 100644
View file @
708d52a5
[[source]]
name
=
"pypi"
url
=
"https://pypi.org/simple"
verify_ssl
=
true
[dev-packages]
[packages]
django
=
"==2.1"
[requires]
python_version
=
"3.6"
Pipfile.lock
0 → 100644
View file @
708d52a5
{
"_meta"
:
{
"hash"
:
{
"sha256"
:
"3980b4c398b49fce17254cae08aa5ae01e7c65f2f184ceb8fc28a13382e222e2"
},
"pipfile-spec"
:
6
,
"requires"
:
{
"python_version"
:
"3.6"
},
"sources"
:
[
{
"name"
:
"pypi"
,
"url"
:
"https://pypi.org/simple"
,
"verify_ssl"
:
true
}
]
},
"default"
:
{
"django"
:
{
"hashes"
:
[
"sha256:7f246078d5a546f63c28fc03ce71f4d7a23677ce42109219c24c9ffb28416137"
,
"sha256:ea50d85709708621d956187c6b61d9f9ce155007b496dd914fdb35db8d790aec"
],
"index"
:
"pypi"
,
"version"
:
"==2.1"
},
"pytz"
:
{
"hashes"
:
[
"sha256:a494d53b6d39c3c6e44c3bec237336e14305e4f29bbf800b599253057fbb79ed"
,
"sha256:c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048"
],
"version"
:
"==2020.1"
}
},
"develop"
:
{}
}
assets/admin/css/autocomplete.css
0 → 100644
View file @
708d52a5
select
.admin-autocomplete
{
width
:
20em
;
}
.select2-container--admin-autocomplete.select2-container
{
min-height
:
30px
;
}
.select2-container--admin-autocomplete
.select2-selection--single
,
.select2-container--admin-autocomplete
.select2-selection--multiple
{
min-height
:
30px
;
padding
:
0
;
}
.select2-container--admin-autocomplete.select2-container--focus
.select2-selection
,
.select2-container--admin-autocomplete.select2-container--open
.select2-selection
{
border-color
:
#999
;
min-height
:
30px
;
}
.select2-container--admin-autocomplete.select2-container--focus
.select2-selection.select2-selection--single
,
.select2-container--admin-autocomplete.select2-container--open
.select2-selection.select2-selection--single
{
padding
:
0
;
}
.select2-container--admin-autocomplete.select2-container--focus
.select2-selection.select2-selection--multiple
,
.select2-container--admin-autocomplete.select2-container--open
.select2-selection.select2-selection--multiple
{
padding
:
0
;
}
.select2-container--admin-autocomplete
.select2-selection--single
{
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
}
.select2-container--admin-autocomplete
.select2-selection--single
.select2-selection__rendered
{
color
:
#444
;
line-height
:
30px
;
}
.select2-container--admin-autocomplete
.select2-selection--single
.select2-selection__clear
{
cursor
:
pointer
;
float
:
right
;
font-weight
:
bold
;
}
.select2-container--admin-autocomplete
.select2-selection--single
.select2-selection__placeholder
{
color
:
#999
;
}
.select2-container--admin-autocomplete
.select2-selection--single
.select2-selection__arrow
{
height
:
26px
;
position
:
absolute
;
top
:
1px
;
right
:
1px
;
width
:
20px
;
}
.select2-container--admin-autocomplete
.select2-selection--single
.select2-selection__arrow
b
{
border-color
:
#888
transparent
transparent
transparent
;
border-style
:
solid
;
border-width
:
5px
4px
0
4px
;
height
:
0
;
left
:
50%
;
margin-left
:
-4px
;
margin-top
:
-2px
;
position
:
absolute
;
top
:
50%
;
width
:
0
;
}
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--single
.select2-selection__clear
{
float
:
left
;
}
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--single
.select2-selection__arrow
{
left
:
1px
;
right
:
auto
;
}
.select2-container--admin-autocomplete.select2-container--disabled
.select2-selection--single
{
background-color
:
#eee
;
cursor
:
default
;
}
.select2-container--admin-autocomplete.select2-container--disabled
.select2-selection--single
.select2-selection__clear
{
display
:
none
;
}
.select2-container--admin-autocomplete.select2-container--open
.select2-selection--single
.select2-selection__arrow
b
{
border-color
:
transparent
transparent
#888
transparent
;
border-width
:
0
4px
5px
4px
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
{
background-color
:
white
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
cursor
:
text
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__rendered
{
box-sizing
:
border-box
;
list-style
:
none
;
margin
:
0
;
padding
:
0
5px
;
width
:
100%
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__rendered
li
{
list-style
:
none
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__placeholder
{
color
:
#999
;
margin-top
:
5px
;
float
:
left
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__clear
{
cursor
:
pointer
;
float
:
right
;
font-weight
:
bold
;
margin
:
5px
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__choice
{
background-color
:
#e4e4e4
;
border
:
1px
solid
#ccc
;
border-radius
:
4px
;
cursor
:
default
;
float
:
left
;
margin-right
:
5px
;
margin-top
:
5px
;
padding
:
0
5px
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__choice__remove
{
color
:
#999
;
cursor
:
pointer
;
display
:
inline-block
;
font-weight
:
bold
;
margin-right
:
2px
;
}
.select2-container--admin-autocomplete
.select2-selection--multiple
.select2-selection__choice__remove
:hover
{
color
:
#333
;
}
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--multiple
.select2-selection__choice
,
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--multiple
.select2-selection__placeholder
,
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--multiple
.select2-search--inline
{
float
:
right
;
}
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--multiple
.select2-selection__choice
{
margin-left
:
5px
;
margin-right
:
auto
;
}
.select2-container--admin-autocomplete
[
dir
=
"rtl"
]
.select2-selection--multiple
.select2-selection__choice__remove
{
margin-left
:
2px
;
margin-right
:
auto
;
}
.select2-container--admin-autocomplete.select2-container--focus
.select2-selection--multiple
{
border
:
solid
#999
1px
;
outline
:
0
;
}
.select2-container--admin-autocomplete.select2-container--disabled
.select2-selection--multiple
{
background-color
:
#eee
;
cursor
:
default
;
}
.select2-container--admin-autocomplete.select2-container--disabled
.select2-selection__choice__remove
{
display
:
none
;
}
.select2-container--admin-autocomplete.select2-container--open.select2-container--above
.select2-selection--single
,
.select2-container--admin-autocomplete.select2-container--open.select2-container--above
.select2-selection--multiple
{
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
}
.select2-container--admin-autocomplete.select2-container--open.select2-container--below
.select2-selection--single
,
.select2-container--admin-autocomplete.select2-container--open.select2-container--below
.select2-selection--multiple
{
border-bottom-left-radius
:
0
;
border-bottom-right-radius
:
0
;
}
.select2-container--admin-autocomplete
.select2-search--dropdown
.select2-search__field
{
border
:
1px
solid
#ccc
;
}
.select2-container--admin-autocomplete
.select2-search--inline
.select2-search__field
{
background
:
transparent
;
border
:
none
;
outline
:
0
;
box-shadow
:
none
;
-webkit-appearance
:
textfield
;
}
.select2-container--admin-autocomplete
.select2-results
>
.select2-results__options
{
max-height
:
200px
;
overflow-y
:
auto
;
}
.select2-container--admin-autocomplete
.select2-results__option
[
role
=
group
]
{
padding
:
0
;
}
.select2-container--admin-autocomplete
.select2-results__option
[
aria-disabled
=
true
]
{
color
:
#999
;
}
.select2-container--admin-autocomplete
.select2-results__option
[
aria-selected
=
true
]
{
background-color
:
#ddd
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
{
padding-left
:
1em
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__group
{
padding-left
:
0
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__option
{
margin-left
:
-1em
;
padding-left
:
2em
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
{
margin-left
:
-2em
;
padding-left
:
3em
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
{
margin-left
:
-3em
;
padding-left
:
4em
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
{
margin-left
:
-4em
;
padding-left
:
5em
;
}
.select2-container--admin-autocomplete
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
.select2-results__option
{
margin-left
:
-5em
;
padding-left
:
6em
;
}
.select2-container--admin-autocomplete
.select2-results__option--highlighted
[
aria-selected
]
{
background-color
:
#79aec8
;
color
:
white
;
}
.select2-container--admin-autocomplete
.select2-results__group
{
cursor
:
default
;
display
:
block
;
padding
:
6px
;
}
assets/admin/css/base.css
0 → 100644
View file @
708d52a5
/*
DJANGO Admin styles
*/
@import
url(fonts.css)
;
body
{
margin
:
0
;
padding
:
0
;
font-size
:
14px
;
font-family
:
"Roboto"
,
"Lucida Grande"
,
"DejaVu Sans"
,
"Bitstream Vera Sans"
,
Verdana
,
Arial
,
sans-serif
;
color
:
#333
;
background
:
#fff
;
}
/* LINKS */
a
:link
,
a
:visited
{
color
:
#447e9b
;
text-decoration
:
none
;
}
a
:focus
,
a
:hover
{
color
:
#036
;
}
a
:focus
{
text-decoration
:
underline
;
}
a
img
{
border
:
none
;
}
a
.section
:link
,
a
.section
:visited
{
color
:
#fff
;
text-decoration
:
none
;
}
a
.section
:focus
,
a
.section
:hover
{
text-decoration
:
underline
;
}
/* GLOBAL DEFAULTS */
p
,
ol
,
ul
,
dl
{
margin
:
.2em
0
.8em
0
;
}
p
{
padding
:
0
;
line-height
:
140%
;
}
h1
,
h2
,
h3
,
h4
,
h5
{
font-weight
:
bold
;
}
h1
{
margin
:
0
0
20px
;
font-weight
:
300
;
font-size
:
20px
;
color
:
#666
;
}
h2
{
font-size
:
16px
;
margin
:
1em
0
.5em
0
;
}
h2
.subhead
{
font-weight
:
normal
;
margin-top
:
0
;
}
h3
{
font-size
:
14px
;
margin
:
.8em
0
.3em
0
;
color
:
#666
;
font-weight
:
bold
;
}
h4
{
font-size
:
12px
;
margin
:
1em
0
.8em
0
;
padding-bottom
:
3px
;
}
h5
{
font-size
:
10px
;
margin
:
1.5em
0
.5em
0
;
color
:
#666
;
text-transform
:
uppercase
;
letter-spacing
:
1px
;
}
ul
li
{
list-style-type
:
square
;
padding
:
1px
0
;
}
li
ul
{
margin-bottom
:
0
;
}
li
,
dt
,
dd
{
font-size
:
13px
;
line-height
:
20px
;
}
dt
{
font-weight
:
bold
;
margin-top
:
4px
;
}
dd
{
margin-left
:
0
;
}
form
{
margin
:
0
;
padding
:
0
;
}
fieldset
{
margin
:
0
;
padding
:
0
;
border
:
none
;
border-top
:
1px
solid
#eee
;
}
blockquote
{
font-size
:
11px
;
color
:
#777
;
margin-left
:
2px
;
padding-left
:
10px
;
border-left
:
5px
solid
#ddd
;
}
code
,
pre
{
font-family
:
"Bitstream Vera Sans Mono"
,
Monaco
,
"Courier New"
,
Courier
,
monospace
;
color
:
#666
;
font-size
:
12px
;
}
pre
.literal-block
{
margin
:
10px
;
background
:
#eee
;
padding
:
6px
8px
;
}
code
strong
{
color
:
#930
;
}
hr
{
clear
:
both
;
color
:
#eee
;
background-color
:
#eee
;
height
:
1px
;
border
:
none
;
margin
:
0
;
padding
:
0
;
font-size
:
1px
;
line-height
:
1px
;
}
/* TEXT STYLES & MODIFIERS */
.small
{
font-size
:
11px
;
}
.tiny
{
font-size
:
10px
;
}
p
.tiny
{
margin-top
:
-2px
;
}
.mini
{
font-size
:
10px
;
}
p
.mini
{
margin-top
:
-3px
;
}
.help
,
p
.help
,
form
p
.help
,
div
.help
,
form
div
.help
,
div
.help
li
{
font-size
:
11px
;
color
:
#999
;
}
div
.help
ul
{
margin-bottom
:
0
;
}
.help-tooltip
{
cursor
:
help
;
}
p
img
,
h1
img
,
h2
img
,
h3
img
,
h4
img
,
td
img
{
vertical-align
:
middle
;
}
.quiet
,
a
.quiet
:link
,
a
.quiet
:visited
{
color
:
#999
;
font-weight
:
normal
;
}
.float-right
{
float
:
right
;
}
.float-left
{
float
:
left
;
}
.clear
{
clear
:
both
;
}
.align-left
{
text-align
:
left
;
}
.align-right
{
text-align
:
right
;
}
.example
{
margin
:
10px
0
;
padding
:
5px
10px
;
background
:
#efefef
;
}
.nowrap
{
white-space
:
nowrap
;
}
/* TABLES */
table
{
border-collapse
:
collapse
;
border-color
:
#ccc
;
}
td
,
th
{
font-size
:
13px
;
line-height
:
16px
;
border-bottom
:
1px
solid
#eee
;
vertical-align
:
top
;
padding
:
8px
;
font-family
:
"Roboto"
,
"Lucida Grande"
,
Verdana
,
Arial
,
sans-serif
;
}
th
{
font-weight
:
600
;
text-align
:
left
;
}
thead
th
,
tfoot
td
{
color
:
#666
;
padding
:
5px
10px
;
font-size
:
11px
;
background
:
#fff
;
border
:
none
;
border-top
:
1px
solid
#eee
;
border-bottom
:
1px
solid
#eee
;
}
tfoot
td
{
border-bottom
:
none
;
border-top
:
1px
solid
#eee
;
}
thead
th
.required
{
color
:
#000
;
}
tr
.alt
{
background
:
#f6f6f6
;
}
.row1
{
background
:
#fff
;
}
.row2
{
background
:
#f9f9f9
;
}
/* SORTABLE TABLES */
thead
th
{
padding
:
5px
10px
;
line-height
:
normal
;
text-transform
:
uppercase
;
background
:
#f6f6f6
;
}
thead
th
a
:link
,
thead
th
a
:visited
{
color
:
#666
;
}
thead
th
.sorted
{