Commit 7c79e82a authored by Romain DELEAU's avatar Romain DELEAU

rework scenario css

parent 532307d4
<div class="container">
<div class="container-main" appDragScroll>
<div class="container-main-scenario" style="display: flex; flex-direction: column;" appMouseWheelZoom>
<div class="container-appDragScroll" appDragScroll>
<div class="container-appMouseWheelZoom" appMouseWheelZoom>
<div style="margin-bottom: 100px;">
<div style="font-family: 'Glacial Indifference Bold'; font-size: 20px;">Chronologie</div>
<div style="display: flex; flex-direction: row;">
<div class="container-scenario-chronologie">
<div class="container-scenario-chronologie-title">Chronologie</div>
<div class="container-scenario-chronologie-steps">
<app-step [style.z-index]="2"></app-step>
<app-step [style.z-index]="1"></app-step>
</div>
</div>
<div style="display: flex; flex-direction: row;">
<div style="display: flex; flex-direction: column;" [style.z-index]="4">
<div class="container-scenario-main">
<div class="container-scenario-main-gamePieces" [style.z-index]="4">
<app-game-educationnal-objective></app-game-educationnal-objective>
<app-game-context [style.z-index]="2"></app-game-context>
</div>
<div style="display: flex; flex-direction: column;" [style.z-index]="3">
<div class="container-scenario-main-missions">
<div class="container-scenario-main-missions-mission">
<div class="container-scenario-main-missions-mission-missionPieces" [style.z-index]="3">
<app-educational-objective></app-educational-objective>
<app-mission-context [style.z-index]="2"></app-mission-context>
</div>
<div class="container-scenario-main-missions-mission-roles" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role>
<div class="container-scenario-main-missions-mission-roles-role-tasks"
[style.z-index]="1">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-task [style.z-index]="2"></app-task>
<app-task [style.z-index]="1"></app-task>
</div>
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-annexe-task [style.z-index]="2"></app-annexe-task>
</div>
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-random-event [style.z-index]="2"></app-random-event>
</div>
</div>
</div>
<div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role>
<div class="container-scenario-main-missions-mission-roles-role-tasks"
[style.z-index]="1">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-task [style.z-index]="3"></app-task>
<app-annexe-task [style.z-index]="2"></app-annexe-task>
<app-random-event [style.z-index]="1"></app-random-event>
</div>
</div>
</div>
</div>
</div>
<div class="container-scenario-main-missions-mission">
<div class="container-scenario-main-missions-mission-missionPieces" [style.z-index]="3">
<app-educational-objective></app-educational-objective>
<app-mission-context [style.z-index]="2"></app-mission-context>
</div>
<div [style.z-index]="2">
<div style="display: flex;">
<div class="container-scenario-main-missions-mission-roles" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role>
<div [style.z-index]="1">
<div style="display: flex;" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role-tasks"
[style.z-index]="1">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-task [style.z-index]="2"></app-task>
<app-task [style.z-index]="1"></app-task>
</div>
<div style="display: flex;" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-annexe-task [style.z-index]="2"></app-annexe-task>
</div>
<div style="display: flex;" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-random-event [style.z-index]="2"></app-random-event>
</div>
</div>
</div>
<div style="display: flex;">
<div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role>
<div [style.z-index]="1">
<div style="display: flex;" [style.z-index]="2">
<div class="container-scenario-main-missions-mission-roles-role-tasks"
[style.z-index]="1">
<div class="container-scenario-main-missions-mission-roles-role-tasks-inlineTasks"
[style.z-index]="2">
<app-task [style.z-index]="3"></app-task>
<app-annexe-task [style.z-index]="2"></app-annexe-task>
<app-random-event [style.z-index]="1"></app-random-event>
......@@ -53,6 +100,8 @@
</div>
</div>
</div>
</div>
</div>
<div class="container-sider">
<app-comments class="container-sider-element"></app-comments>
......@@ -63,14 +112,10 @@
<div class="container-settings">
<div class="container-settings-mode">
<input name="unity" type="checkbox"/>
<input name="unity" type="checkbox" />
<label for="unity">Intégrer le jeu sous Unity</label>
</div>
<button mat-mini-fab color="white"><mat-icon fontIcon="save"></mat-icon></button>
<button mat-mini-fab color="white"><mat-icon fontIcon="upload-file"></mat-icon></button>
</div>
</div>
\ No newline at end of file
.container {
display: flex;
flex-direction: row;
z-index: 1;
&-main {
&-appDragScroll {
position: absolute;
height: 100%;
width: calc(100% - 322px);
......@@ -14,17 +13,80 @@
overflow: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
}
&-scenario {
&-appDragScroll::-webkit-scrollbar {
display: none;
}
&-appMouseWheelZoom {
position: relative;
transform-origin: top left;
padding: 60px 5px 10px 5px;
margin-right: 7px;
}
&-scenario {
&-chronologie {
margin-bottom: 100px;
&-title {
font-family: 'Glacial Indifference Bold';
font-size: 20px;
margin-bottom: 10px;
}
&-main::-webkit-scrollbar {
display: none;
&-steps {
display: flex;
flex-direction: row;
}
}
&-main {
display: flex;
flex-direction: row;
&-gamePieces {
display: flex;
flex-direction: column;
}
&-missions {
display: flex;
flex-direction: column;
&-mission {
display: flex;
flex-direction: row;
margin-bottom: 100px;
&-missionPieces {
display: flex;
flex-direction: column;
}
&-roles {
display: flex;
flex-direction: column;
&-role {
display: flex;
flex-direction: row;
&-tasks {
display: flex;
flex-direction: column;
&-inlineTasks {
display: flex;
flex-direction: row;
}
}
}
}
}
}
}
}
&-sider {
......@@ -56,13 +118,12 @@
display: flex;
flex-direction: row;
justify-content: space-between;
z-index: 2;
&-mode {
width: 150px;
background-color: white;
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px 0px rgba(0, 0, 0, 0.14),0px 1px 18px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
padding: 5px;
border-radius: 10px;
text-align: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment