0
Welcome Guest! Login
0 items Join Now

Class like margin-b-20

    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Class like margin-b-20

    Posted 8 years 10 months ago
    • Hello, i think it is not present in gantry but this will be very helpful to have the possibiliity to add class like margin-b-20 to have a 20px margin bottom and also for paddind ?

      Thanks
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Class like margin-b-20

    Posted 8 years 10 months ago
    • You can create any class you want in your custom.scss file with whatever attributes that you need.

      To create a custom CSS compatible with Gantry 5 please read this http://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet .

      Remember to recompile CSS from base outline too.


      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Class like margin-b-20

    Posted 8 years 10 months ago
    • Hello mark, yes of course but this classes utiliies will be very helpful.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Class like margin-b-20

    Posted 8 years 10 months ago
    • The class you stated is not included in Gantry 5 and we won't be adding it. We are keeping Gantry 5 lean, mean and fast and not filling it with bloat of classes that may or may not be used.

      You may find this useful too http://www.rockettheme.com/forum/gantry-framework/242300-adding-gantry-4-utilities-classes-to-a-gantry-5-template

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Class like margin-b-20

    Posted 8 years 10 months ago
    • Ok i understand, and with sass it is not possible to do something with variable ?
      .margin-bottom-variable {
      margin: 0 0 $variable 0 }
    • Last Edit: 8 years 10 months ago by Laurent.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Class like margin-b-20

    Posted 8 years 10 months ago
    • Yes if you define the variable and set a value for it.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.070 seconds