Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Surfer
  3. @import in .css file not importing CSS

@import in .css file not importing CSS

Scheduled Pinned Locked Moved Solved Surfer
5 Posts 3 Posters 1.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ShaiS Offline
    ShaiS Offline
    Shai
    wrote on last edited by Shai
    #1

    I'm teaching myself Hugo. I’m using the Eternity theme. My site displays perfectly on the Hugo local web server localhost:1313/ on my computer.

    But when I upload the public directory to my Cloudron the @import instructions on /css/main.css are not actually importing the css even though all the files are in the same directory as main.css.

    Here is main.css:

    @import "bulma.min.css";
    /* @import "fonts.css"; Moved to /layouts/partials/fonts.html */
    @import "base.css";
    @import "colors.css";
    @import "width.css";
    @import "markdown.css";
    @import "style.css";
    @import "tablet.css";
    @import "mobile.css";
    @import "custom.css";
    

    Here is the result of ls of that directory:

    ls
    base.css       colors.css  fonts.css  markdown.css  style.css   width.css
    bulma.min.css  custom.css  main.css   mobile.css    tablet.css
    

    I have used “inspect element” in Firefox to see that the css is not being imported.

    I've tried this using both:

    • Surfer app
    • LAMP app

    Same problem in both.

    The in-process site is at: https://ink/daysofawe.net

    Thanks in advance for your help.

    girishG 1 Reply Last reply
    0
    • ShaiS Shai marked this topic as a question on
    • ShaiS Shai

      I'm teaching myself Hugo. I’m using the Eternity theme. My site displays perfectly on the Hugo local web server localhost:1313/ on my computer.

      But when I upload the public directory to my Cloudron the @import instructions on /css/main.css are not actually importing the css even though all the files are in the same directory as main.css.

      Here is main.css:

      @import "bulma.min.css";
      /* @import "fonts.css"; Moved to /layouts/partials/fonts.html */
      @import "base.css";
      @import "colors.css";
      @import "width.css";
      @import "markdown.css";
      @import "style.css";
      @import "tablet.css";
      @import "mobile.css";
      @import "custom.css";
      

      Here is the result of ls of that directory:

      ls
      base.css       colors.css  fonts.css  markdown.css  style.css   width.css
      bulma.min.css  custom.css  main.css   mobile.css    tablet.css
      

      I have used “inspect element” in Firefox to see that the css is not being imported.

      I've tried this using both:

      • Surfer app
      • LAMP app

      Same problem in both.

      The in-process site is at: https://ink/daysofawe.net

      Thanks in advance for your help.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #4

      @Shai said in @import in .css file not importing CSS:

      The in-process site is at: https://ink/daysofawe.net

      I guess you mean https://ink.daysofawe.net . The view-source:https://ink.daysofawe.net/tags/archive/ has several typos . it says daws instead of days.

      ShaiS 1 Reply Last reply
      1
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        Please show the directory contents or screen shots from the Cloudron File Manager tool.

        Conscious tech

        ShaiS 1 Reply Last reply
        0
        • robiR robi

          Please show the directory contents or screen shots from the Cloudron File Manager tool.

          ShaiS Offline
          ShaiS Offline
          Shai
          wrote on last edited by
          #3

          @robi
          Here are the contents of
          /app/data/public/css/

          ls -al
          drw-r--r--  2 cloudron cloudron   4096 Apr  8 23:14 .
          drwxrwxr-x 15 cloudron cloudron   4096 Apr 10 05:45 ..
          -rw-r--r--  1 cloudron cloudron   1152 Apr  8 23:14 base.css
          -rw-r--r--  1 cloudron cloudron 206669 Apr  8 23:14 bulma.min.css
          -rw-r--r--  1 cloudron cloudron    153 Apr  8 23:14 colors.css
          -rw-r--r--  1 cloudron cloudron     24 Apr  8 23:14 custom.css
          -rw-r--r--  1 cloudron cloudron     44 Apr  8 23:14 fonts.css
          -rw-r--r--  1 cloudron cloudron    264 Apr  8 23:14 main.css
          -rw-r--r--  1 cloudron cloudron   1903 Apr  8 23:14 markdown.css
          -rw-r--r--  1 cloudron cloudron   1064 Apr  8 23:14 mobile.css
          -rw-r--r--  1 cloudron cloudron   5729 Apr  8 23:14 style.css
          -rw-r--r--  1 cloudron cloudron   1028 Apr  8 23:14 tablet.css
          -rw-r--r--  1 cloudron cloudron     41 Apr  8 23:14 width.css
          
          1 Reply Last reply
          0
          • girishG girish moved this topic from Support on
          • ShaiS Shai

            I'm teaching myself Hugo. I’m using the Eternity theme. My site displays perfectly on the Hugo local web server localhost:1313/ on my computer.

            But when I upload the public directory to my Cloudron the @import instructions on /css/main.css are not actually importing the css even though all the files are in the same directory as main.css.

            Here is main.css:

            @import "bulma.min.css";
            /* @import "fonts.css"; Moved to /layouts/partials/fonts.html */
            @import "base.css";
            @import "colors.css";
            @import "width.css";
            @import "markdown.css";
            @import "style.css";
            @import "tablet.css";
            @import "mobile.css";
            @import "custom.css";
            

            Here is the result of ls of that directory:

            ls
            base.css       colors.css  fonts.css  markdown.css  style.css   width.css
            bulma.min.css  custom.css  main.css   mobile.css    tablet.css
            

            I have used “inspect element” in Firefox to see that the css is not being imported.

            I've tried this using both:

            • Surfer app
            • LAMP app

            Same problem in both.

            The in-process site is at: https://ink/daysofawe.net

            Thanks in advance for your help.

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            @Shai said in @import in .css file not importing CSS:

            The in-process site is at: https://ink/daysofawe.net

            I guess you mean https://ink.daysofawe.net . The view-source:https://ink.daysofawe.net/tags/archive/ has several typos . it says daws instead of days.

            ShaiS 1 Reply Last reply
            1
            • ShaiS Shai has marked this topic as solved on
            • girishG girish

              @Shai said in @import in .css file not importing CSS:

              The in-process site is at: https://ink/daysofawe.net

              I guess you mean https://ink.daysofawe.net . The view-source:https://ink.daysofawe.net/tags/archive/ has several typos . it says daws instead of days.

              ShaiS Offline
              ShaiS Offline
              Shai
              wrote on last edited by
              #5

              @girish thank you!

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search