Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Character mode #862

Closed
4 of 8 tasks
bhajneet opened this issue Feb 2, 2017 · 2 comments
Closed
4 of 8 tasks

Single Character mode #862

bhajneet opened this issue Feb 2, 2017 · 2 comments
Labels

Comments

@bhajneet
Copy link

bhajneet commented Feb 2, 2017

  • I've searched for duplicates – also closed issues
  • I've looked at the change log
  • I've provided the below details:

VimFx version: 0.20.8
Firefox version: 51
OS: Linux
Keyboard language: us (english)
Example URL (if any): n/a

This is … (pick one!)

  • A bug report
    • I've filled in steps to reproduce below
  • A feature request
    • Sorry, feature requests are not accepted.
      See issue #860
  • A question
  • Somehting else

Can we select the first letter of markers with css? I have tried using the pseudo class ::first-letter

I'm trying to make all the characters except the first one hidden, so that dense sections are still easily identifiable for starting the sequence.

@bhajneet
Copy link
Author

bhajneet commented Feb 2, 2017

I was able to get a partial fix with:

#VimFxMarkersContainer .marker {
    font-size: 16px !important; /* Specific font size. */
    letter-spacing: 1em !important;
    padding: 0px !important;
    font-family: "Noto Sans" !important;
    font-weight: bold !important;
    /*text-transform: lowercase !important; /* Lowercase text. */
    opacity: 1 !important; /* Semi-transparent. Warning: Might be slow! */
    background-color: rgba(255, 236, 179, 0.0) !important;
    border: 0px !important;
    color: #e23029 !important;
    width: .8em !important;
    height: 1.2em !important;
    overflow: hidden !important;
    -moz-transform:rotate(-0deg);
    -webkit-text-stroke: 1px rgba(255,255,255,.25) !important;;
    text-shadow: 2px 2px 4px white !important; 
}
#VimFxMarkersContainer .marker--matched,
#VimFxMarkersContainer .marker-char--matched {
  display: none !important;
}

identifying the css element for First letter would still be helpful

@lydell
Copy link
Collaborator

lydell commented Feb 2, 2017

#VimFxMarkersContainer .marker:first-child {
  color: red;
}

https://developer.mozilla.org/en/docs/Web/CSS/Pseudo-classes

@lydell lydell closed this as completed Feb 2, 2017
@lydell lydell added the question label Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants