Advertisement
Guest User

cssresponsive

a guest
Feb 9th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.38 KB | None | 0 0
  1. /* Box-sizing -*/
  2. * {
  3.  -webkit-box-sizing: border-box;
  4.  -moz-box-sizing: border-box;
  5.  box-sizing: border-box;
  6.  *behavior: url('/test/grid/script/boxsizing.htc');
  7. }
  8.  
  9. /* Display block per gli elementi HTML5 su IE */
  10. article,
  11. aside,
  12. details,
  13. figcaption,
  14. figure,
  15. footer,
  16. header,
  17. hgroup,
  18. nav,
  19. section {
  20.  display: block;
  21. }
  22.  
  23. /* Immagini responsive */
  24. img {
  25.  border:0;
  26.     vertical-align:middle;
  27.     -ms-interpolation-mode:bicubic;
  28. }
  29.  
  30. img.scala {
  31.  max-width:100%;
  32.     height:auto;
  33. }
  34.  
  35. img.imgtext {
  36.  max-width:100%;
  37.     height:auto;
  38.     float: left;
  39.     padding: 0 20px 15px 15px;
  40. }
  41.  
  42.  
  43.  
  44. /* Stili di base e tipografia */
  45. html {
  46.   font-size: 100%;
  47. }
  48.  
  49. body {
  50.  margin: 0;
  51.  padding: 0;
  52. font-family: ‘Times New Roman’, Times, serif;
  53.  font-size: 16px;
  54.  line-height: 20px;
  55.  color:#000;
  56.  background-color: #fff;
  57.  -webkit-text-size-adjust:100%;
  58. }
  59.  
  60. p.text {
  61. padding: 0 15px 0 15px;
  62. text-align: justify;
  63. }
  64.  
  65. p.foottext {
  66. margin: 10px 10px 10px 10px;
  67. padding: 20px 20px 20px 20px;
  68. text-align: center;
  69. }
  70.  
  71. a {
  72.  color: #000;
  73.  text-decoration: none;
  74.  
  75. }
  76.  
  77. a:hover {
  78.  color: #fff;
  79.  text-decoration: none;
  80.  background:  url(../img/dark-bg1.png) repeat top;
  81.  
  82. }
  83.  
  84. h1, h2, h3, h4, h5, h6 {
  85.     font-family:"Georgia", "Times New Roman", serif;
  86.     color: #000;
  87. }
  88.  
  89. h1 {
  90.  font-size:42px;
  91.     line-height:46px;
  92.     margin-bottom:20px;
  93. }
  94.  
  95. h2 {
  96.  font-size:28px;
  97.     line-height:32px;
  98.     margin-bottom:12px;
  99. }
  100.  
  101. h3 {
  102.  font-size:21px;
  103.     line-height:25px;
  104.     margin-bottom:8px;
  105. }
  106.  
  107. table {
  108. float: left;
  109.     width: 100%;
  110. }
  111. /* Griglia */
  112.  
  113. .riga {
  114.  width: 100%;
  115.  /* max-width: 960px; */
  116.  max-width: none;
  117.  min-width: 720px;
  118.  margin: 0 auto;
  119.  background: url(../img/grey-light.jpg) repeat left top;
  120. }
  121.  
  122. [class*='colonna-'] {
  123.  float: left;
  124.  min-height: 1px;
  125.  padding: 0 15px;
  126.  background: url(../img/grey-light.jpg) repeat left top;
  127. }
  128.  
  129.  
  130. .colonna-left {
  131. margin: 10px 0 0 12px;
  132.  width: 20%;
  133.  height: 100%;
  134.  background: url(../img/grey-light.jpg) repeat left top;
  135. }
  136.  
  137. .colonna-right {
  138.  margin: 10px 14px 10px 10px;
  139.     float: right;
  140.     width: 75%;
  141.      background: url(../img/grey-light.jpg) repeat right top;
  142.  
  143. }
  144.  
  145. .colonna-all {
  146. float: left;
  147.     width: 100%;
  148.    
  149.     text-indent: 10px;
  150.     text-align: justify;
  151.     /* margin: 0 15px 0 15px; */
  152.          background: url(../img/grey-light.jpg) repeat top;
  153.  
  154. }
  155.  
  156. .colonna-1-4 {
  157. width: 25%;
  158. }
  159.  
  160. .colonna-1-3 {
  161.  width: 33.33%;
  162. }
  163.  
  164. .colonna-1-2 {
  165.  width: 50%;
  166. }
  167.  
  168. .colonna-1 {
  169.  width: 100%;
  170. }
  171.  
  172. [class*="colonna-"] + [class*="colonna-"]:last-child {float: right;}
  173.  
  174. /* Micro-clearfix */
  175. .riga:before,
  176. .riga:after {
  177.  content: " ";
  178.  display: table;
  179. }
  180.  
  181. .riga:after {
  182.  clear: both;
  183. }
  184.  
  185. .riga {
  186.  *zoom: 1;
  187. }
  188.  
  189. /* Stili  per le varie sezioni */
  190. header {
  191.  height: 170px;
  192.  border-bottom: 1px solid #333;
  193.  position: relative;
  194.      background: url(../img/header.jpg) repeat top;
  195.  
  196. }
  197.  
  198. header #logo {
  199.  float: left;
  200.  margin: 20px 0 20px 0;
  201. }
  202.  
  203.  
  204. footer {
  205.  border-top: 1px solid #333;
  206.  border-bottom: 1px solid #333;
  207.      background: url(../img/dark-bg1.png) repeat top;
  208.      color: #fff;
  209.  
  210. }
  211.  
  212. a.footer {
  213. color: #fff;
  214. }
  215.  
  216. nav {
  217.  float: left;
  218.  margin: 10px 0 0 0;
  219.  padding: 20px 20px 20px 20px;
  220. color:  #fff;
  221. }
  222.  
  223. nav ul, nav li {
  224.  margin: 0;
  225.  padding: 0;
  226. }
  227.  
  228. nav ul li {
  229.  list-style: none;
  230.  float: left;
  231.  margin-right: 5px;
  232. }
  233.  
  234. nav ul li a {
  235.  display: block;
  236.  padding: 5px;
  237. }
  238.  
  239. a.attiva-nav {
  240.  display: none;
  241. }
  242.  
  243. @media only screen and (max-width:600px) {
  244. .riga {
  245.  width: auto;
  246.  min-width: 0;
  247.  margin-left: 0;
  248.  margin-right: 0;
  249. }
  250.  
  251. [class*="colonna-"] {
  252.  width: auto !important;
  253.  float: none;  
  254. }
  255.  
  256. [class*="colonna"] + [class*="colonna"]:last-child {float: none;}
  257.  
  258. [class*="colonna-"]:before, [class*="colonna-"]:after {
  259.  content:"";
  260.  display:table;
  261. }
  262.  
  263. [class*="colonna-"]:after {clear: both;}
  264.  
  265. a.attiva-nav {
  266.  display: block;
  267.     float: right;
  268.     color: #2cb7ea;
  269.     background: #4e4e4e;
  270.     text-decoration: none;
  271.     margin: 20px 0 0 0;
  272.     padding: 0 10px;
  273.     font-size: 14px;
  274.     font-weight: bold;
  275.     line-height: 22px;
  276.     height: 22px;
  277. }
  278.  
  279. nav {
  280.  clear: both;
  281.  position: absolute;
  282.     top: 70px;
  283.     width: 100%;
  284.     z-index: 10000;
  285.     background: #fff;
  286.     padding: 0;
  287.     display: none;
  288. }
  289.  
  290. nav ul {
  291.  margin: 0;
  292.  padding: 0;
  293. }
  294. nav ul li {
  295.  list-style: none;
  296.  float: none;
  297. }
  298.  
  299. nav ul li a {
  300.  padding: 5px;
  301.  display: block;
  302.  border-bottom: 1px solid #333;
  303.  background-color: #e0e0e0;
  304. }
  305. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement