Personal portfolio website created with bootstrap.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
2.4 KiB

  1. // Styling for the portfolio section
  2. #portfolio {
  3. .portfolio-item {
  4. right: 0;
  5. margin: 0 0 15px;
  6. .portfolio-link {
  7. position: relative;
  8. display: block;
  9. max-width: 400px;
  10. margin: 0 auto;
  11. cursor: pointer;
  12. .caption {
  13. position: absolute;
  14. width: 100%;
  15. height: 100%;
  16. -webkit-transition: all ease 0.5s;
  17. -moz-transition: all ease 0.5s;
  18. transition: all ease 0.5s;
  19. opacity: 0;
  20. background: fade-out($theme-success, .1);
  21. &:hover {
  22. opacity: 1;
  23. }
  24. .caption-content {
  25. font-size: 20px;
  26. position: absolute;
  27. top: 50%;
  28. width: 100%;
  29. height: 20px;
  30. margin-top: -12px;
  31. text-align: center;
  32. color: white;
  33. i {
  34. margin-top: -12px;
  35. }
  36. h3,
  37. h4 {
  38. margin: 0;
  39. }
  40. }
  41. }
  42. }
  43. }
  44. * {
  45. z-index: 2;
  46. }
  47. }
  48. @media(min-width:767px) {
  49. #portfolio {
  50. .portfolio-item {
  51. margin: 0 0 30px;
  52. }
  53. }
  54. }
  55. .portfolio-modal {
  56. .modal-dialog {
  57. max-width: 100%;
  58. min-height: 100%;
  59. margin: 0;
  60. padding: 0;
  61. text-align: center;
  62. border: none;
  63. border-radius: 0;
  64. background-clip: border-box;
  65. -webkit-box-shadow: none;
  66. box-shadow: none;
  67. .modal-content {
  68. padding: 100px 0;
  69. border: 0;
  70. border-radius: 0;
  71. h2 {
  72. font-size: 3em;
  73. margin: 0;
  74. }
  75. img {
  76. margin-bottom: 30px;
  77. }
  78. .item-details {
  79. margin: 30px 0;
  80. }
  81. }
  82. }
  83. .close-modal {
  84. position: absolute;
  85. top: 25px;
  86. right: 25px;
  87. width: 75px;
  88. height: 75px;
  89. cursor: pointer;
  90. background-color: transparent;
  91. &:hover {
  92. opacity: 0.3;
  93. }
  94. .lr {
  95. /* Safari and Chrome */
  96. z-index: 1051;
  97. width: 1px;
  98. height: 75px;
  99. margin-left: 35px;
  100. /* IE 9 */
  101. -webkit-transform: rotate(45deg);
  102. -ms-transform: rotate(45deg);
  103. transform: rotate(45deg);
  104. background-color: $theme-primary;
  105. .rl {
  106. /* Safari and Chrome */
  107. z-index: 1052;
  108. width: 1px;
  109. height: 75px;
  110. /* IE 9 */
  111. -webkit-transform: rotate(90deg);
  112. -ms-transform: rotate(90deg);
  113. transform: rotate(90deg);
  114. background-color: $theme-primary;
  115. }
  116. }
  117. }
  118. .modal-backdrop {
  119. display: none;
  120. opacity: 0;
  121. }
  122. }