Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pnria Projet Deeplever
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PNRIA
Global Helper
Pnria Projet Deeplever
Commits
10a400d6
Commit
10a400d6
authored
3 years ago
by
Caroline DE POURTALES
Browse files
Options
Downloads
Patches
Plain Diff
working on CSS
parent
da034c90
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app.py
+3
-2
3 additions, 2 deletions
app.py
assets/header.css
+16
-8
16 additions, 8 deletions
assets/header.css
assets/typography.css
+4
-1
4 additions, 1 deletion
assets/typography.css
callbacks.py
+3
-1
3 additions, 1 deletion
callbacks.py
with
26 additions
and
12 deletions
app.py
+
3
−
2
View file @
10a400d6
...
@@ -10,7 +10,8 @@ from callbacks import register_callbacks
...
@@ -10,7 +10,8 @@ from callbacks import register_callbacks
from
pages.application.application
import
Application
,
Model
,
View
from
pages.application.application
import
Application
,
Model
,
View
from
utils
import
extract_data
from
utils
import
extract_data
app
=
dash
.
Dash
(
external_stylesheets
=
[
dbc
.
themes
.
LUX
],
suppress_callback_exceptions
=
True
)
app
=
dash
.
Dash
(
external_stylesheets
=
[
dbc
.
themes
.
LUX
],
suppress_callback_exceptions
=
True
,
meta_tags
=
[{
'
name
'
:
'
viewport
'
,
'
content
'
:
'
width=device-width, initial-scale=1
'
}])
#################################################################################
#################################################################################
############################# Layouts ###########################################
############################# Layouts ###########################################
...
@@ -19,7 +20,7 @@ models_data = open('data_retriever.json')
...
@@ -19,7 +20,7 @@ models_data = open('data_retriever.json')
data
=
json
.
load
(
models_data
)[
"
data
"
]
data
=
json
.
load
(
models_data
)[
"
data
"
]
#For home directory
#For home directory
page_home
=
dbc
.
Row
([])
page_home
=
dbc
.
Row
([
html
.
H3
(
"
Welcome
"
)
])
#For course directory
#For course directory
page_course
=
dbc
.
Row
([])
page_course
=
dbc
.
Row
([])
#For the application
#For the application
...
...
This diff is collapsed.
Click to expand it.
assets/header.css
+
16
−
8
View file @
10a400d6
...
@@ -10,18 +10,26 @@
...
@@ -10,18 +10,26 @@
/* SIDEBAR */
/* SIDEBAR */
div
.sidebar.col-3
{
height
:
fit-content
;
}
.sidebar
{
.sidebar
{
padding
:
2rem
;
padding
:
2rem
;
padding-top
:
0.5rem
;
padding-top
:
0%
;
margin-top
:
1rem
;
border-width
:
4px
;
border-style
:
double
;
border-radius
:
20px
;
color
:
rgb
(
255
,
255
,
255
);
color
:
rgb
(
255
,
255
,
255
);
font-weight
:
300
;
font-weight
:
300
;
background-color
:
black
;
background-color
:
rgb
(
26
,
26
,
26
)
;
}
}
.sidebar
.tab.jsx-3468109796
{
.sidebar
.tab.jsx-3468109796
{
color
:
rgb
(
255
,
255
,
255
);
color
:
rgb
(
255
,
255
,
255
);
font-weight
:
500
;
font-weight
:
500
;
background-color
:
#1a1c1d
;
background-color
:
rgb
(
26
,
26
,
26
)
;
}
}
.sidebar
.tab--selected.jsx-3468109796
:hover
{
.sidebar
.tab--selected.jsx-3468109796
:hover
{
...
@@ -49,7 +57,7 @@
...
@@ -49,7 +57,7 @@
margin
:
10px
;
margin
:
10px
;
color
:
rgb
(
255
,
255
,
255
);
color
:
rgb
(
255
,
255
,
255
);
font-weight
:
400
;
font-weight
:
400
;
background-color
:
black
;
background-color
:
rgb
(
26
,
26
,
26
)
;
}
}
.sidebar
.sidebar-dropdown
{
.sidebar
.sidebar-dropdown
{
...
@@ -62,7 +70,7 @@
...
@@ -62,7 +70,7 @@
margin
:
10px
;
margin
:
10px
;
color
:
rgb
(
255
,
255
,
255
);
color
:
rgb
(
255
,
255
,
255
);
font-weight
:
400
;
font-weight
:
400
;
background-color
:
black
;
background-color
:
rgb
(
26
,
26
,
26
)
;
}
}
.sidebar
.has-value.Select--single
>
.Select-control
.Select-value
.Select-value-label
,
.has-value.is-pseudo-focused.Select--single
>
.sidebar
.Select-control
.Select-value
.Select-value-label
{
.sidebar
.has-value.Select--single
>
.Select-control
.Select-value
.Select-value-label
,
.has-value.is-pseudo-focused.Select--single
>
.sidebar
.Select-control
.Select-value
.Select-value-label
{
...
@@ -77,7 +85,7 @@
...
@@ -77,7 +85,7 @@
margin
:
10px
;
margin
:
10px
;
color
:
rgb
(
255
,
255
,
255
);
color
:
rgb
(
255
,
255
,
255
);
font-weight
:
400
;
font-weight
:
400
;
background-color
:
black
;
background-color
:
rgb
(
26
,
26
,
26
)
;
}
}
/* EXPLANATION */
/* EXPLANATION */
...
@@ -85,7 +93,7 @@
...
@@ -85,7 +93,7 @@
main
#explanation
{
main
#explanation
{
width
:
95%
;
width
:
95%
;
margin-bottom
:
5rem
;
margin-bottom
:
5rem
;
margin-top
:
5
rem
;
margin-top
:
2
rem
;
border-width
:
4px
;
border-width
:
4px
;
border-style
:
double
;
border-style
:
double
;
border-radius
:
5px
;
border-radius
:
5px
;
...
@@ -96,7 +104,7 @@ main#explanation {
...
@@ -96,7 +104,7 @@ main#explanation {
/* GRAPH */
/* GRAPH */
.column_graph
{
.column_graph
{
margin-top
:
5
rem
;
margin-top
:
2
rem
;
}
}
...
...
This diff is collapsed.
Click to expand it.
assets/typography.css
+
4
−
1
View file @
10a400d6
...
@@ -12,10 +12,13 @@ H4 {
...
@@ -12,10 +12,13 @@ H4 {
H5
{
H5
{
font-size
:
16px
;
font-size
:
16px
;
text-transform
:
capitalize
;
font-family
:
Georgia
,
'Times New Roman'
,
Times
,
serif
;
color
:
hsl
(
228
,
58%
,
12%
);
color
:
hsl
(
228
,
58%
,
12%
);
}
}
p
{
p
{
font-size
:
15px
;
font-size
:
17px
;
font-family
:
Georgia
,
'Times New Roman'
,
Times
,
serif
;
color
:
hsl
(
0
,
0%
,
0%
)
color
:
hsl
(
0
,
0%
,
0%
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
callbacks.py
+
3
−
1
View file @
10a400d6
...
@@ -106,8 +106,10 @@ def register_callbacks(page_home, page_course, page_application, app):
...
@@ -106,8 +106,10 @@ def register_callbacks(page_home, page_course, page_application, app):
prevent_initial_call
=
True
prevent_initial_call
=
True
)
)
def
layout_buttons_navigate_expls
(
explanation
,
explanation_type
):
def
layout_buttons_navigate_expls
(
explanation
,
explanation_type
):
if
explanation
is
None
or
"
AXp
"
not
in
explanation_type
:
if
explanation
is
None
or
len
(
explanation_type
)
==
0
:
return
True
,
True
,
True
,
{}
return
True
,
True
,
True
,
{}
elif
"
AXp
"
not
in
explanation_type
and
"
CXp
"
in
explanation_type
:
return
False
,
True
,
True
,
{}
else
:
else
:
options
=
{}
options
=
{}
model_application
=
page_application
.
model
model_application
=
page_application
.
model
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment