Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.41 KB | None | 0 0
  1. <template>
  2. <div id="ordering">
  3. <img class="examplePanel" src="@/assets/colorsplash.jpg">
  4. <section class="leftSection">
  5. <div id="menuButtons">
  6. <button id = "bigButtons" v-on:click="changeCategory(1); showBurger(true); showOrder(true)"><img src="@/assets/hamburger.png" width=200px></button>
  7.  
  8. <div class="hamburgerIngredients" v-if="hamburgerButtons">
  9. <button :class="['menu-button', {'focused-category' : currentCategory === 1}]" v-on:click="changeCategory(1)"> {{ uiLabels.protein }} </button>
  10. <button :class="['menu-button', {'focused-category' : currentCategory === 2}]" v-on:click="changeCategory(2)"> {{ uiLabels.toppings }} </button>
  11. <button :class="['menu-button', {'focused-category' : currentCategory === 3}]" v-on:click="changeCategory(3)"> {{ uiLabels.sauce }} </button>
  12. <button :class="['menu-button', {'focused-category' : currentCategory === 4}]" v-on:click="changeCategory(4)"> {{ uiLabels.bread }} </button>
  13. </div>
  14. <button id = "bigButtons" v-on:click="changeCategory(5); showBurger(false); showOrder(true)"><img src="@/assets/fries.png" width=200px></button>
  15. <button id = "bigButtons" v-on:click="changeCategory(6); showBurger(false); showOrder(true)"><img src="@/assets/drink.png" width=200px></button>
  16. <div class="popupClass">
  17. <button id="checkoutButton" v-on:click=" showOrder(false); showPlaceOrder(true);showBurger(false)"> {{ uiLabels.checkout }} </button>
  18. </div>
  19. </div>
  20. </section>
  21.  
  22. <section class="header">
  23. <h1> Crusty Burgers </h1>
  24. </section>
  25.  
  26. <section class="middleSection" >
  27. <div id="welcomePage" v-if="buttonIsPressed == false">
  28. {{ uiLabels.welcome}} <br>
  29. <img src="@/assets/welcome.jpg" width=400px >
  30. </div>
  31. <div v-else>
  32. <div v-if="displayOrder">
  33. <h1 v-if="this.currentCategory==1">{{ uiLabels.protein}}</h1>
  34. <h1 v-if="this.currentCategory==2">{{ uiLabels.toppings}}</h1>
  35. <h1 v-if="this.currentCategory==3">{{ uiLabels.sauce}}</h1>
  36. <h1 v-if="this.currentCategory==4">{{ uiLabels.bread}}</h1>
  37. <h1 v-if="this.currentCategory==5">{{ uiLabels.extras}}</h1>
  38. <h1 v-if="this.currentCategory==6">{{ uiLabels.drinks}}</h1>
  39. <div v-if="this.currentCategory<=3" class="ingdiv">
  40. <Ingredient
  41. ref="ingredient"
  42. v-for= "item in ingredients"
  43. v-show="item.category==currentCategory"
  44. v-on:increment="createBurger(item)"
  45. v-on:deincrement="removeIngredientNumber(item)"
  46. :item="item"
  47. :lang="lang"
  48. :currentCategory=currentCategory
  49. :key="item.ingredient_id">
  50. </Ingredient>
  51. </div>
  52. <div v-else="this.currentCategory>=4" class="ingdiv2">
  53. <Ingredient
  54. ref="ingredient"
  55. v-for= "item in ingredients"
  56. v-show="item.category==currentCategory"
  57. v-on:increment="createBurger(item)"
  58. v-on:deincrement="removeIngredientNumber(item)"
  59. :item="item"
  60. :lang="lang"
  61. :currentCategory=currentCategory
  62. :key="item.ingredient_id">
  63. </Ingredient>
  64. </div> <br> <br>
  65. </div>
  66. <div v-if="hamburgerButtons">
  67. <div v-if="currentCategory >= 2">
  68. <button v-on:click="previousPage()" style="float: left;"><img src="@/assets/backArrow.png" width = 40> {{ uiLabels.previous }}</button>
  69. </div>
  70. <div v-if="currentCategory <= 3">
  71. <button v-on:click="nextPage()" style="float: left;"><img src="@/assets/frontArrow.png" width = 40> {{ uiLabels.next }}</button>
  72. </div>
  73. </div>
  74. <div id="addOrderButton" v-if="displayOrder">
  75. <button v-on:click="addButtonK(); showPlaceOrder(true)" style="float: right;"><img src="@/assets/cart.png" width = 40> {{ uiLabels.addOrder }}</button>
  76. </div>
  77. <div id="currentOrder" v-if="displayOrder == false">
  78. <h1>{{ uiLabels.yourOrder }}</h1>
  79. <div v-for="ab, index in outputOrderText">
  80. {{ ab}} &nbsp;
  81. <button v-on:click="removeItem(index)" id= "index" > X </button>
  82. <button v-on:click="changeburger(index)" id="index2"> redoburger</button>
  83. <br>
  84. </div>
  85. <div id="totalPrice" >
  86. {{uiLabels.totalPriceLang}} {{totalOrderPrice}} :-
  87. </div>
  88. <br>
  89. <br>
  90. <br>
  91. <div v-if="placeOrderBoolean">
  92. <button id="placeOrderButton" v-on:click="popupFunction()" style="float: right;"> {{uiLabels.placeOrder}} </button>
  93. <span class="popuptext" id="myPopup"> </span>
  94. </div>
  95.  
  96. </div>
  97. </div>
  98. </section>
  99.  
  100.  
  101. <section class="rightSection">
  102. <button id="langButton" v-if="this.langBoolData" v-on:click="switchLang(); langBool(false)"><img src="@/assets/Sverige.png" width=100%></button>
  103. <button id="langButton" v-if="this.langBoolData==false" v-on:click="switchLang(); langBool(true)"><img src="@/assets/Storbritannien.png" width=100%></button>
  104. <div id="infoAllergy">
  105. <span id="milk"> L </span> = {{ uiLabels.contains }} {{ uiLabels.lactose }} <br>
  106. <span id="gluten">G</span> = {{ uiLabels.contains }} {{ uiLabels.gluten }} <br>
  107. <span id="vegan">V</span> = {{ uiLabels.vegan }}
  108. </div>
  109. <div class="rightInfo" v-if="hamburgerButtons">
  110. <div id="secondRightBox">
  111. <h1>{{ uiLabels.order }}</h1>
  112. <h4>{{uiLabels.protein}} </h4>
  113. <span v-for="ingri in this.burgerIngredients">
  114. <li v-if="ingri.category==1">{{ ingri["ingredient_"+lang] }}, </li>
  115. </span>
  116. <h4>{{ uiLabels.toppings }}</h4>
  117. <span v-for="ingri in this.burgerIngredients">
  118. <li v-if="ingri.category==2">{{ ingri["ingredient_"+lang] }}</li>
  119. </span>
  120. <h4>{{ uiLabels.sauce }}</h4>
  121. <span v-for="ingri in this.burgerIngredients">
  122. <li v-if="ingri.category==3">{{ ingri["ingredient_"+lang] }}, </li>
  123. </span>
  124. <h4>{{ uiLabels.bread }}</h4>
  125. <li v-if="isbreadin()!==true"> {{uiLabels.breaddemand}} </li>
  126. <span v-if="isbreadin()" v-for="ingri in this.burgerIngredients">
  127. <li v-if="ingri.category==4">{{ ingri["ingredient_"+lang] }} </li>
  128. </span>
  129. <h4>{{uiLabels.burgerprice}} {{ price }} kr </h4>
  130. </div>
  131. <!--<h1>{{ uiLabels.ordersInQueue }}</h1>
  132. <div>
  133. <OrderItem
  134. v-for="(order, key) in orders"
  135. v-if="order.status !== 'done'"
  136. :order-id="key"
  137. :order="order"
  138. :ui-labels="uiLabels"
  139. :lang="lang"
  140. :key="key">
  141. </OrderItem>
  142. </div> -->
  143. </div>
  144.  
  145. </section>
  146. </div>
  147. </template>
  148. <script>
  149.  
  150. //import the components that are used in the template, the name that you
  151. //use for importing will be used in the template above and also below in
  152. //components
  153. import Ingredient from '@/components/Ingredient.vue'
  154. import OrderItem from '@/components/OrderItem.vue'
  155.  
  156. //import methods and data that are shared between ordering and kitchen views
  157. import sharedVueStuff from '@/components/sharedVueStuff.js'
  158.  
  159. /* instead of defining a Vue instance, export default allows the only
  160. necessary Vue instance (found in main.js) to import your data and methods */
  161. export default {
  162. name: 'Ordering',
  163. components: {
  164. Ingredient,
  165. OrderItem
  166. },
  167. mixins: [sharedVueStuff], // include stuff that is used in both
  168. // the ordering system and the kitchen
  169. data: function() { //Not that data is a function!
  170. return {
  171. ingredientstosend:[],
  172. itemprice: 0,
  173. langBoolData:true,
  174. chosenIngredients: [],
  175. burgerIngredients: [],
  176. drinksAndExtras: [],
  177. outputOrderText: [],
  178. tempFoodObjekt:"",
  179. price: 0,
  180. totalOrderPrice: 0,
  181. orderNumber: "",
  182. currentCategory: 1,
  183. buttonIsPressed: false,
  184. hamburgerButtons: false,
  185. displayOrder: false,
  186. isburger: false,
  187. placeOrderBoolean: false,
  188. aBurger: {
  189. bread: null,
  190. meat: [],
  191. additionals:[],
  192. sauce: [],
  193. price: 0
  194. },
  195. aDrinkOrExtra: {
  196. size: "Small",
  197. name: {},
  198. price: 0
  199. }
  200. }
  201. },
  202. created: function () {
  203. this.$store.state.socket.on('orderNumber', function (data) {
  204. this.orderNumber = data;
  205. }.bind(this));
  206. },
  207. methods: {
  208. createBurger: function (item) {
  209. if (this.currentCategory<=4){
  210. this.burgerIngredients.push(item);
  211. this.price += +item.selling_price;
  212. }
  213. else if (this.currentCategory>=5) {
  214. this.drinksAndExtras.push(item);
  215. }
  216.  
  217. },
  218. addToOrder: function () {
  219. this.addToBurger();
  220. this.addToDrinkOrExtra();
  221. this.createOutputOrderText();
  222. //this.chosenIngredients = this.chosenIngredients.concat(this.burgerIngredients).concat(this.drinksAndExtras);
  223. this.burgerIngredients = [];
  224. this.drinksAndExtras = [];
  225. this.price=0;
  226. },
  227.  
  228. addButtonK: function(){
  229. if(this.isbreadin()){
  230. console.log("test1");
  231. this.addToOrder()
  232. this.showBurger(false)
  233. this.showOrder(false)
  234. }
  235.  
  236. else if (this.isNotBurger()) {
  237. console.log("test 2")
  238. this.addToOrder();
  239. this.showBurger(false);
  240. this.showOrder(false);
  241. }
  242. if(this.isbreadin()==false) {
  243. if(this.currentCategory <= 3) {
  244. window.alert( "Please choose a bread");
  245. }
  246. }
  247. },
  248. redochosen: function(thechoseningredient){
  249. var i
  250. var j
  251. for(i=0; i<thechoseningredient.length; i++){
  252. if(thechoseningredient[i].bread != null){
  253. for(j=0; j<thechoseningredient[i].meat.length; j++){
  254. this.ingredientstosend.push(thechoseningredient[i].meat[j])
  255. }
  256. for(j=0; j<thechoseningredient[i].additionals.length; j++){
  257. this.ingredientstosend.push(thechoseningredient[i].additionals[j])
  258. }
  259. for(j=0; j<thechoseningredient[i].sauce.length; j++){
  260. this.ingredientstosend.push(thechoseningredient[i].sauce[j])
  261. }
  262. this.ingredientstosend.push(thechoseningredient[i].bread)
  263. }
  264. else {
  265. this.ingredientstosend.push(thechoseningredient[i].name)
  266. }
  267. }
  268.  
  269. },
  270.  
  271. addToBurger: function(){
  272. var i;
  273. for (i=0; i < this.burgerIngredients.length; i++){
  274. if (this.burgerIngredients[i].category == 1) {
  275. this.aBurger.meat.push(this.burgerIngredients[i]);
  276. }
  277. else if (this.burgerIngredients[i].category == 2) {
  278. this.aBurger.additionals.push(this.burgerIngredients[i]);
  279. }
  280. else if (this.burgerIngredients[i].category == 3) {
  281. this.aBurger.sauce.push(this.burgerIngredients[i]);
  282. }
  283. else if (this.burgerIngredients[i].category == 4)
  284. { this.isBurger=true;
  285. this.aBurger.bread = this.burgerIngredients[i];
  286. }
  287. }
  288. if(this.isBurger){
  289. this.getpriceofburger(this.aBurger)
  290. this.chosenIngredients.push({bread:this.aBurger.bread, meat:this.aBurger.meat,
  291. additionals:this.aBurger.additionals, sauce:this.aBurger.sauce, price:this.itemprice});
  292. this.itemprice=0;
  293. this.aBurger.bread=null;
  294. this.aBurger.meat=[];
  295. this.aBurger.additionals=[];
  296. this.aBurger.sauce=[]
  297. this.isBurger=false;
  298. }
  299. //this.chosenIngredients.push(this.aBurger);
  300. },
  301. addToDrinkOrExtra: function(){
  302. var j;
  303. for (j=0; j< this.drinksAndExtras.length; j++){
  304. if (this.drinksAndExtras[j].category >= 5){
  305. this.getpriceofburger(this.drinksAndExtras[j])
  306. this.aDrinkOrExtra.name = this.drinksAndExtras[j]
  307. this.chosenIngredients.push({name:this.aDrinkOrExtra.name, size:this.aDrinkOrExtra.size, price:this.itemprice});
  308. this.itemprice=0;
  309. this.aDrinkOrExtra.name={};
  310. this.aDrinkOrExtra.size="Small";
  311. }
  312. }
  313. },
  314. redoburgeringridientburger: function(i){
  315. var j
  316.  
  317. for(j=0; j<this.chosenIngredients[i].meat.length; j++){
  318. this.burgerIngredients.push(this.chosenIngredients[i].meat[j])
  319. }
  320. for(j=0; j<this.chosenIngredients[i].additionals.length; j++){
  321. this.burgerIngredients.push(this.chosenIngredients[i].additionals[j])
  322. }
  323. for(j=0; j<this.chosenIngredients[i].sauce.length; j++){
  324. this.burgerIngredients.push(this.chosenIngredients[i].sauce[j])
  325. }
  326. this.burgerIngredients.push(this.chosenIngredients[i].bread)
  327.  
  328. },
  329. changeburger: function(i){
  330. var j
  331. var k
  332. this.displayOrder=true
  333. this.redoburgeringridientburger(i)
  334. this.hamburgerButtons=true
  335. this.currentCategory=1;
  336. this.chosenIngredients.splice(i,1);
  337. this.createOutputOrderText()
  338. this.displayOrder=true
  339. console.log(ingredient.length)
  340. for (j= 0; j < ingredient.length; j+= 1) {
  341. if(this.redoburgeringridientburger.indexof(ingredient[j])>-1){
  342. ingredient[j].addtoCounter();}
  343. }
  344.  
  345.  
  346.  
  347. },
  348.  
  349.  
  350.  
  351.  
  352. placeOrder: function () {
  353. var i,
  354. //Wrap the order in an object
  355. order = {
  356. ingredients: this.ingredientstosend,
  357. price: this.totalOrderPrice
  358. };
  359. // make use of socket.io's magic to send the stuff to the kitchen via the server (app.js)
  360. this.$store.state.socket.emit('order', {order: order});
  361. //set all counters to 0. Notice the use of $refs
  362. for (i = 0; i < this.$refs.ingredient.length; i += 1) {
  363. this.$refs.ingredient[i].resetCounter();
  364. }
  365. this.price = 0;
  366. this.totalOrderPrice = 0;
  367. this.chosenIngredients = [];
  368. this.ingredientstosend= [];
  369. },
  370.  
  371. createOutputOrderText: function(){
  372. var i
  373. var j
  374. this.outputOrderText=[];
  375. this.totalOrderPrice=0;
  376. for (i=0; i <this.chosenIngredients.length; i++){
  377. if(this.chosenIngredients[i].bread != null){
  378. this.tempFoodObjekt= (i+1) +": " + this.chosenIngredients[i].bread["ingredient_" + this.lang]
  379. for (j=0; j < this.chosenIngredients[i].meat.length; j++){
  380. this.tempFoodObjekt=this.tempFoodObjekt + ", " + this.chosenIngredients[i].meat[j]["ingredient_" + this.lang]
  381. }
  382. for (j=0; j < this.chosenIngredients[i].additionals.length; j++){
  383. this.tempFoodObjekt=this.tempFoodObjekt + ", " + this.chosenIngredients[i].additionals[j]["ingredient_" + this.lang]
  384. }
  385. for (j=0; j < this.chosenIngredients[i].sauce.length; j++){
  386. this.tempFoodObjekt=this.tempFoodObjekt + ", " + this.chosenIngredients[i].sauce[j]["ingredient_" + this.lang]
  387. }
  388. this.tempFoodObjekt=this.tempFoodObjekt+", " + this.chosenIngredients[i].price + ":-";
  389. this.outputOrderText.push(this.tempFoodObjekt);
  390. this.tempFoodObjekt = "";
  391. this.totalOrderPrice+=this.chosenIngredients[i].price
  392. }
  393. else {
  394. this.tempFoodObjekt= (i+1) + ": " + this.chosenIngredients[i].name["ingredient_" + this.lang] + ", " + this.chosenIngredients[i].price + ":-";
  395. this.outputOrderText.push(this.tempFoodObjekt);
  396. this.tempFoodObjekt = "";
  397.  
  398. this.totalOrderPrice+=this.chosenIngredients[i].price
  399. }
  400. }
  401. },
  402. changeCategory: function(int) {
  403. this.currentCategory = int;
  404. },
  405.  
  406. showBurger: function(boolean) {
  407. this.hamburgerButtons = boolean;
  408. this.buttonIsPressed=true;
  409. },
  410. showOrder: function(boolean) {
  411. this.displayOrder = boolean;
  412. },
  413. langBool: function(boolean){
  414. this.langBoolData=boolean;
  415. },
  416. showPlaceOrder: function(boolean){
  417. this.placeOrderBoolean = boolean;
  418. },
  419.  
  420. getpriceofburger: function(item){
  421. var j
  422. if(item.bread!=null){
  423. this.itemprice=parseInt(item.bread.selling_price);
  424. for (j=0; j < item.meat.length; j++){
  425. this.itemprice+=parseInt(item.meat[j].selling_price);
  426. }
  427. for (j=0; j < item.additionals.length; j++){
  428. this.itemprice+=parseInt(item.additionals[j].selling_price);
  429.  
  430. }
  431. for (j=0; j < item.sauce.length; j++){
  432. this.itemprice+=parseInt(item.sauce[j].selling_price);
  433.  
  434. }
  435. }
  436. else {
  437. this.itemprice=parseInt(item.selling_price);
  438. }
  439. },
  440.  
  441. removeItem: function(index){
  442. this.chosenIngredients.splice(index,1);
  443. this.createOutputOrderText();
  444. },
  445.  
  446. getbreadindex: function(ingri){
  447. if(ingri.category==4){
  448. return ingri
  449. }
  450. },
  451.  
  452. isbreadin:function(){
  453. var i
  454. for(i=0; i <this.burgerIngredients.length; i++){
  455.  
  456. if (this.burgerIngredients[i].category==4){
  457. return true
  458. }
  459. }
  460. return false
  461.  
  462. },
  463.  
  464. isNotBurger:function(){
  465. var i
  466. for(i=0; i <this.drinksAndExtras.length; i++){
  467. if (this.drinksAndExtras[i].category>4){
  468. return true
  469. }}
  470. return false
  471. },
  472.  
  473. removeIngredientNumber: function(item){
  474. if (this.currentCategory <= 3){
  475. this.burgerIngredients.splice( this.burgerIngredients.indexOf(item),1);
  476.  
  477. this.price += -item.selling_price;
  478. }
  479. else if (this.currentCategory == 4){
  480. var bread_index;
  481. if(this.isbreadin()){
  482. bread_index=this.burgerIngredients.findIndex(this.getbreadindex);
  483. this.price += -this.burgerIngredients[bread_index].selling_price;
  484. this.burgerIngredients.splice(bread_index,1);
  485.  
  486. }
  487. }
  488. else {
  489. this.drinksAndExtras.splice( this.drinksAndExtras.indexOf(item),1);
  490. this.price += -item.selling_price;
  491. }
  492. },
  493.  
  494. nextPage: function(){
  495. this.currentCategory += 1;
  496. },
  497. previousPage: function(){
  498. this.currentCategory = this.currentCategory - 1;
  499. },
  500.  
  501. popupFunction: function(){
  502. if (confirm("Are you sure you want to place the order?")){
  503. this.redochosen(this.chosenIngredients)
  504. this.placeOrder()
  505. };
  506. }
  507.  
  508. }
  509. }
  510. </script>
  511. <style scoped>
  512. /* scoped in the style tag means that these rules will only apply to elements, classes and ids in this template and no other templates. */
  513. @media all and (max-width: 700px) {
  514. .examplePanel {
  515. position: fixed;
  516. background-size: cover;
  517. width: 100%;
  518. height: 100%;
  519. left: 0;
  520. top: 0;
  521. z-index: -2;
  522. }
  523. }
  524. .examplePanel {
  525. position: fixed;
  526. background-size: cover;
  527. width: 100%;
  528. left: 0;
  529. top: 0;
  530. z-index: -2;
  531. }
  532.  
  533. #ordering {
  534. display: grid;
  535. grid-gap: 15px;
  536. grid-template-columns: 20% 60% 20%;
  537. margin: auto;
  538. width: 90%;
  539. min-width: 1000px;
  540. font-family: "Comic Sans MS";
  541. }
  542. .leftSection{
  543. grid-column: 1;
  544. grid-row: 1 / span 3;
  545. margin-top: 150px
  546. }
  547.  
  548. .header{
  549. grid-column: 2;
  550. grid-row: 1;
  551. font-size: 3.5em;
  552. color: white;
  553. -webkit-text-fill-color: black;
  554. -webkit-text-stroke-width: 1.5px;
  555. -webkit-text-stroke-color: white;
  556. margin-top: -50px;
  557. text-align: center;
  558. }
  559.  
  560. .menu-button{
  561. font-size: 0.90em;
  562. font-family: "Comic Sans MS";
  563. border: 4px groove #ccd;
  564. }
  565.  
  566. #bigButtons {
  567. background-color: white;
  568. border: 4px groove #ccd;
  569. display: inline-block;
  570. }
  571. .hamburgerIngredients {
  572. text-align: center;
  573. }
  574.  
  575. .middleSection{
  576. grid-column: 2;
  577. grid-row: 2;
  578. border: 4px groove #ccd;
  579. background-color: white;
  580. margin-left: 15px;
  581. padding: 1em;
  582. width:700px;
  583. margin-top: -73px;
  584. }
  585. #welcomePage{
  586. font-size: 1.5em;
  587. text-align: center;
  588. }
  589.  
  590. #totalPrice{
  591. font-size: 1.3em;
  592. border: 2px solid;
  593. padding-left: 10px;
  594.  
  595. margin-top: 30px;
  596. float: right;
  597. }
  598.  
  599. .rightSection{
  600. grid-column: 3;
  601. grid-row: 1 / span 3;
  602. margin-top: 135px;
  603. padding: 1em;
  604. }
  605.  
  606. .rightSection button{
  607. margin-bottom: 30px;
  608. background-color: white;
  609. border: 4px groove #ccd;
  610. display: inline-block;
  611. }
  612.  
  613. .ingdiv{
  614. overflow-y:scroll;
  615. height:50vh;
  616. box-shadow: 0px 12px 5px -2px lightgray;
  617. }
  618.  
  619. .rightInfo {
  620. margin-top: 30px;
  621. border: 4px groove #ccd;
  622. background-color: white;
  623. }
  624.  
  625. #menuButtons{
  626. display: grid;
  627. grid-gap: 20px;
  628. grid-template-columns: repeat(1, 1fr);
  629. }
  630.  
  631. #placeOrderButton{
  632. font-size: 30px;
  633. font-family: "Comic Sans MS";
  634. background-color: LightSkyBlue;
  635. border: 2px solid;
  636. }
  637. #addOrderButton {
  638. font-size: 50em;
  639. }
  640. #checkoutButton {
  641. width: 270px;
  642. height: 80px;
  643. margin-top: 10px;
  644. font-size: 18px;
  645. font-family: "Comic Sans MS";
  646. border: 4px groove #ccd;
  647. }
  648.  
  649. #infoAllergy {
  650. border: 4px groove #ccd;
  651. padding: 1em;
  652. background-color: white;
  653. width: 198px;
  654.  
  655. }
  656.  
  657. #secondRightBox {
  658. padding: 1em;
  659. }
  660.  
  661. #milk {
  662. color: blue;
  663. }
  664.  
  665. #gluten {
  666. color: brown;
  667. }
  668.  
  669. #vegan {
  670. color: green;
  671. }
  672. #index{
  673. background-color: OrangeRed;
  674. font-size: 0.9em;
  675. font-weight: bold;
  676. border: 2px solid;
  677. height:0.95;
  678. }
  679.  
  680. #index2{
  681. background-color: OrangeRed;
  682. font-size: 0.9em;
  683. font-weight: bold;
  684. border: 2px solid;
  685. height:0.95;}
  686.  
  687. .focused-category {
  688. background-color: black;
  689. color: white;
  690. }
  691.  
  692. .example-panel {
  693. position: fixed;
  694. left:0;
  695. top:0;
  696. z-index: -2;
  697. }
  698. .ingredient {
  699. border: 1px solid #ccd;
  700. padding: 1em;
  701. background-color: white;
  702. }
  703. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement