Guest User

Untitled

a guest
Mar 19th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <div id="contenido-plano">
  2. <div id="plano">
  3. <img class="img-sensor" src="@ViewBag.Plano.Imagen" />
  4. @foreach (var Sensor in ViewBag.Sensores)
  5. {
  6. <div style="top:@(Sensor.PosY)px; left:@(Sensor.PosX)px;" class="sensor ui-corner-all ui-state-highlight" data-id="@Sensor.Id">
  7. <div class="info">
  8. @Sensor.Nombre
  9. <br />
  10. <a title="Editar Sensor" id="editar-sensor" onclick="EditarSensor(@Sensor.Id)" ><i class="glyphicon glyphicon-edit"></i></a>
  11. <a title="Eliminar Sensor" id="elimnar-sensor" onclick="EliminarSensor(@Sensor.Id)"><i class="glyphicon glyphicon-erase"></i></a>
  12. </div>
  13. <img src="/Content/IMG/sensor_verde.png" width="20" />
  14. </div>
  15.  
  16. }
  17. </div>
  18. </div>
  19.  
  20. .info {
  21. opacity: 0;
  22. position: absolute;
  23. left: calc(100% + 1em);
  24. top: 45%;
  25. font-size: .8em;
  26. padding: 0.1em 4em;
  27. border-radius: 2.2em;
  28. font-family: arial;
  29. background: #BFBFBF;
  30. color: white;
  31. transition: all ease .3s;
  32. transform: translateX(-57%) translateY(-50%);
  33. }
  34.  
  35. .sensor:hover .info {
  36. opacity: 2;
  37. transform: translateX(-58%) translateY(-158%);
  38. z-index: 1000;
  39. }
  40.  
  41. .img-sensor {
  42. position: absolute;
  43. height: 600px;
  44. width: 800px;
  45. max-height: 600px;
  46. max-width: 900px;
  47. }
  48.  
  49. .sensor {
  50. position: absolute;
  51. z-index: 1;
  52. }
  53.  
  54. #plano {
  55. position: relative;
  56. height: 600px;
  57. width: 800px/9;
  58. max-width: 800px;
  59. border: 1px ridge;
  60. border-color: gainsboro;
  61. overflow: hidden;
  62. margin:auto;
  63. }
Add Comment
Please, Sign In to add comment