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

rework scenario css

parent 532307d4
<div class="container"> <div class="container">
<div class="container-main" appDragScroll> <div class="container-appDragScroll" appDragScroll>
<div class="container-main-scenario" style="display: flex; flex-direction: column;" appMouseWheelZoom> <div class="container-appMouseWheelZoom" appMouseWheelZoom>
<div style="margin-bottom: 100px;"> <div class="container-scenario-chronologie">
<div style="font-family: 'Glacial Indifference Bold'; font-size: 20px;">Chronologie</div> <div class="container-scenario-chronologie-title">Chronologie</div>
<div style="display: flex; flex-direction: row;"> <div class="container-scenario-chronologie-steps">
<app-step [style.z-index]="2"></app-step> <app-step [style.z-index]="2"></app-step>
<app-step [style.z-index]="1"></app-step> <app-step [style.z-index]="1"></app-step>
</div> </div>
</div> </div>
<div style="display: flex; flex-direction: row;"> <div class="container-scenario-main">
<div style="display: flex; flex-direction: column;" [style.z-index]="4"> <div class="container-scenario-main-gamePieces" [style.z-index]="4">
<app-game-educationnal-objective></app-game-educationnal-objective> <app-game-educationnal-objective></app-game-educationnal-objective>
<app-game-context [style.z-index]="2"></app-game-context> <app-game-context [style.z-index]="2"></app-game-context>
</div> </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-educational-objective></app-educational-objective>
<app-mission-context [style.z-index]="2"></app-mission-context> <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>
<div [style.z-index]="2"> <div class="container-scenario-main-missions-mission-roles" [style.z-index]="2">
<div style="display: flex;"> <div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role> <app-role [style.z-index]="10"></app-role>
<div [style.z-index]="1"> <div class="container-scenario-main-missions-mission-roles-role-tasks"
<div style="display: flex;" [style.z-index]="2"> [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]="2"></app-task>
<app-task [style.z-index]="1"></app-task> <app-task [style.z-index]="1"></app-task>
</div> </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> <app-annexe-task [style.z-index]="2"></app-annexe-task>
</div> </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> <app-random-event [style.z-index]="2"></app-random-event>
</div> </div>
</div> </div>
</div> </div>
<div style="display: flex;"> <div class="container-scenario-main-missions-mission-roles-role">
<app-role [style.z-index]="10"></app-role> <app-role [style.z-index]="10"></app-role>
<div [style.z-index]="1"> <div class="container-scenario-main-missions-mission-roles-role-tasks"
<div style="display: flex;" [style.z-index]="2"> [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-task [style.z-index]="3"></app-task>
<app-annexe-task [style.z-index]="2"></app-annexe-task> <app-annexe-task [style.z-index]="2"></app-annexe-task>
<app-random-event [style.z-index]="1"></app-random-event> <app-random-event [style.z-index]="1"></app-random-event>
...@@ -53,6 +100,8 @@ ...@@ -53,6 +100,8 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
<div class="container-sider"> <div class="container-sider">
<app-comments class="container-sider-element"></app-comments> <app-comments class="container-sider-element"></app-comments>
...@@ -63,14 +112,10 @@ ...@@ -63,14 +112,10 @@
<div class="container-settings"> <div class="container-settings">
<div class="container-settings-mode"> <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> <label for="unity">Intégrer le jeu sous Unity</label>
</div> </div>
<button mat-mini-fab color="white"><mat-icon fontIcon="save"></mat-icon></button> <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> <button mat-mini-fab color="white"><mat-icon fontIcon="upload-file"></mat-icon></button>
</div> </div>
</div> </div>
\ No newline at end of file
.container { .container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
z-index: 1; z-index: 1;
&-main { &-appDragScroll {
position: absolute; position: absolute;
height: 100%; height: 100%;
width: calc(100% - 322px); width: calc(100% - 322px);
...@@ -14,17 +13,80 @@ ...@@ -14,17 +13,80 @@
overflow: scroll; overflow: scroll;
-ms-overflow-style: none; -ms-overflow-style: none;
scrollbar-width: none; scrollbar-width: none;
}
&-scenario { &-appDragScroll::-webkit-scrollbar {
display: none;
}
&-appMouseWheelZoom {
position: relative; position: relative;
transform-origin: top left; transform-origin: top left;
padding: 60px 5px 10px 5px; padding: 60px 5px 10px 5px;
margin-right: 7px; margin-right: 7px;
} }
&-scenario {
&-chronologie {
margin-bottom: 100px;
&-title {
font-family: 'Glacial Indifference Bold';
font-size: 20px;
margin-bottom: 10px;
} }
&-main::-webkit-scrollbar { &-steps {
display: none; 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 { &-sider {
...@@ -56,13 +118,12 @@ ...@@ -56,13 +118,12 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
z-index: 2; z-index: 2;
&-mode { &-mode {
width: 150px; width: 150px;
background-color: white; 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; padding: 5px;
border-radius: 10px; border-radius: 10px;
text-align: center; 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