GithubHelp home page GithubHelp logo

row1 / brunch-materialistic-arrogantular Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 245 KB

Opinionated AngularJS using Brunch

License: MIT License

JavaScript 57.88% HTML 27.98% CSS 6.40% CoffeeScript 7.74%

brunch-materialistic-arrogantular's People

Contributors

row1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dougestey

brunch-materialistic-arrogantular's Issues

difference between repo and demo?

In your demo located here

the grid tiles are styled like this:

<md-grid-tile ng-repeat="gridTitle in homeCtrl.grid" md-rowspan="2" md-colspan="2" md-colspan-sm="1" ng-click="$state.go('posts.detail', { id: gridTitle.id })" class="ng-scope ng-isolate-scope" role="listitem" tabindex="0" style="left: calc(((25% - 6px) + 8px) * 0); width: calc(((25% - 6px) * 2) + 8px); padding-top: calc(((25% - 6px) * 2) + 8px); margin-top: calc(((25% - 6px) + 8px) * 0);"><figure ng-transclude="">
    <img ng-src="http://placehold.it/150/30ac17" class="ng-scope" src="http://placehold.it/150/30ac17">
    <md-grid-tile-footer class="ng-scope"><figcaption ng-transclude="">
      <h3 class="ng-binding ng-scope">accusamus beatae ad</h3>
    </figcaption></md-grid-tile-footer>
  </figure></md-grid-tile>

I'm looking specifically at this code:

style="left: calc(((25% - 6px) + 8px) * 0); width: calc(((25% - 6px) * 2) + 8px); padding-top: calc(((25% - 6px) * 2) + 8px); margin-top: calc(((25% - 6px) + 8px) * 0);"

But in the code that's in the repo, the grid is then styled like this:

<md-grid-tile ng-repeat="gridTitle in homeCtrl.grid" md-rowspan="2" md-colspan="2" md-colspan-sm="2" ng-click="$state.go('posts.detail', { id: gridTitle.id })" class="ng-scope ng-isolate-scope" role="listitem" tabindex="0" style="left: calc(((12.5% - 7px) + 8px) * 0); width: calc(((12.5% - 7px) * 2) + 8px); padding-top: calc(((12.5% - 7px) * 2) + 8px); margin-top: calc(((12.5% - 7px) + 8px) * 0);"><figure ng-transclude="">
    <img ng-src="http://placehold.it/150/30ac17" class="ng-scope" src="http://placehold.it/150/30ac17">
    <md-grid-tile-footer class="ng-scope"><figcaption ng-transclude="">
      <h3 class="ng-binding ng-scope">accusamus beatae ad</h3>
    </figcaption></md-grid-tile-footer>
  </figure></md-grid-tile>

And I'm looking specifically at this code:

style="left: calc(((12.5% - 7px) + 8px) * 0); width: calc(((12.5% - 7px) * 2) + 8px); padding-top: calc(((12.5% - 7px) * 2) + 8px); margin-top: calc(((12.5% - 7px) + 8px) * 0);

So in your demo, the styling uses 25% and the repo I'm coding with uses 12%. I know since these are inline they are being generated by JS - but for some reason, I can't for the life of me, find where these are being set.

If you can point me in the right direction, it would solve a lot of my styling issues in relation to the grid.

Thanks,

Pete

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.