Laynester

Untitled

Jan 14th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. .px-frame-1 {
  2. border-radius: 6px;
  3. box-shadow: inset -1px -1px rgba($black,.4);
  4. position: relative;
  5. padding: 5px;
  6. border:1px solid #000;
  7.  
  8. &:before,
  9. &:after {
  10. content: '';
  11. position:absolute;
  12. top:0;
  13. bottom:0;
  14. left:0;
  15. right:0;
  16. margin:1px;
  17. border-radius: 5px;
  18. z-index: 1;
  19. }
  20.  
  21. &:before {
  22. border: 1px solid rgba($white,.4)
  23. }
  24.  
  25. &:after {
  26. border-left: 1px solid $white;
  27. border-top: 1px solid $white;
  28. height: 5px;
  29. width: 5px;
  30. border-radius: 5px 0 0 0;
  31. }
  32.  
  33. .px-frame-header {
  34. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAECAYAAACk7+45AAAAH0lEQVQYV2P8////ZkZGRl9GBghoADP+//8PZjSAMAC6mgkCOkoaLQAAAABJRU5ErkJggg==);
  35. display:flex;
  36. justify-content: center;
  37. max-height: 18px;
  38. margin-bottom:3px;
  39. position: relative;
  40.  
  41. span {
  42. display: block;
  43. max-height: 18px;
  44. line-height: 18px;
  45. padding:0 3px;
  46. }
  47.  
  48. .px-frame-close {
  49. height:18px;
  50. width:18px;
  51. position:absolute;
  52. right:0;
  53. border:0;
  54. outline:0;
  55.  
  56. &:hover {
  57. &:before {
  58. background-position: right;
  59. }
  60. }
  61.  
  62. &:before {
  63. content:'';
  64. height:13px;
  65. width:13px;
  66. position: absolute;
  67. left:0;top:0;bottom:0;right:0;
  68. margin: auto;
  69. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAANCAYAAAC3mX7tAAAAu0lEQVQ4EZWUAQ7DMAgD+/T9PBOMQyaFaKk0AcY5Z5vU55FnrfWRMdtJN8O0m/Q8sBuYqZkeIev3lAuat9MzBAhQ6q7zTYAF2MM0RPVXSAdFk4C8MTCplm/78nGGiQqbevXtoNNceAopixi6/QnOrmNd/4wGAdjVqxDMBqKnBrz9TwjG67WDFEMM6vsnpITpYYWf9JuQYxghVC6gMwCt5tOZnvNeTcSoi0nH28HQOKs876fFpBP2AjXvwC+Vt/5U1lTmYAAAAABJRU5ErkJggg==);
  70.  
  71. }
  72. }
  73.  
  74. }
  75.  
  76. > div {
  77. z-index: 2;
  78. }
  79. }
  80.  
  81. .px-border-2 {
  82. border-radius: 5px;
  83. box-shadow: 0 0 0 1px rgba($black,.3);
  84. background: $white;
  85. margin:1px;
  86. }
Add Comment
Please, Sign In to add comment