/* LESS Document */ /* ********* ---- ********* */ /* Déclaration */ @newUnitHeight: 40px; @mainColorbck: rgb(26, 37, 47); @mainColor: rgb(209, 212, 217); /* Gris clair */ @mainColorBis: rgb(249, 252, 257); @PassifMax: rgb(30, 185, 228); /* Bleu clair */ /*html, body { margin:0; padding:0; width: 100%; height: 100%; /*font-family: Arial, Helvetica, sans-serif;*/ /*}*/ body { background-color: @mainColorbck; } a, a:link, a:visited, a:hover { color: #fff; text-decoration: none; } .container { width: 100%; padding: 0px; } .row { width: 100%; margin: 0px; } .noPadding { padding: 0; } .overflowHidden { overflow: hidden; } .flexWarpCenter { display: -webkit-flex; -webkit-flex-wrap: wrap; -webkit-justify-content: center; display: flex; flex-wrap: wrap; justify-content: center; } .unitContainer { .flexWarpCenter; color: @mainColorBis; margin-top: 10px; margin-bottom: 10px; } .connectContainer { .flexWarpCenter; color: @mainColorBis; } /* ******** Nav bar ******** */ .imgMenu { width: 100%; height: 200px; background-image: url(../images/nav_banner.png); background-repeat: no-repeat; background-position: center; background-size: cover; } .menu { position: -webkit-sticky; /* Safari */ position: sticky; top: 0; line-height: @newUnitHeight; text-align: center; background-color: @mainColorbck; a:link, a:visited, a:hover { color: @mainColorBis; text-decoration: none; } .colMenu { background-color: rgba(13, 93, 202, 0.6); } .colMenu:hover { background-color: rgba(13, 93, 202, 0.8); } .colMenuBis { border-left: 1px solid #fff; border-right: 1px solid #fff; } .btConnect { background-color: rgba(0, 255, 0, 0.5); } .btConnect:hover { background-color: rgba(0, 255, 0, 0.7); } .btDisconnect { float: left; width: @newUnitHeight; background-color: rgba(255, 0, 0, 0.5); } .btDisconnect:hover { background-color: rgba(255, 0, 0, 0.7); } .btUser { float: left; width: calc(100% - @newUnitHeight); background-color: rgba(13, 93, 202, 0.3); } .btUser:hover { background-color: rgba(13, 93, 202, 0.7); } z-index: 10; } /* ******** Connection ******** */ .connectForm { margin: 20px; border: 2px solid @mainColor; border-radius: 15px; padding: 10px; background-color: rgba(54, 150, 251, 0.4); input { border: 2px solid @mainColor; border-radius: 15px; padding: 3px 9px; background-color: transparent; } td { padding: 2px 5px; text-align: center; } .tableHeader { padding: 2px 5px 10px 5px; } .tableFooter { padding: 10px 5px 2px 5px; } label { margin-bottom: 0px; font-weight: 100; } .signIn { padding: 7px 14px; border-radius: 20px; } .signIn:hover { background-color: rgba(64, 0, 255, 0.6); } } .newAccount { background-color: rgba(0, 234, 70, 0.4); .signIn:hover { background-color: rgba(0, 234, 70, 0.6); } } .formHeight { height: 174px; } #createTrue { color: #42f459; width: 100%; padding-bottom: 20px; text-align: center; font-size: 18px; } #errorTrue { color: #f45041; width: 100%; padding-bottom: 20px; text-align: center; font-size: 18px; } /* ******** New Unit ******** */ #newUnitMenu { position: -webkit-sticky; /* Safari */ position: sticky; top: @newUnitHeight; background-color: rgb(45, 67, 82); color: @mainColorBis; z-index: 10; .menuRelative { position: relative; padding-right: 90px; #manageUnit { position: absolute; bottom: 0; right: 0; line-height: @newUnitHeight; padding-left: 18px; padding-right: 18px; background-color: rgba(52, 102, 202, 0.6); } #manageUnit:hover { background-color: rgba(52, 102, 202, 0.9); } } #addNewUnit { .newUnit; color: #fff; padding-left: 18px; padding-right: 18px; background-color: rgba(52, 102, 202, 0.6); } #addNewUnit:hover { background-color: rgba(52, 102, 202, 0.9); } .newUnit { height: @newUnitHeight; border-style: none; background-color: transparent; } #units, #damageTypeMenu { .newUnit; background-color: rgb(45, 67, 82); padding: 0px 5px; } #units { width: 195px; } #unitsType { display: none; visibility: hidden; } .unitIcon { vertical-align:top; .newUnit; } } .unit { height: 26px; border-style: none; background-color: transparent; } .tableBorder { border: 2px solid @mainColor; border-radius: 15px; } .button { border-radius: 15px; } .listUnit { margin: 10px; position: relative; table { text-align: center; border-collapse: separate; border-spacing: 3px; .tableBorder; border-color: transparent; } .initWidth td { height: 4px; border: none; } .trButtons { .btSave, .btCalc { width: 52px; height: 52px; padding: 0; background-repeat: no-repeat; .tableBorder; } .hideBorder { border: 0px solid transparent; } } td { height: 30px; .tableBorder; } .imgContainer { margin-left: auto; margin-right: auto; width: 150px; height: 110px; position: relative; } .imgContainer img { height: 80%; max-width: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } input, select, button { .unit; width: 100%; text-align: center; text-align-last:center; } select option { background-color: @mainColorbck; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .inputIcon { position: relative; } .inputIcon > i { position: absolute; display: block; transform: translate(0, -50%); top: 50%; right: 0; pointer-events: none; width: 25px; text-align: center; font-style: normal; } .inputIcon > input { padding-left: 0; padding-right: 0px; text-align: right; } .rgb { height: 100%; width: 100%; padding-right: 5px; padding-left: 5px; } @tableWidth: 360px; /* 384px multiple of 12 */ .colTable(@numCol) { box-sizing: border-box; width: calc(@tableWidth/12*@numCol); } .col1 { .colTable(1); } .col2 { .colTable(2); } .col3 { .colTable(3); } .col4 { .colTable(4); } .col5 { .colTable(5); } .col6 { .colTable(6); } .col7 { .colTable(7); } .col8 { .colTable(8); } .col9 { .colTable(9); } .col10 { .colTable(10); } .borderRadius(@tlRad, @trRad, @brRad, @blRad) { border-top-left-radius: @tlRad; border-top-right-radius: @trRad; border-bottom-right-radius: @brRad; border-bottom-left-radius: @blRad; overflow: hidden; } @radius: 15px; .noBR { .borderRadius(0, 0, 0, 0); } .topBR { .borderRadius(@radius, @radius, 0, 0); } .bottomBR { .borderRadius(0, 0, @radius, @radius); } .leftBR { .borderRadius(@radius, 0, 0, @radius); } .rightBR { .borderRadius(0, @radius, @radius, 0); } .topLBR { .borderRadius(@radius, 0, 0, 0); } .topRBR { .borderRadius(0, @radius, 0, 0); } .botRBR { .borderRadius(0, 0, @radius, 0); } .botLBR { .borderRadius(0, 0, 0, @radius); } .leftBR20 { .borderRadius(20px, 0, 0, 20px); } .rightBR20 { .borderRadius(0, 20px, 20px, 0); } } .newUnitHyb { @tableWidth: 468px; /* 360px multiple of 12 */ .colTable(@numCol) { box-sizing: border-box; width: calc(@tableWidth/12*@numCol); } .col1 { .colTable(1); } .col2 { .colTable(2); } .col3 { .colTable(3); } .col4 { .colTable(4); } .col5 { .colTable(5); } .col6 { .colTable(6); } .col7 { .colTable(7); } .col8 { .colTable(8); } .col9 { .colTable(9); } .col10 { .colTable(10); } .atkBorder { /*border-color: rgb(255, 212, 217);*/ border-color: rgb(255, 192, 197); } .magBorder { /*border-color: rgb(209, 212, 255);*/ border-color: rgb(189, 192, 255); } } @media screen and (max-width: 1199px) { /* md */ #newUnitMenu { top: calc(@newUnitHeight*2); } } @media screen and (max-width: 767px) { /* sm */ #newUnitMenu { top: calc(@newUnitHeight*5); } }