GithubHelp home page GithubHelp logo

Comments (6)

joernweissenborn avatar joernweissenborn commented on June 29, 2024

Hi, can you elaborate on this? I am not a WebDev so I am not up to date with CSS best practices.

from lcars.

jrwarwick avatar jrwarwick commented on June 29, 2024

from lcars.

joernweissenborn avatar joernweissenborn commented on June 29, 2024

OK, I see, but only within the text, not in navigation or buttons. so I guess the changes need to made here.

Can you suggest defaults?

from lcars.

jrwarwick avatar jrwarwick commented on June 29, 2024

I suggest this:

a{
    text-decoration: none;
    display: inline;
}
a:link{
    color: #fc6; //lcars-golden-tanoi-color;
    font-weight: 400;
}
a:visited{
    color: #fc6; //lcars-golden-tanoi-color;
    font-weight: normal;
}
a:focus{
    color: #fc6; //lcars-golden-tanoi-color;
    background-color: #080602;
    font-weight: 400;
}
a:hover{
    color: #fc6; //lcars-golden-tanoi-color;
    background-color: #090703;
    font-weight: 400;
}
a:active{
    color: #ff9; //lcars-canary-color;
    font-weight: 500;
    background-color: #0C0806;
}

I do not know how to put that into Stylus.
A couple of helpful supplementary references on anchors and CSS:
https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_links
https://stackoverflow.com/a/10510353/537243

from lcars.

joernweissenborn avatar joernweissenborn commented on June 29, 2024

Can you share a picture of what you want to achieve?

I have an idea of just creating a rule that every child of a row or column will get this properties as defined by the closest parent.

It is as complicated as it sounds, because, you might what to define this things like you want to only have it in text boxes, but what about the elbow bars, they will pick it up.

Sorry for the Wesleying ;)

In the end, I think it is the easiest to make ti such, that you simply can give a div a lcars-text-box properties with some options to style it with real color name (I am grateful for having found a website to help me translate the values in to human readable :D ).

So, do you you need this feature outside a text-box?

from lcars.

jrwarwick avatar jrwarwick commented on June 29, 2024

Now that I have read the index doc more carefully, I am not thinking about text-box, which says that it is not for longer texts. I am indeed thinking of the longer texts. Imagine someone reading the on-board copy of the Federation Encyclopedia. The inline hyperlinks to other related articles is what I'm thinking about. Mostly within <p> paragraph tags.
Right now we have this:

image

but I think it would be better to have this:

image

from lcars.

Related Issues (20)

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.