frontend code refactoring
This commit is contained in:
21
web/src/css/Common.scss
Normal file
21
web/src/css/Common.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
$minHeight : calc(100vh - 80px); //80px is height of the title div container
|
||||
|
||||
/* Common for right panel components */
|
||||
|
||||
.RightPanelBox{
|
||||
float: left;
|
||||
width: 70%;
|
||||
min-height:$minHeight;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.PanelSubTitle{
|
||||
text-align: left;
|
||||
margin-top: 30px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.SaveButton{
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
/*IntentList and IntentItem CSS*/
|
||||
.IntentList {
|
||||
width: 30%;
|
||||
min-height: calc(100vh - 80px);
|
||||
float: left;
|
||||
background-color: #eff0f0; }
|
||||
|
||||
.IntentList-title {
|
||||
font-size: 1.5em;
|
||||
height: 70px;
|
||||
padding: 20px;
|
||||
text-align: left;
|
||||
background-color: #eff0f0; }
|
||||
|
||||
.LaunchRequest {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8; }
|
||||
|
||||
.LaunchRequest-selected {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5; }
|
||||
|
||||
.Contact {
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8; }
|
||||
|
||||
.Contact-selected {
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5; }
|
||||
|
||||
.AddIntent {
|
||||
float: right;
|
||||
margin: 12px; }
|
||||
|
||||
.IntentItem {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background-color: #d8d8d8; }
|
||||
|
||||
.IntentItem-selected {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background-color: #f5f5f5; }
|
||||
|
||||
/*IntentDetails CSS*/
|
||||
.IntentDetails {
|
||||
float: left;
|
||||
width: 70%;
|
||||
min-height: calc(100vh - 80px);
|
||||
background-color: #f5f5f5; }
|
||||
|
||||
.QuestionBox {
|
||||
margin: 25px; }
|
||||
|
||||
/*LaunchRequest CSS*/
|
||||
.LaunchRequestBox {
|
||||
float: left;
|
||||
width: 70%;
|
||||
min-height: calc(100vh - 80px);
|
||||
background-color: #f5f5f5; }
|
||||
|
||||
.ExplanationText {
|
||||
float: left;
|
||||
margin-top: 30px;
|
||||
margin-left: 20px;
|
||||
text-align: left; }
|
||||
@@ -1,101 +0,0 @@
|
||||
$minHeight : calc(100vh - 80px);
|
||||
|
||||
/*IntentList and IntentItem CSS*/
|
||||
|
||||
.IntentList{
|
||||
width: 30%;
|
||||
min-height:$minHeight;
|
||||
float:left;
|
||||
background-color: #eff0f0;
|
||||
}
|
||||
|
||||
.IntentList-title{
|
||||
font-size: 1.5em;
|
||||
height: 70px;
|
||||
padding: 20px;
|
||||
text-align:left;
|
||||
background-color: #eff0f0;
|
||||
}
|
||||
|
||||
.LaunchRequest{
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8
|
||||
}
|
||||
|
||||
.LaunchRequest-selected{
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.Contact{
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8
|
||||
}
|
||||
|
||||
.Contact-selected{
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.AddIntent{
|
||||
float: right;
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
.IntentItem{
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
background-color: #d8d8d8;
|
||||
}
|
||||
|
||||
.IntentItem-selected{
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
background-color: #f5f5f5;
|
||||
|
||||
}
|
||||
|
||||
/*IntentDetails CSS*/
|
||||
|
||||
.IntentDetails{
|
||||
float: left;
|
||||
width: 70%;
|
||||
min-height:$minHeight;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.QuestionBox{
|
||||
margin:25px;
|
||||
}
|
||||
|
||||
/*LaunchRequest CSS*/
|
||||
|
||||
.LaunchRequestBox{
|
||||
float: left;
|
||||
width:70%;
|
||||
min-height:$minHeight;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.ExplanationText{
|
||||
float: left;
|
||||
margin-top: 30px;
|
||||
margin-left: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
4
web/src/css/components/Contact.scss
Normal file
4
web/src/css/components/Contact.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
.ContactEmailInput{
|
||||
width: 60%;
|
||||
margin-left: 20px;
|
||||
}
|
||||
18
web/src/css/components/IntentDetails.scss
Normal file
18
web/src/css/components/IntentDetails.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
.QuestionBox{
|
||||
margin:25px;
|
||||
}
|
||||
|
||||
.QuestionTitle{
|
||||
margin-top:20px;
|
||||
margin-left: 30px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.IntentDetailsInputBoxes{
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.IntentDetailsButton{
|
||||
float: left;
|
||||
margin-left: 25px;
|
||||
}
|
||||
18
web/src/css/components/IntentItem.scss
Normal file
18
web/src/css/components/IntentItem.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
.IntentItem{
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
background-color: #d8d8d8;
|
||||
}
|
||||
|
||||
.IntentItem-selected{
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
height: 50px;
|
||||
width:100%;
|
||||
text-align:left;
|
||||
background-color: #f5f5f5;
|
||||
|
||||
}
|
||||
52
web/src/css/components/IntentList.scss
Normal file
52
web/src/css/components/IntentList.scss
Normal file
@@ -0,0 +1,52 @@
|
||||
$minHeight : calc(100vh - 80px); //80px is height of the title div container
|
||||
|
||||
|
||||
.IntentList{
|
||||
width: 30%;
|
||||
min-height:$minHeight;
|
||||
float:left;
|
||||
background-color: #eff0f0;
|
||||
}
|
||||
|
||||
.IntentList-title{
|
||||
font-size: 1.5em;
|
||||
height: 70px;
|
||||
padding: 20px;
|
||||
text-align:left;
|
||||
background-color: #eff0f0;
|
||||
}
|
||||
|
||||
.AddIntent{
|
||||
float: right;
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
.LaunchRequestButton{
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8
|
||||
}
|
||||
|
||||
.LaunchRequestButton-selected{
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.ContactButton{
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #d8d8d8
|
||||
}
|
||||
|
||||
.ContactButton-selected{
|
||||
text-align: left;
|
||||
color: #009b8a;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
11
web/src/css/components/LaunchRequest.scss
Normal file
11
web/src/css/components/LaunchRequest.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.ExplanationText{
|
||||
float: left;
|
||||
margin-top: 30px;
|
||||
margin-left: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.InvocationInputBoxes{
|
||||
width: 60%;
|
||||
margin-left: 20px;
|
||||
}
|
||||
Reference in New Issue
Block a user