Można również edytować styl z pliku CSS.
You can also edit the style from a CSS file.
Jest to szczególnie przydatne w przypadku edytowania pliku CSS.
Zmienisz wygląd swojego pliku CSS, aby był bardziej czytelny.
You change the way your sample CSS file looks, to make it more readable.
Następnie, za pomocą selektora nowej klasy w pliku CSS zmieniliśmy rozmiar czcionki.
Then, by selecting the new class in the CSS file, we changed the font size.
W naszym pliku CSS, mamy następujące zasady zdefiniowane
In our CSS file, we have the following rules defined
Wprowadź w tym polu lokalizację pliku CSS
Enter the location of the CSS file in this field
Możesz zmieniać kolejność linii w pliku CSS, aby zobaczyć, że kolejność nie ma wpływu na wynik.
You can try rearranging the lines in your CSS file to show that the order has no effect.
Zamiast bezpośredniego tworzenia plików.css, projektant tworzy plik.sass albo.scss który jest interpretowany do standardu pliku CSS przy użyciu wiersza polecenia lub narzędzia online.
Instead of directly creating.css files, the designer creates.sass or.scss files which are then interpreted into standard CSS files using a command-line program or an online tool.
Jeżeli już korzystasz z pliku CSS, możesz wybrać style i dodać je do istniejącego pliku.
If you already have a CSS file, you can choose the styles below and add them to your existing file.
W celu zapewnienia wszystkich przycisków i pól tekstowych większą czcionką, można umieścić następującą regułę w pliku CSS danej aplikacji
In order to give all buttons and text boxes a larger font, you could put the following rule in your application's CSS file
Logicznie byłoby umieścić tę regułę na górze pliku CSS, ale będzie ona miała taki sam efekt niezależnie od miejsca położenia
The top of the CSS file is a logical place for it, but it has the same effect wherever you put it
Istnieją jeszcze dwa inne sposoby (oprócz atrybutu media w linku arkusza stylów) użycia zapytań o media stosowane w pliku CSS: @media i @import.
In addition to using the media attribute in the style sheet link, there are two other ways to apply media queries that can be embedded in a CSS file: @media and @import.
W swoim pliku CSS zmień wszystkie nazwy kolorów na 3-cyfrowe kody kolorów, tak, żeby rezultat pozostał taki sam.
In your CSS file, change all the color names to 3-digit color codes without affecting the result.