Guest User

Untitled

a guest
Aug 10th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. <template>
  2. <div class="book-item Icon--container Icon--{{active}}">
  3. <a href="{{slug}}">
  4. <img v-bind:src="path" transition="fadein" class="img-responsive"/>
  5. </a>
  6. <template v-if="name">
  7. <div class="info">
  8. <h4>{{name}}</h4>
  9. </div>
  10. </template>
  11. <template v-if="remove">
  12. <div class="delete">
  13. <a href="#">
  14. <i class="fa fa-trash"></i>
  15. </a>
  16. </div>
  17. </template>
  18. <template v-if="edit">
  19. <div class="edit">
  20. <a href="#" class="cta purple">Edit</a>
  21. </div>
  22. </template>
  23. <template v-if="view">
  24. <div class="view">
  25. <a href="#" class="cta purple">View</a>
  26. </div>
  27. </template>
  28. </div>
  29. </template>
  30.  
  31. <script>
  32. export default
  33. {
  34.  
  35. props:{
  36. info: {},
  37. remove: {},
  38. edit: {},
  39. view: {},
  40. active: {default:'show'},
  41. path: {default:''},
  42. name: {default:'Icon name'},
  43. slug: {default:'#'},
  44. },
  45. data: function() {
  46. return {}
  47. },
  48. methods:{},
  49. events: {},
  50. ready:function(e)
  51. {
  52.  
  53. },
  54. created:function(e)
  55. {
  56.  
  57. }
  58.  
  59. };
  60. </script>
  61.  
  62. <style>
  63. .Icon--container {
  64. display: inline-block;
  65. justify-content: space-around;
  66. position:relative;
  67. overflow:auto;
  68. }
  69.  
  70. .book-item {
  71. background: #FFFFFF;
  72. -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.2);
  73. -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.2);
  74. box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.2);
  75. margin-bottom: 2em;
  76. }
  77.  
  78. .book-item .info {
  79. padding-left : 1em;
  80. padding-bottom:1em;
  81. }
  82.  
  83. .book-item .info h4 {
  84. display: block;
  85. margin-top: 1em;
  86. margin-bottom: 1em;
  87. font-size: 16px;
  88. font-weight: 300;
  89. color: #2c2c2c;
  90. }
  91.  
  92. .book-item .delete a {
  93. color: #2c2c2c;
  94. }
  95.  
  96. .book-item .edit a, .book-item .view a {
  97. line-height: 45px;
  98. }
  99.  
  100. </style>
Advertisement
Add Comment
Please, Sign In to add comment