Advertisement
Emanuel_Leal

produto.css

Feb 7th, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.25 KB | None | 0 0
  1. @media (min-width: 600px){
  2.     .imgprod {
  3.         float: left;
  4.     }
  5. }
  6.  
  7. @media (min-width: 630px) {
  8.     .produto {
  9.     position: relative;
  10.     padding-left: 40%;
  11.     }
  12.     .cores {
  13.     position: static;
  14.     padding: 0;
  15.     }
  16.     .cores legend {
  17.         position: static;
  18.     }
  19.     /*C
  20.     .cores label img {
  21.         max-height: 100%;
  22.         max-width:35%;
  23.         position: absolute;
  24.         top: 0;
  25.         left: 0;
  26.     }
  27.     C*/
  28.     .imgprod{
  29.         max-height: 100%;
  30.         max-width:35%;
  31.         position: relative;
  32.         top: 0;
  33.         left: 0;
  34.     }
  35.     .cores label:after {
  36.         position: static;
  37.         float: left;
  38.         margin-right: 10px
  39.     }
  40.     .produto {
  41.         font-size: 1.2em;
  42.     }
  43. }  
  44. @media (min-width: 600px){
  45.     img {
  46.         float: left;
  47.     }
  48. }
  49.  
  50. .imgprod {
  51.     float: left;
  52.     position: relative;
  53. }
  54. /* */
  55. label[for=verde]:after {
  56.     background-color: #33CC66;
  57.     left: 0;
  58. }
  59. label[for=rosa]:after {
  60.     background-color: #FF6666;
  61.     left: 60px;
  62. }
  63. label[for=azul]:after {
  64.     background-color: #6666FF;
  65.     left: 120px;
  66. }
  67. .cores {
  68.     position: relative;
  69.     padding-top: 90px;
  70. }
  71. .cores input:checked + label::after {
  72.     border: 6px solid rgba(0,0,0,0.3);
  73. }
  74. .cores label:after{
  75.     content: '';
  76.     display: block;
  77.     border-radius: 50%;
  78.     width: 50px;
  79.     height: 50px;
  80.     position: absolute; /* static
  81.     margin-right: 10px;*/
  82.     float: left;
  83.     top: 30px;
  84.     border: 6px solid rgba(0,0,0,0);
  85.     transition: 1s;
  86.     -moz-box-sizing: border-box;
  87.          box-sizing: border-box;
  88. }
  89. .cores label:hover:after{
  90.     border: 6px solid rgba(0,0,0,0.1);
  91. }
  92. .cores input[type=radio]{
  93.     display: none;
  94. }
  95. .cores input:not(:checked) + label img {
  96.     display: none;
  97. }
  98. .cores legend {
  99.     position: static;
  100.     top: 0;
  101.     left: 0;
  102. }
  103. .cores label img{
  104.     display: block;
  105.     max-width: ; // 35%
  106.     max-height: ; // 100%
  107. }
  108. .produto {
  109.     background: black; /* */
  110.     color: #333;
  111.     line-height: 1.3;
  112.     margin-top: 2em;
  113.     position: static; /* relative */
  114.     font-size: 1.2em;
  115. }
  116. .produto h1 {
  117.     font-size: 1.8em;
  118.     font-weight: bold;
  119. }
  120. .produto p {
  121.     font-size: 1.2em;
  122.     font-style: italic;
  123.     margin-bottom: 1em;
  124. }
  125. .produto legend {
  126.     display: block;
  127.     font: bold 0.9em/2.5 Arial;
  128.     text-transform: uppercase;
  129. }
  130. .comprar {
  131.     background: #91BD3C;
  132.     border: none;
  133.     color: #333;
  134.     font-size: 1.4em;
  135.     text-transform: uppercase;
  136.     box-shadow:  0 1px 3px #777;
  137.     display: block;
  138.     padding: 0.5em 1em;
  139.     margin: 1em 0;
  140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement