You are here

wingsuit-lb.link.css in Gin Layout Builder 8.2

.ws-lb-link {
  width: 100%;
  position: relative;
  padding-bottom: 56%;
  border: 1px solid var(--colorGinTableBorder);
  border-radius: 8px;
  overflow: hidden;
  background-color: #F3F4F6;
}

.ws-lb-link:hover {
  box-shadow: 4px 4px 10px var(--colorGinLayer2Background);
}

.ws-lb-link__label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: left;
  font-weight: bold;
  background-color: #ffffff;
  padding: 12px;
  box-shadow: 0px -15px 20px rgba(243, 244, 246, 0.9);
}

.ws-lb-link svg, .ws-lb-link img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  position: absolute;
  top: calc(50% - 20px);
  left: 50%;
  padding: 10px 40px;
  transform: translate(-50%, -50%);
}

File

modules/wingsuit_lb/css/wingsuit-lb.link.css
View source
  1. .ws-lb-link {
  2. width: 100%;
  3. position: relative;
  4. padding-bottom: 56%;
  5. border: 1px solid var(--colorGinTableBorder);
  6. border-radius: 8px;
  7. overflow: hidden;
  8. background-color: #F3F4F6;
  9. }
  10. .ws-lb-link:hover {
  11. box-shadow: 4px 4px 10px var(--colorGinLayer2Background);
  12. }
  13. .ws-lb-link__label {
  14. position: absolute;
  15. bottom: 0;
  16. left: 0;
  17. width: 100%;
  18. text-align: left;
  19. font-weight: bold;
  20. background-color: #ffffff;
  21. padding: 12px;
  22. box-shadow: 0px -15px 20px rgba(243, 244, 246, 0.9);
  23. }
  24. .ws-lb-link svg, .ws-lb-link img {
  25. max-width: 100%;
  26. max-height: 100%;
  27. width: auto;
  28. position: absolute;
  29. top: calc(50% - 20px);
  30. left: 50%;
  31. padding: 10px 40px;
  32. transform: translate(-50%, -50%);
  33. }