Skip to content
Snippets Groups Projects
Commit 10a400d6 authored by Caroline DE POURTALES's avatar Caroline DE POURTALES
Browse files

working on CSS

parent da034c90
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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: 5rem; margin-top: 2rem;
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: 5rem; margin-top: 2rem;
} }
......
...@@ -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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment