Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html ng-app="ionicApp">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>Ionic List Directive</title>
   
    <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
    <script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
  </head>

  <body ng-controller="MyCtrl">
    
    <ion-header-bar class="bar-positive">
      <div class="buttons">
        <button class="button button-icon icon ion-ios-minus-outline"
          ng-click="data.showDelete = !data.showDelete; data.showReorder = false"></button>
      </div>
      <h1 class="title">Header Bar Example</h1>
      <div class="buttons">
        <button class="button" ng-click="data.showDelete = false; data.showReorder = !data.showReorder">
            Reorder
        </button>
      </div>
    </ion-header-bar>

    <ion-content scroll="false">     
  
      <div class="row">

        <div class="col col-50" style="background-color: #e5e5e5;">
          <ion-scroll direction="y">
            <div class="row responsive-lg">
              <div class="col col-50">
                <img style="max-width:100%;" ng-src="img/first.png">
              </div>
              <div class="col col-50" style="padding:15px;">
                <p style="font-size: 20px; margin-bottom: 0px;">Provincia Oggi<br><strong>Gennaio 2015</strong></p>
                <p>(215mb)</p>
                <div class="button button-small button-stable btnStyle">
                  <span class="icon ion-eye"></span>
                </div><br>
                <div class="button button-small button-stable btnStyle">
                  Download &nbsp; Free
                </div>
                <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."</p>
                <div class="button button-small button-stable btnStyle">
                  Subscribe
                </div>
              </div>
            </div>
          </ion-scroll>
        </div>

        <div class="col col-50" style="background-color: #cccccc;">
          <ion-scroll direction="y" class="scrollVertical">
            <div>
              <div ng-repeat="item in kioskData">
                <div class="row responsive-lg">
                  <div class="col col-50" style="text-align:center;">
                    <img ng-src="{{item.imageUrl}}" style="max-width:100%;">
                  </div>
                  <div class="col col-50" style="padding:15px;">
                    <strong><p style="font-size: 20px; margin-bottom: 0px;">Marzo 2015</p></strong>
                    <p>(37mb)</p>
                    <div class="button button-small button-stable btnStyle" ng-class="coloreEye" on-tap="getItemModalShow(item)">
                    <span class="icon ion-eye"></span>
                    </div><br>
                    <div class="button button-small button-stable btnStyle" ng-class="coloreDownload" on-tap="buyItem(item)">
                      Download &nbsp; Free
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </ion-scroll>
        </div>

      </div>

    <!-- <div class="list card">
      <div class="item item-divider text-center">Offerte Speciali</div>
      <div class="item item-body">
        <div>
          Hai già guadagnato <b>29</b> crediti, da utilizzare entro la fine del mese.
        </div>
      </div>
    </div> -->


    </ion-content>
      
  </body>
</html>
              
            
!

CSS

              
                body {
  cursor: url('https://ionicframework.com/img/finger.png'), auto;
}
.kiosk-item .card {
  margin: 10px;
}
.kiosk-item .list:last-child.card {
  margin: 10px;
}
.kiosk-item img {
  width: 100%;
}
.popup-body {
  text-align: center;
  overflow: hidden;
}

.myitems-item h2 {
  font-size: 20px;
  padding: 10px 0px 6px;
}
.myitems-item p {
  font-size: 16px;
}

.btnStyle{
  border: 1px solid #b2b2b2;
  width: 65%;
}

.default{
  background-color: #f8f8f8 !important;
  color: #444 !important;
}

.colorato{
  background-color: #01a1ff !important;
  color: white !important;
}
/*.scrollVertical {
  height: 50vh;
}*/

/* iPhone 5 e 6 LANDSCAPE */
@media only screen and (min-device-width: 568px) {
  .kiosk-item {
    display: inline-block;
    vertical-align: top;
    width: 33.3333%; 
  }  
}
/* TABLET */
@media only screen and (min-device-width: 768px) {
  .kiosk-item {
    width: 25%; 
  }  
}
              
            
!

JS

              
                angular.module('ionicApp', ['ionic'])

.controller('MyCtrl', function($scope) {
  
  $scope.kioskData = 
    [{"id":"01",
      "titolo":"Pubbl.Uno",
      "descr":"Descrizione di questa pubblicazione",
      "imageUrl":"http://www.image-share.com/upload/2901/225.jpg",
      "prezzo":"0.9"},{"id":"02","titolo":"Pubbl. Due","descr":"Descrizione di questa pubblicazione","imageUrl":"http://www.image-share.com/upload/2901/226.jpg","prezzo":"0.9"},{"id":"03","titolo":"Pubbl. 3","descr":"Descrizione di questa pubblicazione","imageUrl":"http://www.image-share.com/upload/2901/227.jpg","prezzo":"0.9"},{"id":"04","titolo":"Pubbl. 4","descr":"Descrizione di questa pubblicazione","imageUrl":"http://www.image-share.com/upload/2901/228.jpg","prezzo":"0.9"},{"id":"05","titolo":"Pubbl. Cinque","descr":"Descrizione di questa pubblicazione, ma una descrizione proprio lunga lunga, in modo che vada a capo!","imageUrl":"http://www.image-share.com/upload/2901/229.jpg","prezzo":"0.9"},{"id":"06","titolo":"Pubblicazione 6 (titolo lungo)","descr":"Descrizione di questa pubblicazione","imageUrl":"http://www.image-share.com/upload/2901/230.jpg","prezzo":"0.9"},{"id":"07","titolo":"Pubbl. 7","descr":"Descrizione di questa pubblicazione","imageUrl":"http://www.image-share.com/upload/2901/231.jpg","prezzo":"0.9"}]; 
});
              
            
!
999px

Console